@Test public void testChain() { Application app = new Application( new ApplicationTemplate()).name( "ins" ).description( "desc" ); Assert.assertEquals( "ins", app.getName()); Assert.assertEquals( "desc", app.getDescription()); }
@Test public void testCrap() { Instance inst = new Instance(); Assert.assertNull( inst.toString()); Assert.assertNotNull( inst.name( "azerty" ).toString()); Component comp = new Component(); Assert.assertNull( comp.toString()); Assert.assertNotNull( comp.name( "azerty" ).toString()); Application app = new Application( new ApplicationTemplate()); Assert.assertNull( app.toString()); Assert.assertNotNull( app.name( "azerty" ).toString()); Assert.assertTrue( 0 < PreferenceKeyCategory.values().length ); } }