use of org.nextprot.api.user.domain.UserQuery in project nextprot-api by calipho-sib.
the class UserResourceAuthorizationServiceTest method testUpdateUserQueryService.
@Test
public void testUpdateUserQueryService() {
UserQuery query = mockUserQuery("bobleponge");
Mockito.when(userQueryDao.getUserQueryById(anyLong())).thenReturn(query);
userQueryService.updateUserQuery(query);
}
use of org.nextprot.api.user.domain.UserQuery in project nextprot-api by calipho-sib.
the class UserResourceAuthorizationServiceTest method testDeleteUserQueryService.
@Test
public void testDeleteUserQueryService() {
UserQuery query = mockUserQuery("bobleponge");
Mockito.when(userQueryDao.getUserQueryById(anyLong())).thenReturn(query);
userQueryService.deleteUserQuery(query);
}
use of org.nextprot.api.user.domain.UserQuery in project nextprot-api by calipho-sib.
the class UserResourceAuthorizationServiceTest method testCreateUserQueryService.
@Test
public void testCreateUserQueryService() {
UserQuery query = mockUserQuery("bobleponge");
Mockito.when(userQueryDao.getUserQueryById(anyLong())).thenReturn(query);
userQueryService.createUserQuery(query);
}
Aggregations