NullStringConverter implements StringConverter { @Override public String convert(String s) { return s; }  @Override String convert(String s);  }
@Test public void testConvert01() throws Exception { StringConverter stringTransformer = new NullStringConverter(); String resultString = stringTransformer.convert(null); assertNull(resultString); }
@Test public void testConvert02() throws Exception { StringConverter stringTransformer = new NullStringConverter(); String resultString = stringTransformer .convert("abcdefghijklmnopqrstuvwxyz_ABCDEFGHIJKLMNOPQRSTUVWXYZ"); assertEquals("abcdefghijklmnopqrstuvwxyz_ABCDEFGHIJKLMNOPQRSTUVWXYZ", resultString); }
@Test public void testConvert03() throws Exception { StringConverter stringTransformer = new NullStringConverter(); String resultString = stringTransformer.convert(""); assertEquals("", resultString); }
@Test public void testConvert04() throws Exception { StringConverter stringTransformer = new NullStringConverter(); String resultString = stringTransformer.convert("あいうカキク漢字"); assertEquals("あいうカキク漢字", resultString); }