Пример #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");
 }