@Test public void should_handle_typical_webapp_WEB_INF_with_extra_codeBase() { codeBase = getCodeBase(SAMPLE_WEB_APP + "/WEB-INF", CODEBASE2); assertThat(codeBase.getUrls(), notNullValue()); assertThat(codeBase.getUrls().length, is(5)); CodeBaseFingerprint fingerprint = codeBase.getFingerprint(); assertThat(fingerprint.getNumClassFiles(), is(1)); assertThat(fingerprint.getNumJarFiles(), is(4)); int scannedClasses = new CodeBaseScanner().scanSignatures(codeBase); assertThat(scannedClasses, greaterThanOrEqualTo(15)); assertThat(codeBase.getSignatures(), hasSize(40)); assertThatCodeBaseContains(codeBase, "InClassesOnly"); assertThatCodeBaseContains(codeBase, "SampleApp"); assertThatCodeBaseContains(codeBase, "sample.lib"); }
URL[] getUrls() { if (needsExploding) { throw new UnsupportedOperationException("Exploding WAR or EAR not yet implemented"); } return urls.toArray(new URL[0]); }
CodeBase { URL[] getUrls() { if (needsExploding) { throw new UnsupportedOperationException("Exploding WAR or EAR not yet implemented"); } return urls.toArray(new URL[0]); } }
CodeBase { URL[] getUrls() { if (needsExploding) { throw new UnsupportedOperationException("Exploding WAR or EAR not yet implemented"); } return urls.toArray(new URL[0]); } CodeBase(AgentConfig config); }
CodeBase { URL[] getUrls() { if (needsExploding) { throw new UnsupportedOperationException("Exploding WAR or EAR not yet implemented"); } return urls.toArray(new URL[0]); } CodeBase(AgentConfig config); CodeBasePublication3 getCodeBasePublication(long customerId, int sequenceNumber); }
CodeBase { URL[] getUrls() { if (needsExploding) { throw new UnsupportedOperationException("Exploding WAR or EAR not yet implemented"); } return urls.toArray(new URL[0]); } CodeBase(AgentConfig config); CodeBasePublication3 getCodeBasePublication(long customerId, int sequenceNumber);  }