@Test public void testValidId() { final BasicDefinition ad = new BasicDefinition(); ad.setId("hello"); ad.check(); }
@Test public void testDefaults() { final String id = UUID.randomUUID().toString(); final BasicDefinition ad = new BasicDefinition(); ad.setId(id); ad.check(); Assert.assertEquals(id, ad.getId()); Assert.assertFalse(ad.isSkip()); }
@Test(expected = IllegalStateException.class) public void testBlankId() { final BasicDefinition ad = new BasicDefinition(); ad.check(); }