@Test public void testToString() { final CloudnamePath one = new CloudnamePath(oneElement); final CloudnamePath two = new CloudnamePath(twoElements); final CloudnamePath three = new CloudnamePath(emptyElements); assertThat(one.toString(), is(notNullValue())); assertThat(two.toString(), is(notNullValue())); assertThat(three.toString(), is(notNullValue())); }
@Override public String toString() { return "[ CloudnamePath (" + Arrays.toString(pathElements) + ") ]"; }
CloudnamePath { @Override public String toString() { return "[ CloudnamePath (" + Arrays.toString(pathElements) + ") ]"; } }
CloudnamePath { @Override public String toString() { return "[ CloudnamePath (" + Arrays.toString(pathElements) + ") ]"; } CloudnamePath(final String[] pathElements);  CloudnamePath(final CloudnamePath path, final String additionalElement); }
CloudnamePath { @Override public String toString() { return "[ CloudnamePath (" + Arrays.toString(pathElements) + ") ]"; } CloudnamePath(final String[] pathElements);  CloudnamePath(final CloudnamePath path, final String additionalElement); static boolean isValidPathElementName(final String name); int length(); String join(final char separator); String get(final int index); boolean isSubpathOf(final CloudnamePath other); CloudnamePath getParent(); @Override boolean equals(final Object other); @Override int hashCode(); @Override String toString(); }
CloudnamePath { @Override public String toString() { return "[ CloudnamePath (" + Arrays.toString(pathElements) + ") ]"; } CloudnamePath(final String[] pathElements);  CloudnamePath(final CloudnamePath path, final String additionalElement); static boolean isValidPathElementName(final String name); int length(); String join(final char separator); String get(final int index); boolean isSubpathOf(final CloudnamePath other); CloudnamePath getParent(); @Override boolean equals(final Object other); @Override int hashCode(); @Override String toString();  }