Skip to content

Commit 60edc60

Browse files
Add tests for JBMC accepting a method name
Tests for various scenarios
1 parent 3abe69f commit 60edc60

14 files changed

+69
-0
lines changed
Binary file not shown.
Binary file not shown.
Binary file not shown.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
public class NoPackage {
2+
public static class Nested {
3+
public static class Deeper {
4+
}
5+
}
6+
}
Binary file not shown.
Binary file not shown.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package mypackage;
2+
3+
public class Package {
4+
public static class Inner {
5+
}
6+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
CORE
2+
3+
'mypackage.Package$Inner.<init>'
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
^Found Java main class: mypackage.Package\$Inner$
7+
--
8+
--
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
CORE
2+
3+
'NoPackage$Nested$Deeper.<init>'
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
^Found Java main class: NoPackage\$Nested\$Deeper$
7+
--
8+
--
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
CORE
2+
3+
'NoPackage.<init>:()V'
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
^Found Java main class: NoPackage$
7+
--
8+
--
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
CORE
2+
3+
'mypackage.Package.<init>'
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
^Found Java main class: mypackage.Package$
7+
--
8+
--
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
CORE
2+
3+
'mypackage.Baggage'
4+
^EXIT=6$
5+
^SIGNAL=0$
6+
^Error: Could not find or load main class mypackage\.Baggage$
7+
--
8+
--
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
CORE
2+
3+
mypackage.Baggage.do
4+
^EXIT=6$
5+
^SIGNAL=0$
6+
^Error: Could not find or load main class mypackage\.Baggage\.do$
7+
--
8+
--
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
CORE
2+
3+
'mypackage.Package.do:()V'
4+
^EXIT=6$
5+
^SIGNAL=0$
6+
^Found Java main class: mypackage.Package$
7+
^main symbol resolution failed: 'mypackage.Package.do:\(\)V' not found$
8+
--
9+
--

0 commit comments

Comments
 (0)