@Test public void testToString() { DefaultImport tested1 = new DefaultImport(); assertEquals(STRING_EMPTY, tested1.toString()); DefaultImport tested2 = new DefaultImport(STRING_EMPTY); assertEquals(STRING_EMPTY, tested2.toString()); DefaultImport tested3 = new DefaultImport(CLASS_NAME); assertEquals(IDENTIFIER + DELIMITER + CLASS_NAME, tested3.toString()); }
@Override public String toString() { if (className == null || className.isEmpty()) { return ""; } else { return IDENTIFIER + "|" + className; } }
DefaultImport { @Override public String toString() { if (className == null || className.isEmpty()) { return ""; } else { return IDENTIFIER + "|" + className; } } }
DefaultImport { @Override public String toString() { if (className == null || className.isEmpty()) { return ""; } else { return IDENTIFIER + "|" + className; } } DefaultImport();  DefaultImport(@MapsTo("className") final String className); }
DefaultImport { @Override public String toString() { if (className == null || className.isEmpty()) { return ""; } else { return IDENTIFIER + "|" + className; } } DefaultImport();  DefaultImport(@MapsTo("className") final String className); static Boolean isValidString(String importValue); static DefaultImport fromString(String importValue); String getClassName(); void setClassName(final String className); @Override String toString(); }
DefaultImport { @Override public String toString() { if (className == null || className.isEmpty()) { return ""; } else { return IDENTIFIER + "|" + className; } } DefaultImport();  DefaultImport(@MapsTo("className") final String className); static Boolean isValidString(String importValue); static DefaultImport fromString(String importValue); String getClassName(); void setClassName(final String className); @Override String toString(); static final String DELIMITER; static final String IDENTIFIER; }