package org.obridge.util; import org.junit.Assert; import org.junit.Test; public class StringHelperTest { @Test public void testToCamelCase() { Assert.assertEquals("HelloWorld", StringHelper.toCamelCase("hello_world")); Assert.assertEquals("", StringHelper.toCamelCase(null)); } @Test public void testToCamelCaseSmallBegin() { Assert.assertEquals("helloWorld", StringHelper.toCamelCaseSmallBegin("hello_world")); Assert.assertEquals("", StringHelper.toCamelCaseSmallBegin(null)); } @Test public void testToOracleName() { Assert.assertEquals("HELLO_WORLD", StringHelper.toOracleName("hello_world")); Assert.assertEquals("HELLO_WORLD", StringHelper.toOracleName("HelloWorld")); Assert.assertEquals("HELLO_WORLD", StringHelper.toOracleName("helloWorld")); } @Test public void unJavaKeyword() { Assert.assertEquals("pASSERT", StringHelper.unJavaKeyword("ASSERT")); } }