Put testsuite in its own directory
This commit is contained in:
parent
0cf25ebaf4
commit
114b9b099c
16 changed files with 107 additions and 0 deletions
41
testsuite/classes/java/Main.java
Normal file
41
testsuite/classes/java/Main.java
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
import java.util.function.Supplier;
|
||||
|
||||
@CustomAttribute
|
||||
public class Main implements Runnable, Supplier<Integer>, Interface {
|
||||
private static final String name = "John";
|
||||
private static final int number = 42;
|
||||
private static final double funnyNumber = 6.9;
|
||||
|
||||
public static void main() {
|
||||
new Main().sayHello();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
Main.main();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer get() {
|
||||
return number;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void throwSomething() throws Throwable {
|
||||
throw new Throwable() {
|
||||
@Override
|
||||
public String getMessage() {
|
||||
return "Hello";
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
public static class Inner {
|
||||
private static final String name = "Inner John";
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue