Exemplo n.º 1
0
 @Test(expected = UnsupportedOperationException.class)
 public void testFindServicesByEnvironmentId() {
   environmentService.findServicesByEnvironmentId(null);
 }
Exemplo n.º 2
0
 @Test(expected = IllegalArgumentException.class)
 public void findByIdEmpty() throws DomainNotFoundException {
   environmentService.findById(DataProvider.EMPTY_STRING);
 }
Exemplo n.º 3
0
 @Test
 public void findById() throws DomainNotFoundException {
   Environment environment = environmentService.findById(testProperties.getEnvironmentId());
   Assert.assertNotNull(environment);
 }
Exemplo n.º 4
0
 @Test(expected = IllegalArgumentException.class)
 public void findByIdNull() throws DomainNotFoundException {
   environmentService.findById(null);
 }