@Test public void testSetIsBanned() { assertEquals(1, userDAOImpl.setIsBanned(false, 92)); }
@Test public void testGetBannedUsers() { assertEquals(2, userDAOImpl.getBannedUsers().size()); }
@Test public void testCheckEmailById() { assertEquals(true, userDAOImpl.checkEmailById("*****@*****.**", 92)); }
@Test public void testSetIsActivate() { assertEquals(1, userDAOImpl.setIsActivate(true, 92)); }
@Test public void testGetByEmail() { assertEquals(user, userDAOImpl.getByEmail("*****@*****.**")); }
@Test public void testGetByLogin() { assertEquals(user, userDAOImpl.getByLogin("CristianGatu")); }
@Test(expected = RuntimeException.class) public void testInsert() { assertEquals(1, userDAOImpl.insert(user)); }
@Test public void testUpdate() { assertEquals(1, userDAOImpl.update(user)); }
@Test public void testBySQL() { assertEquals(1, userDAOImpl.getBySQL("Select * from users where id = 92;").size()); }
@Test public void testCount() { assertEquals(12, userDAOImpl.getCount()); }
@Test public void testGetAll() { assertEquals(12, userDAOImpl.getAll().size()); }
@Test public void testGet() { assertEquals(userSecond, userDAOImpl.get(92)); }
@Test public void testSetLastLocale() { assertEquals(1, userDAOImpl.setLastLocale(2, 92)); }