コード例 #1
0
 @Test
 public void testLongConstantName() {
   String text = "TEST_VERY_VERY_LONG_AND_COMPLEX_CONSTANT";
   correctListToCheck(
       IdentifierSplitter.getInstance(),
       text,
       "TEST",
       "VERY",
       "VERY",
       "LONG",
       "COMPLEX",
       "CONSTANT");
 }
コード例 #2
0
 @Test
 public void testCapitalizedWithShortAndLongWords() {
   String text = "IntelliJTestTest";
   correctListToCheck(IdentifierSplitter.getInstance(), text, "Intelli", "Test", "Test");
 }
コード例 #3
0
 @Test
 public void testWords() {
   String text = "first-last";
   correctListToCheck(IdentifierSplitter.getInstance(), text, "first", "last");
 }
コード例 #4
0
 @Test
 public void testIdentifierInSingleQuotes() {
   String text = "'fill'";
   correctListToCheck(IdentifierSplitter.getInstance(), text, "fill");
 }
コード例 #5
0
 @Test
 public void testArrays() {
   String text = "Token[]";
   correctListToCheck(IdentifierSplitter.getInstance(), text, "Token");
 }
コード例 #6
0
 @Test
 public void testSplitCamelCaseWithUpperCasedWord() {
   String text = "camelCaseJSP";
   correctListToCheck(IdentifierSplitter.getInstance(), text, "camel", "Case");
 }
コード例 #7
0
 @Test
 public void testSplitSimpleCamelCase() {
   String text = "simpleCamelCase";
   correctListToCheck(IdentifierSplitter.getInstance(), text, "simple", "Camel", "Case");
 }
コード例 #8
0
 @Test
 public void testPhpVariableCorrect() {
   String text = "$this_this$this";
   correctListToCheck(IdentifierSplitter.getInstance(), text, "this", "this", "this");
 }
コード例 #9
0
 @Test
 public void testWordsWithNumbers() {
   String text = "testCamelCase123";
   correctListToCheck(IdentifierSplitter.getInstance(), text, "test", "Camel", "Case");
 }
コード例 #10
0
 @Test
 public void testConstantName() {
   String text = "TEST_CONSTANT";
   correctListToCheck(IdentifierSplitter.getInstance(), text, "TEST", "CONSTANT");
 }
コード例 #11
0
 @Test
 public void testIdentifiersWithNumbersInside() {
   String text = "result1result";
   correctListToCheck(IdentifierSplitter.getInstance(), text, "result", "result");
 }