Package com.tapestry5book.services

Examples of com.tapestry5book.services.UserDao.findByName()


    @Test
    public void findByNonExistingName() {
        UserDao dao = registry.getService(UserDao.class);

        User user = dao.findByName("igor");

        assertNull(user);
    }

    @Test
View Full Code Here


    @Test
    public void findByName() {

        UserDao dao = registry.getService(UserDao.class);

        User user = dao.findByName("root");

        assertNotNull(user);
    }

}
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.