Skip to content

Commit

Permalink
[#330] fix BrowserStatementTest.testBrowserOverwrittingInheritance
Browse files Browse the repository at this point in the history
  • Loading branch information
oomelianchuk committed Dec 18, 2024
1 parent 2bd3f97 commit 8807396
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -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;

Expand All @@ -14,7 +14,7 @@
@RunWith(NeodymiumRunner.class)
public abstract class BrowserParent
{
@NeodymiumTest
@Test
public void testParent()
{
Assert.assertNotNull(Neodymium.getDriver());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8807396

Please sign in to comment.