< prev index next >

core/tests/org.openjdk.jmc.common.test/src/test/java/org/openjdk/jmc/common/test/unit/ContentTypeTest.java

Print this page

        

*** 61,77 **** @SuppressWarnings("nls") public class ContentTypeTest extends MCTestCase { static public void assertContains(String expectedSubStr, String actual) { if (!actual.contains(expectedSubStr)) { ! fail("expected to contain:<" + expectedSubStr + "> did not:<" + actual + ">"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ } } static public void assertNotContain(String unexpectedSubStr, String actual) { if (actual.contains(unexpectedSubStr)) { ! fail("didn't expect to contain:<" + unexpectedSubStr + "> did:<" + actual + ">"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ } } @Test public void testTimestampInteractive() throws Exception { --- 61,77 ---- @SuppressWarnings("nls") public class ContentTypeTest extends MCTestCase { static public void assertContains(String expectedSubStr, String actual) { if (!actual.contains(expectedSubStr)) { ! fail("expected to contain:<" + expectedSubStr + "> did not:<" + actual + ">"); } } static public void assertNotContain(String unexpectedSubStr, String actual) { if (actual.contains(unexpectedSubStr)) { ! fail("didn't expect to contain:<" + unexpectedSubStr + "> did:<" + actual + ">"); } } @Test public void testTimestampInteractive() throws Exception {
< prev index next >