RestUri { public Optional<Group> getGroup() { return group; } RestUri(URI uri); boolean isRootOnly(); String getRawPath(); String getNamespace(); String getDocumentType(); String getDocId(); Optional<Group> getGroup(); String generateFullId(); static final char NUMBER_STREAMING; static final char GROUP_STREAMING; static final String DOCUMENT; static final String V_1; static final String ID; }
@Test public void testGroupN() throws Exception { RestUri restUri = new RestUri(createUri("/document/v1/namespace/doctype/number/group/myid", "")); assertThat(restUri.getGroup().get().name, is('n')); assertThat(restUri.getGroup().get().value, is("group")); }