ExtArgPattern { public String getNameWhichFirstCharIsUpper() { return name.substring(0, 1).toUpperCase() + name.substring(1); } ExtArgPattern(ExtArg extArg, String name); String getNameWhichFirstCharIsUpper(); String getName(); public ExtArg extArg; public String preAssignCode; public String assignCode; public String postAssignCode; }
@Test public void getNameWhichFirstCharIsUpper_A$() throws Exception { ExtArg extArg = new ExtArg("com.example.Bean"); String name = "null"; ExtArgPattern target = new ExtArgPattern(extArg, name); String actual = target.getNameWhichFirstCharIsUpper(); String expected = "Null"; assertThat(actual, is(equalTo(expected))); }