doTestEquals(cls); } catch (Exception e) { throwIfUnchecked(e);
public void testParameterNotInstantiableForEqualsTest() throws Exception { try { tester.doTestEquals(ConstructorParameterNotInstantiable.class); fail("should have failed"); } catch (ParameterNotInstantiableException expected) { } }
public void testBadEquals_withSingleParameterValue() throws Exception { try { tester.doTestEquals(ConstructorParameterWithOptionalNotInstantiable.class); fail(); } catch (ParameterHasNoDistinctValueException expected) { } }
public void testNoDistinctValueForEqualsTest() throws Exception { try { tester.doTestEquals(ConstructorParameterSingleValue.class); fail("should have failed"); } catch (ParameterHasNoDistinctValueException expected) { } }
public void testConstructorThrowsForEqualsTest() throws Exception { try { tester.doTestEquals(ConstructorThrows.class); fail("should have failed"); } catch (InvocationTargetException expected) { } }
public void testFactoryMethodReturnsNullForEqualsTest() throws Exception { try { tester.doTestEquals(FactoryMethodReturnsNullAndAnnotated.class); fail("should have failed"); } catch (FactoryMethodReturnsNullException expected) { } }
public void testEquals_setOfNonInstantiable() throws Exception { try { new ClassSanityTester().doTestEquals(SetWrapper.class); fail(); } catch (ParameterNotInstantiableException expected) { } }
if (!classToTest.isEnum() && isEqualsDefined(classToTest)) { try { tester.doTestEquals(classToTest); } catch (Throwable e) { throw sanityError(classToTest, EQUALS_TEST_METHOD_NAMES, "equals test", e);
public void testParameterNotInstantiableForEqualsTest() throws Exception { try { tester.doTestEquals(ConstructorParameterNotInstantiable.class); fail("should have failed"); } catch (ParameterNotInstantiableException expected) { } }
public void testBadEquals_withSingleParameterValue() throws Exception { try { tester.doTestEquals(ConstructorParameterWithOptionalNotInstantiable.class); fail(); } catch (ParameterHasNoDistinctValueException expected) { } }
public void testFactoryMethodReturnsNullForEqualsTest() throws Exception { try { tester.doTestEquals(FactoryMethodReturnsNullAndAnnotated.class); fail("should have failed"); } catch (FactoryMethodReturnsNullException expected) { } }
public void testNoDistinctValueForEqualsTest() throws Exception { try { tester.doTestEquals(ConstructorParameterSingleValue.class); fail("should have failed"); } catch (ParameterHasNoDistinctValueException expected) { } }
public void testConstructorThrowsForEqualsTest() throws Exception { try { tester.doTestEquals(ConstructorThrows.class); fail("should have failed"); } catch (InvocationTargetException expected) { } }
public void testBadEquals_withSingleParameterValue() throws Exception { try { tester.doTestEquals(ConstructorParameterWithOptionalNotInstantiable.class); fail(); } catch (ParameterHasNoDistinctValueException expected) {} }
public void testParameterNotInstantiableForEqualsTest() throws Exception { try { tester.doTestEquals(ConstructorParameterNotInstantiable.class); fail("should have failed"); } catch (ParameterNotInstantiableException expected) {} }
public void testConstructorThrowsForEqualsTest() throws Exception { try { tester.doTestEquals(ConstructorThrows.class); fail("should have failed"); } catch (InvocationTargetException expected) {} }
public void testNoDistinctValueForEqualsTest() throws Exception { try { tester.doTestEquals(ConstructorParameterSingleValue.class); fail("should have failed"); } catch (ParameterHasNoDistinctValueException expected) {} }
public void testFactoryMethodReturnsNullForEqualsTest() throws Exception { try { tester.doTestEquals(FactoryMethodReturnsNullAndAnnotated.class); fail("should have failed"); } catch (FactoryMethodReturnsNullException expected) {} }
public void testEquals_setOfNonInstantiable() throws Exception { try { new ClassSanityTester().doTestEquals(SetWrapper.class); fail(); } catch (ParameterNotInstantiableException expected) { } }
public void testEquals_setOfNonInstantiable() throws Exception { try { new ClassSanityTester().doTestEquals(SetWrapper.class); fail(); } catch (ParameterNotInstantiableException expected) {} }