/** * Test a <code>JoinPredicate</code> object using <code>UnitTestUtil.helpTestEquivalence</code>. * <p> * This test ensures that a <code>JoinPredicate</code> object's clone * evaluate as equal when compared to the original object. * <p> * For example: * ... m.g1 UNION JOIN m.g2 ON m.g1.e1 = m.g2.e1 */ public void testCloneEquivalence(){ JoinPredicate jp1 = example(JoinType.JOIN_UNION, "e1"); //$NON-NLS-1$ JoinPredicate jp2 = (JoinPredicate)jp1.clone(); int equals = 0; UnitTestUtil.helpTestEquivalence(equals, jp1, jp2); }