@Test public void toAvailableInMethodName_A$String_StringIsNull() throws Exception { TypeNameConverter target = new TypeNameConverter(config); String typeName = null; try { target.toAvailableInMethodName(typeName); fail(); } catch (JUnitHelperCoreException e) { } }
public String toAvailableInMethodName(String typeName) { Assertion.on("typeName").mustNotBeEmpty(typeName); typeName = typeName.replaceAll(RegExp.Generics, StringValue.Empty); typeName = typeName.replaceAll("final ", StringValue.Empty); typeName = typeName.replaceAll("\\.\\.\\.", "Array").replaceAll("\\[\\]", "Array"); typeName = typeName.replaceAll("\\.", StringValue.Empty); typeName = typeName.trim().split(RegExp.WhiteSpace.Consecutive_OneOrMore_Max)[0]; return typeName; }
TypeNameConverter { public String toAvailableInMethodName(String typeName) { Assertion.on("typeName").mustNotBeEmpty(typeName); typeName = typeName.replaceAll(RegExp.Generics, StringValue.Empty); typeName = typeName.replaceAll("final ", StringValue.Empty); typeName = typeName.replaceAll("\\.\\.\\.", "Array").replaceAll("\\[\\]", "Array"); typeName = typeName.replaceAll("\\.", StringValue.Empty); typeName = typeName.trim().split(RegExp.WhiteSpace.Consecutive_OneOrMore_Max)[0]; return typeName; } }
TypeNameConverter { public String toAvailableInMethodName(String typeName) { Assertion.on("typeName").mustNotBeEmpty(typeName); typeName = typeName.replaceAll(RegExp.Generics, StringValue.Empty); typeName = typeName.replaceAll("final ", StringValue.Empty); typeName = typeName.replaceAll("\\.\\.\\.", "Array").replaceAll("\\[\\]", "Array"); typeName = typeName.replaceAll("\\.", StringValue.Empty); typeName = typeName.trim().split(RegExp.WhiteSpace.Consecutive_OneOrMore_Max)[0]; return typeName; } TypeNameConverter(Configuration config); }
TypeNameConverter { public String toAvailableInMethodName(String typeName) { Assertion.on("typeName").mustNotBeEmpty(typeName); typeName = typeName.replaceAll(RegExp.Generics, StringValue.Empty); typeName = typeName.replaceAll("final ", StringValue.Empty); typeName = typeName.replaceAll("\\.\\.\\.", "Array").replaceAll("\\[\\]", "Array"); typeName = typeName.replaceAll("\\.", StringValue.Empty); typeName = typeName.trim().split(RegExp.WhiteSpace.Consecutive_OneOrMore_Max)[0]; return typeName; } TypeNameConverter(Configuration config); String toAvailableInMethodName(String typeName); String toCompilableType(String typeName, List<String> importedList, String callerClassPackageName); String toCompilableType(String typeName, List<String> generics, List<String> importedList,
            String callerClassPackageName); }
TypeNameConverter { public String toAvailableInMethodName(String typeName) { Assertion.on("typeName").mustNotBeEmpty(typeName); typeName = typeName.replaceAll(RegExp.Generics, StringValue.Empty); typeName = typeName.replaceAll("final ", StringValue.Empty); typeName = typeName.replaceAll("\\.\\.\\.", "Array").replaceAll("\\[\\]", "Array"); typeName = typeName.replaceAll("\\.", StringValue.Empty); typeName = typeName.trim().split(RegExp.WhiteSpace.Consecutive_OneOrMore_Max)[0]; return typeName; } TypeNameConverter(Configuration config); String toAvailableInMethodName(String typeName); String toCompilableType(String typeName, List<String> importedList, String callerClassPackageName); String toCompilableType(String typeName, List<String> generics, List<String> importedList,
            String callerClassPackageName);  }