WorkspaceFamily implements Id { @Override public WorkspaceFamily extend(String tail) { String[] result = Arrays.copyOf(data, data.length + 1); result[data.length] = tail; return new WorkspaceFamily(result); } private  WorkspaceFamily(String[] data); @NonNull static WorkspaceFamily of(@NonNull Id id); @NonNull static WorkspaceFamily parse(@NonNull String input); @Override String get(int index); @Override WorkspaceFamily extend(String tail); @Override WorkspaceFamily parent(); @Override int getCount(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); @Override String[] toArray(); static final WorkspaceFamily SA_MULTI; static final WorkspaceFamily SA_DOC_X13; static final WorkspaceFamily SA_DOC_TRAMOSEATS; static final WorkspaceFamily SA_SPEC_X13; static final WorkspaceFamily SA_SPEC_TRAMOSEATS; static final WorkspaceFamily MOD_DOC_REGARIMA; static final WorkspaceFamily MOD_DOC_TRAMO; static final WorkspaceFamily MOD_SPEC_REGARIMA; static final WorkspaceFamily MOD_SPEC_TRAMO; static final WorkspaceFamily UTIL_CAL; static final WorkspaceFamily UTIL_VAR; }
@Test public void testExtend() { assertThat(empty.extend("other")).isEqualTo(WorkspaceFamily.parse("other")); assertThat(single.extend("other")).isEqualTo(WorkspaceFamily.parse("single@other")); assertThat(dual.extend("other")).isEqualTo(WorkspaceFamily.parse("hello@world@other")); }