diff --git a/src/test/java/com/xceptance/neodymium/junit4/testclasses/browser/inheritance/BrowserParent.java b/src/test/java/com/xceptance/neodymium/junit4/testclasses/browser/inheritance/BrowserParent.java index 778f041e..4954c0db 100644 --- a/src/test/java/com/xceptance/neodymium/junit4/testclasses/browser/inheritance/BrowserParent.java +++ b/src/test/java/com/xceptance/neodymium/junit4/testclasses/browser/inheritance/BrowserParent.java @@ -1,11 +1,11 @@ package com.xceptance.neodymium.junit4.testclasses.browser.inheritance; import org.junit.Assert; +import org.junit.Test; import org.junit.runner.RunWith; import com.xceptance.neodymium.common.browser.Browser; import com.xceptance.neodymium.junit4.NeodymiumRunner; -import com.xceptance.neodymium.junit5.NeodymiumTest; import com.xceptance.neodymium.junit5.tests.NeodymiumWebDriverTest; import com.xceptance.neodymium.util.Neodymium; @@ -14,7 +14,7 @@ @RunWith(NeodymiumRunner.class) public abstract class BrowserParent { - @NeodymiumTest + @Test public void testParent() { Assert.assertNotNull(Neodymium.getDriver()); diff --git a/src/test/java/com/xceptance/neodymium/junit4/tests/BrowserStatementTest.java b/src/test/java/com/xceptance/neodymium/junit4/tests/BrowserStatementTest.java index 9d2c3fc6..b6fe7bbe 100644 --- a/src/test/java/com/xceptance/neodymium/junit4/tests/BrowserStatementTest.java +++ b/src/test/java/com/xceptance/neodymium/junit4/tests/BrowserStatementTest.java @@ -476,11 +476,12 @@ public void testBrowserOverwrittingInheritance() throws Throwable { String[] expected = new String[] { - "test :: Browser Chrome_1024x768" + "test :: Browser Chrome_1024x768", + "testParent :: Browser Chrome_1024x768" }; checkDescription(BrowserOverwrittingChild.class, expected); Result result = JUnitCore.runClasses(BrowserOverwrittingChild.class); - checkPass(result, 1, 0); + checkPass(result, 2, 0); } private void checkChrome(BrowserConfiguration config) diff --git a/src/test/java/com/xceptance/neodymium/junit5/tests/BrowserStatementTest.java b/src/test/java/com/xceptance/neodymium/junit5/tests/BrowserStatementTest.java index c2bb1e40..1fb692cc 100644 --- a/src/test/java/com/xceptance/neodymium/junit5/tests/BrowserStatementTest.java +++ b/src/test/java/com/xceptance/neodymium/junit5/tests/BrowserStatementTest.java @@ -458,11 +458,12 @@ public void testBrowserOverwrittingInheritance() throws Throwable { String[] expected = new String[] { - "test :: Browser Chrome_1024x768" + "test :: Browser Chrome_1024x768", + "testParent :: Browser Chrome_1024x768" }; checkDescription(BrowserOverwrittingChild.class, expected); NeodymiumTestExecutionSummary summary = run(BrowserOverwrittingChild.class); - checkPass(summary, 1, 0); + checkPass(summary, 2, 0); } private void checkChrome(BrowserConfiguration config)