Search in sources :

Example 21 with UserEntity

use of easytests.core.entities.UserEntity in project easy-tests by malinink.

the class UsersMapperTest method testDelete.

@Test
public void testDelete() throws Exception {
    UserEntity userEntity = this.usersMapper.find(1);
    Assert.assertNotNull(userEntity);
    this.usersMapper.delete(userEntity);
    userEntity = this.usersMapper.find(1);
    Assert.assertNull(userEntity);
}
Also used : UserEntity(easytests.core.entities.UserEntity) Test(org.junit.Test)

Aggregations

UserEntity (easytests.core.entities.UserEntity)21 UserModelInterface (easytests.core.models.UserModelInterface)7 Test (org.junit.Test)7 UsersOptionsInterface (easytests.core.options.UsersOptionsInterface)3 ModelsListEmpty (easytests.core.models.empty.ModelsListEmpty)1 DeleteUnidentifiedModelException (easytests.core.services.exceptions.DeleteUnidentifiedModelException)1 ArrayList (java.util.ArrayList)1 SpringBootTest (org.springframework.boot.test.context.SpringBootTest)1