Skip to content

Commit

Permalink
add test for lower case class name
Browse files Browse the repository at this point in the history
  • Loading branch information
kelloggm committed Nov 20, 2023
1 parent e130de3 commit 3c414c2
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
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()"});
}
}
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();
}
}
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();
}
}

0 comments on commit 3c414c2

Please sign in to comment.