use of com.oracle.tck.lib.autd2.unittests.TestObject in project jtharness by openjdk.
the class TestPureAssert method testAssertNotSame_Negative_CustomMessage.
@Test
public void testAssertNotSame_Negative_CustomMessage() {
TestObject testObject = new TestObject(RANDOM_STRING);
try {
com.sun.tck.lib.Assert.assertNotSame(testObject, testObject, RANDOM_STRING + "32423434");
fail("Exception not thrown");
} catch (AssertionFailedException e) {
assertEquals(RANDOM_STRING + "32423434\nExpected not same : \"" + testObject + "\"", e.getMessage());
}
}
Aggregations