Skip to content

Commit

Permalink
Updated pom.xml. Minor comments fixes. Updated JSErrorsCollectorListe…
Browse files Browse the repository at this point in the history
…ner.
  • Loading branch information
AutomatedOwl committed May 26, 2018
1 parent 53033bc commit 6eb1bc9
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import java.lang.annotation.Target;
import org.junit.jupiter.api.extension.ExtendWith;

/** Java annotation for collection chromedriver JS errors using JUnit 5. */
/** Java annotation for collecting chromedriver JS errors using JUnit 5. */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD,ElementType.ANNOTATION_TYPE})
@ExtendWith(JSErrorsExtension.class)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.github.automatedowl.tools;

import com.github.automatedowl.tools.JSErrorsCollectorJUnit;
import com.github.automatedowl.tools.drivers.junitholder.JSErrorsDriverHolder;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeAll;
Expand Down
5 changes: 0 additions & 5 deletions testng/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,6 @@
</pluginManagement>
</build>
<dependencies>
<dependency>
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-launcher</artifactId>
<version>1.2.0</version>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-chrome-driver</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ public void afterInvocation(IInvokedMethod iInvokedMethod, ITestResult iTestResu
}
else if (isAssertJSErrorsEnabled(
iInvokedMethod) && getJSErrorsFromLogEntries(logEntries).anyMatch(e -> true)) {
JSErrorsDriverHolder.getDriverForTest(iInvokedMethod.getTestMethod().getMethodName()).quit();
throw new WebDriverException(JS_ERRORS_EXCEPTION_STRING);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/** Java annotation for collection chromedriver JS errors using TestNG. */
/** Java annotation for collecting chromedriver JS errors using TestNG. */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD,ElementType.ANNOTATION_TYPE})
public @interface JSErrorsCollectorTestNG {
Expand Down

0 comments on commit 6eb1bc9

Please sign in to comment.