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