@Test public void testLongConstantName() { String text = "TEST_VERY_VERY_LONG_AND_COMPLEX_CONSTANT"; correctListToCheck( IdentifierSplitter.getInstance(), text, "TEST", "VERY", "VERY", "LONG", "COMPLEX", "CONSTANT"); }
@Test public void testCapitalizedWithShortAndLongWords() { String text = "IntelliJTestTest"; correctListToCheck(IdentifierSplitter.getInstance(), text, "Intelli", "Test", "Test"); }
@Test public void testWords() { String text = "first-last"; correctListToCheck(IdentifierSplitter.getInstance(), text, "first", "last"); }
@Test public void testIdentifierInSingleQuotes() { String text = "'fill'"; correctListToCheck(IdentifierSplitter.getInstance(), text, "fill"); }
@Test public void testArrays() { String text = "Token[]"; correctListToCheck(IdentifierSplitter.getInstance(), text, "Token"); }
@Test public void testSplitCamelCaseWithUpperCasedWord() { String text = "camelCaseJSP"; correctListToCheck(IdentifierSplitter.getInstance(), text, "camel", "Case"); }
@Test public void testSplitSimpleCamelCase() { String text = "simpleCamelCase"; correctListToCheck(IdentifierSplitter.getInstance(), text, "simple", "Camel", "Case"); }
@Test public void testPhpVariableCorrect() { String text = "$this_this$this"; correctListToCheck(IdentifierSplitter.getInstance(), text, "this", "this", "this"); }
@Test public void testWordsWithNumbers() { String text = "testCamelCase123"; correctListToCheck(IdentifierSplitter.getInstance(), text, "test", "Camel", "Case"); }
@Test public void testConstantName() { String text = "TEST_CONSTANT"; correctListToCheck(IdentifierSplitter.getInstance(), text, "TEST", "CONSTANT"); }
@Test public void testIdentifiersWithNumbersInside() { String text = "result1result"; correctListToCheck(IdentifierSplitter.getInstance(), text, "result", "result"); }