Code example for AbstractTransactionalTestNGSpringContextTests

Methods: assertEquals

0
    @Test 
    public void testGetPostsOnForumCount() { 
        int postCount = 5; 
        PersistedObjectsFactory.createAndSavePostList(postCount); 
        int result = dao.getPostsOnForumCount(); 
        assertEquals(result, postCount); 
    } 
 
    @Test 
    public void testGetUserCount() { 
        session.save(ObjectsFactory.getUser("firstUser", "firstUserMail@mail.ru")); 
        assertEquals(1, dao.getUsersCount()); 
    } 
 
    @Test 
    public void testGetUserCountNoUsers() { 
        assertEquals(0, dao.getUsersCount()); 
    } 
} 
Connect your IDE to all the code out there  Get Codota for Java