Home
last modified time | relevance | path

Searched refs:converterTo (Results 1 – 3 of 3) sorted by relevance

/external/guava/guava-gwt/test-super/com/google/common/base/super/com/google/common/base/
DCaseFormatTest.java181 assertEquals("FooBar", UPPER_UNDERSCORE.converterTo(UPPER_CAMEL).convert("FOO_BAR")); in testConverterToForward()
182 assertEquals("fooBar", UPPER_UNDERSCORE.converterTo(LOWER_CAMEL).convert("FOO_BAR")); in testConverterToForward()
183 assertEquals("FOO_BAR", UPPER_CAMEL.converterTo(UPPER_UNDERSCORE).convert("FooBar")); in testConverterToForward()
184 assertEquals("FOO_BAR", LOWER_CAMEL.converterTo(UPPER_UNDERSCORE).convert("fooBar")); in testConverterToForward()
188 assertEquals("FOO_BAR", UPPER_UNDERSCORE.converterTo(UPPER_CAMEL).reverse().convert("FooBar")); in testConverterToBackward()
189 assertEquals("FOO_BAR", UPPER_UNDERSCORE.converterTo(LOWER_CAMEL).reverse().convert("fooBar")); in testConverterToBackward()
190 assertEquals("FooBar", UPPER_CAMEL.converterTo(UPPER_UNDERSCORE).reverse().convert("FOO_BAR")); in testConverterToBackward()
191 assertEquals("fooBar", LOWER_CAMEL.converterTo(UPPER_UNDERSCORE).reverse().convert("FOO_BAR")); in testConverterToBackward()
197 assertNull(outer.converterTo(inner).convert(null)); in testConverter_nullConversions()
198 assertNull(outer.converterTo(inner).reverse().convert(null)); in testConverter_nullConversions()
[all …]
/external/guava/guava-tests/test/com/google/common/base/
DCaseFormatTest.java192 assertEquals("FooBar", UPPER_UNDERSCORE.converterTo(UPPER_CAMEL).convert("FOO_BAR")); in testConverterToForward()
193 assertEquals("fooBar", UPPER_UNDERSCORE.converterTo(LOWER_CAMEL).convert("FOO_BAR")); in testConverterToForward()
194 assertEquals("FOO_BAR", UPPER_CAMEL.converterTo(UPPER_UNDERSCORE).convert("FooBar")); in testConverterToForward()
195 assertEquals("FOO_BAR", LOWER_CAMEL.converterTo(UPPER_UNDERSCORE).convert("fooBar")); in testConverterToForward()
199 assertEquals("FOO_BAR", UPPER_UNDERSCORE.converterTo(UPPER_CAMEL).reverse().convert("FooBar")); in testConverterToBackward()
200 assertEquals("FOO_BAR", UPPER_UNDERSCORE.converterTo(LOWER_CAMEL).reverse().convert("fooBar")); in testConverterToBackward()
201 assertEquals("FooBar", UPPER_CAMEL.converterTo(UPPER_UNDERSCORE).reverse().convert("FOO_BAR")); in testConverterToBackward()
202 assertEquals("fooBar", LOWER_CAMEL.converterTo(UPPER_UNDERSCORE).reverse().convert("FOO_BAR")); in testConverterToBackward()
208 assertNull(outer.converterTo(inner).convert(null)); in testConverter_nullConversions()
209 assertNull(outer.converterTo(inner).reverse().convert(null)); in testConverter_nullConversions()
[all …]
/external/guava/guava/src/com/google/common/base/
DCaseFormat.java158 public Converter<String, String> converterTo(CaseFormat targetFormat) { in converterTo() method in CaseFormat