@Test public void testGenerateFullUri() { URI result = classUnderTest.generateFullUri(); String resultStr = result.toString(); String addon = "?" + ServiceJarUri.KEY + "="; assertTrue(resultStr.startsWith(serviceBaseUri)); assertTrue(resultStr.contains(addon)); assertTrue(resultStr.startsWith(serviceBaseUri + addon)); assertTrue(resultStr.length() > serviceBaseUri.length() + addon.length()); }
public URI generateFullUri() { String fullUri; fullUri = addParameter(baseUri.toString(), KEY, generateKey()); LOG.debug("generateFullUri(): {}", fullUri); return URI.create(fullUri); }
ServiceJarUri { public URI generateFullUri() { String fullUri; fullUri = addParameter(baseUri.toString(), KEY, generateKey()); LOG.debug("generateFullUri(): {}", fullUri); return URI.create(fullUri); } }
ServiceJarUri { public URI generateFullUri() { String fullUri; fullUri = addParameter(baseUri.toString(), KEY, generateKey()); LOG.debug("generateFullUri(): {}", fullUri); return URI.create(fullUri); } ServiceJarUri(URI service); }
ServiceJarUri { public URI generateFullUri() { String fullUri; fullUri = addParameter(baseUri.toString(), KEY, generateKey()); LOG.debug("generateFullUri(): {}", fullUri); return URI.create(fullUri); } ServiceJarUri(URI service); URI generateFullUri(); }
ServiceJarUri { public URI generateFullUri() { String fullUri; fullUri = addParameter(baseUri.toString(), KEY, generateKey()); LOG.debug("generateFullUri(): {}", fullUri); return URI.create(fullUri); } ServiceJarUri(URI service); URI generateFullUri(); static final String KEY; }