@Test public void testToStringNoDefaultHostname() { final TestProtocol protocol = new TestProtocol(Scheme.file) { @Override public String getName() { return "Disk"; } @Override public String getDefaultHostname() { return ""; } }; assertEquals("Disk", BookmarkNameProvider.toString(new Host(protocol, StringUtils.EMPTY), true)); assertEquals("Disk", BookmarkNameProvider.toString(new Host(protocol, StringUtils.EMPTY), false)); }
public static String toString(final Host bookmark) { return toString(bookmark, false); }
BookmarkNameProvider { public static String toString(final Host bookmark) { return toString(bookmark, false); } }
BookmarkNameProvider { public static String toString(final Host bookmark) { return toString(bookmark, false); } private  BookmarkNameProvider(); }
BookmarkNameProvider { public static String toString(final Host bookmark) { return toString(bookmark, false); } private  BookmarkNameProvider(); static String toString(final Host bookmark); static String toString(final Host bookmark, final boolean username); static String toProtocol(final Host bookmark); static String toHostname(final Host bookmark); static String toHostname(final Host bookmark, final boolean username); }
BookmarkNameProvider { public static String toString(final Host bookmark) { return toString(bookmark, false); } private  BookmarkNameProvider(); static String toString(final Host bookmark); static String toString(final Host bookmark, final boolean username); static String toProtocol(final Host bookmark); static String toHostname(final Host bookmark); static String toHostname(final Host bookmark, final boolean username);  }