@Test(expected = IllegalArgumentException.class) public void findByIdEmpty() throws DomainNotFoundException { environmentService.findById(DataProvider.EMPTY_STRING); }
@Test public void findById() throws DomainNotFoundException { Environment environment = environmentService.findById(testProperties.getEnvironmentId()); Assert.assertNotNull(environment); }
@Test(expected = IllegalArgumentException.class) public void findByIdNull() throws DomainNotFoundException { environmentService.findById(null); }