-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
src/test/java/org/checkerframework/specimin/LowercaseClassTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package org.checkerframework.specimin; | ||
|
||
import java.io.IOException; | ||
import org.junit.Test; | ||
|
||
/** | ||
* This test checks that a simple Java file with a lowercase class name (against convention but | ||
* allowed!) doesn't cause Specimin any problems. | ||
*/ | ||
public class LowercaseClassTest { | ||
@Test | ||
public void runTest() throws IOException { | ||
SpeciminTestExecutor.runTestWithoutJarPaths( | ||
"lowercaseclass", | ||
new String[] {"com/example/simple.java"}, | ||
new String[] {"com.example.simple#test()"}); | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
src/test/resources/lowercaseclass/expected/com/example/simple.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package com.example; | ||
|
||
class simple { | ||
static void test() { | ||
simple s = new simple(); | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
src/test/resources/lowercaseclass/input/com/example/simple.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package com.example; | ||
|
||
class simple { | ||
static void test() { | ||
simple s = new simple(); | ||
} | ||
} |