mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-05 21:00:59 +07:00
[tests] migrates bytecode analysis tests to light test case
... and moves test data out of source code
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
package bytecodeAnalysis.data;
|
||||
|
||||
// A class to test the clash of the same class in different source paths
|
||||
// See also ../src/data/TestConflict.java
|
||||
public class TestConflict {
|
||||
static native int throwInDataNativeInConflict();
|
||||
|
||||
static int nativeInDataThrowInConflict() {
|
||||
throw new RuntimeException();
|
||||
}
|
||||
|
||||
static int throwBoth() {
|
||||
throw new RuntimeException();
|
||||
}
|
||||
|
||||
void pureInDataSideEffectInConflict() {
|
||||
System.out.println();
|
||||
}
|
||||
|
||||
void sideEffectInDataPureInConflict() { }
|
||||
|
||||
void pureBoth() { }
|
||||
|
||||
void sideEffectBoth() {
|
||||
System.out.println();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user