@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof TriggerAction)) { return false; } TriggerAction other = (TriggerAction) obj; return block.equals(other.block); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof TriggerAction)) { return false; } TriggerAction other = (TriggerAction) obj; return block.equals(other.block); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof TriggerAction)) { return false; } TriggerAction other = (TriggerAction) obj; return block.equals(other.block); }
public void testGetIfBlock() { IfStatement b1 = sample1(); assertTrue("Incorrect IfBlock on statement", b1.getIfBlock().equals(TestBlock.sample1())); //$NON-NLS-1$ }
public void testGetIfBlock() { WhileStatement b1 = sample1(); assertTrue("Incorrect Block on statement", b1.getBlock().equals(TestBlock.sample1())); //$NON-NLS-1$ }
public void testGetBlock() { LoopStatement b1 = sample1(); assertTrue("Incorrect Block on statement", b1.getBlock().equals(TestBlock.sample1())); //$NON-NLS-1$ }
public void testGetElseBlock() { IfStatement b1 = sample1(); assertTrue("Incorrect IfBlock on statement", b1.getElseBlock().equals(TestBlock.sample2())); //$NON-NLS-1$ }
@Test public void testGetBlock() { CreateProcedureCommand b1 = sample1(); assertTrue("Incorrect Block on command", b1.getBlock().equals(TestBlock.sample1())); //$NON-NLS-1$ }
@Test public void testExceptionGroup() { Block b1 = sample1(); Block b2 = b1.clone(); b1.setExceptionGroup("x"); b2.setExceptionGroup("y"); assertFalse(b1.equals(b2)); }
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$ }