Package java.util

Examples of java.util.List.containsAll()


        }
        if (extendedKeyUsage != null) {
            try {
                List keyUsage = cert.getExtendedKeyUsage();
                if (keyUsage != null) {
                    if (!keyUsage.containsAll(extendedKeyUsage)) {
                        return false;
                    }
                }
            } catch (CertificateParsingException e) {
                return false;
View Full Code Here


        int size = finalUniqueKeys.size();
        boolean skip = false;
        Iterator tempUks = finalUniqueKeys.entrySet().iterator();
        while ( tempUks.hasNext() ) {
          final UniqueKey currentUk = (UniqueKey) ( (Map.Entry) tempUks.next() ).getValue();
          if ( currentUk.getColumns().containsAll( columns ) && columns
              .containsAll( currentUk.getColumns() ) ) {
            skip = true;
            break;
          }
        }
View Full Code Here

      assertEquals(1, list.size());
      assertEquals("b", ((Instance)list.get(0)).getValue("city"));
      assertFalse(list.contains(m_list.get(0)));
      assertTrue(list.contains(m_list.get(1)));
      assertTrue(m_list.containsAll(list));
      assertFalse(list.containsAll(m_list));

      Instance instance = new Instance(m_metadata.getMetaclass("Address"), m_context);

      instance.setNew();
      instance.setValue("city", "c");
View Full Code Here

        checkChildMissing(component, comp6);

        // contains(Object) is tested in checkChildPresent / checkChildMissing

        // containsAll(Collection)
        assertTrue(children.containsAll(list1));
        assertTrue(children.containsAll(list2));

        // get(int) is tested in checkChildPresent / checkChildMissing

        // indexOf(Object) is tested in checkChildPresent / checkChildMissing
View Full Code Here

        // contains(Object) is tested in checkChildPresent / checkChildMissing

        // containsAll(Collection)
        assertTrue(children.containsAll(list1));
        assertTrue(children.containsAll(list2));

        // get(int) is tested in checkChildPresent / checkChildMissing

        // indexOf(Object) is tested in checkChildPresent / checkChildMissing
View Full Code Here

  public VarSet findCluster(Variable[] vars)
  {
    List l = Arrays.asList(vars);
    for (Iterator it = getVerticesIterator(); it.hasNext();) {
      VarSet c2 = (VarSet) it.next();
      if (c2.containsAll(l) && l.containsAll(c2))
        return c2;
    }
    return null;
  }
View Full Code Here

        ksession.fireAllRules();
        ksession.dispose();

        assertEquals( 2,
                      list.size() );
        assertTrue( list.containsAll( Arrays.asList( new String[]{"rule1", "rule2"} ) ) );
    }

    public void testBasicAuthentication() throws SAXException,
                               IOException {
View Full Code Here

            log.debug("Could not update the cluster topology changes to proxyfactory at key " + proxyFactoryKey);
            continue;
         } finally{
             if(gotJNDIRef){
                 List currentTargets = fci.getTargets();
                 if(currentTargets.containsAll(targetsCopy) && targetsCopy.containsAll(currentTargets)){
                     //no nothing?
                 } else {
                     ClusteringTargetsRepository.initTarget(fci.getFamilyName(), targetsCopy, viewIDCopy);
                 }
             }
View Full Code Here

        // make sure all privileges are present now
        List privs = currentPrivileges(acl, testPrincipal);
        assertTrue("Privileges added through 'addAccessControlEntry' must be " +
                "reflected upon getAccessControlEntries",
                privs.contains(aggregate) || privs.containsAll(Arrays.asList(aggregate.getAggregatePrivileges())));
    }

    public void testAddAggregatedPrivilegesSeparately() throws NotExecutableException, RepositoryException {
        checkCanModifyAc(path);
View Full Code Here

        // -> the first privilege must not be removed.
        Privilege privilege2 = (Privilege) twoPrivs.get(1);
        acl.addAccessControlEntry(testPrincipal, new Privilege[] {privilege2});

        List currentPrivileges = currentPrivileges(acl, testPrincipal);
        assertTrue("'AccessControlList.addAccessControlEntry' must not remove privileges added before", currentPrivileges.containsAll(twoPrivs));
    }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.