Package org.jasig.portal.persondir

Examples of org.jasig.portal.persondir.LocalAccountQuery


       
        //Query 0
        this.execute(new Callable<Object>() {
            @Override
            public Object call() throws Exception {
                final LocalAccountQuery query = new LocalAccountQuery();
               
                query.setAttribute("attr1", Arrays.asList("black"));
               
                final List<ILocalAccountPerson> people = localAccountDao.getPeople(query);
                assertNotNull(people);
                assertEquals(0, people.size());
               
                return null;
            }
        });
       
        //Query 1
        this.execute(new Callable<Object>() {
            @Override
            public Object call() throws Exception {
                final LocalAccountQuery query = new LocalAccountQuery();
               
                query.setAttribute("attr1", Arrays.asList("value"));
                query.setAttribute("attr2", Arrays.asList("bar"));
               
                final List<ILocalAccountPerson> people = localAccountDao.getPeople(query);
                assertNotNull(people);
                assertEquals(2, people.size());
               
                return null;
            }
        });
       
        //Query 2
        this.execute(new Callable<Object>() {
            @Override
            public Object call() throws Exception {
                final LocalAccountQuery query = new LocalAccountQuery();
               
                query.setAttribute("attr1", Arrays.asList("black"));
                query.setAttribute("attr2", Arrays.asList("foo", "run"));
               
                final List<ILocalAccountPerson> people = localAccountDao.getPeople(query);
                assertNotNull(people);
                assertEquals(2, people.size());
               
View Full Code Here

TOP

Related Classes of org.jasig.portal.persondir.LocalAccountQuery

Copyright © 2018 www.massapicom. 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.