Beispiel #1
0
 private void checkPaCollection(
     Collection<ProtocolApplication> protocolApplications, String... pNames) {
   StringBuilder sb = new StringBuilder();
   for (String pn : pNames) {
     boolean found = false;
     sb.setLength(0);
     sb.append(pn).append(" not found in ");
     for (ProtocolApplication pa : protocolApplications) {
       found |= pa.getProtocol().getName().equals(pn);
       sb.append(pa.getProtocol().getName()).append(", ");
     }
     assertTrue(sb.toString(), found);
   }
   assertEquals("count of " + sb, pNames.length, protocolApplications.size());
 }
Beispiel #2
0
 private void dumpProtocols(Collection<ProtocolApplication> pas) {
   for (ProtocolApplication pa : pas) {
     System.out.println(pa.getProtocol().getName());
   }
 }