package brickhouse.udf.json;
import junit.framework.Assert;
import org.junit.Test;
public class JsonUDFTest {
@Test
public void testConvertToCamelCase() {
String underScore = "this_text_has_underscores";
String camel = FromJsonUDF.ToCamelCase(underScore);
System.out.println(camel);
Assert.assertEquals("thisTextHasUnderscores", camel);
}
@Test
public void testConvertFromCamelCase() {
String camel = "thisTextIsInCamelCase";
String under = FromJsonUDF.FromCamelCase(camel);
System.out.println(under);
Assert.assertEquals("this_text_is_in_camel_case", under);
}
}