Skip to content

Commit a756bec

Browse files
author
sarah
committed
Fixing testing error messages
1 parent 9a714db commit a756bec

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/test/java/com/pluralsight/Module1_Task1_thru_4_IT.java

+4-5
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ public class Module1_Task1_thru_4_IT {
2626

2727
@Before
2828
public void setUp() throws IOException {
29+
// Turning off HTMLUnit Logging
30+
java.util.logging.Logger.getLogger("com.gargoylesoftware").setLevel(java.util.logging.Level.OFF);
31+
System.setProperty("org.apache.commons.logging.Log", "org.apache.commons.logging.impl.NoOpLog");
32+
2933
indexUrl = "http://localhost:8080"; //System.getProperty("integration.base.url");
3034
webClient = new WebClient();
3135
// Open the admin page
@@ -40,11 +44,6 @@ public void setUp() throws IOException {
4044
quantityInput.setAttribute("value", "1");
4145
HtmlSubmitInput submitButton = (HtmlSubmitInput)listForm.getInputByValue("Add to Cart");
4246
cartPage = submitButton.click();
43-
44-
// Turning off HTMLUnit Logging
45-
java.util.logging.Logger.getLogger("com.gargoylesoftware").setLevel(java.util.logging.Level.OFF);
46-
System.setProperty("org.apache.commons.logging.Log", "org.apache.commons.logging.impl.NoOpLog");
47-
4847

4948
// Get form
5049
try {

0 commit comments

Comments
 (0)