/** * Test cloning obj with mostly null state, test for NPE */ public void testCloneMethod3() { CreateProcedureCommand s1 = new CreateProcedureCommand(); CreateProcedureCommand s2 = (CreateProcedureCommand)s1.clone(); UnitTestUtil.helpTestEquivalence(0, s1, s2); }
public void testSetBlock() { CreateProcedureCommand b1 = (CreateProcedureCommand)sample1().clone(); b1.setBlock(TestBlock.sample2()); assertTrue("Incorrect Block on command", b1.getBlock().equals(TestBlock.sample2())); //$NON-NLS-1$ }