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