Skip to content

Commit

Permalink
Refactored package name to github host.
Browse files Browse the repository at this point in the history
  • Loading branch information
AutomatedOwl committed May 25, 2018
1 parent e28fa17 commit dc23e1c
Show file tree
Hide file tree
Showing 12 changed files with 23 additions and 77 deletions.
28 changes: 2 additions & 26 deletions junit5/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>net.autobox.tools</groupId>
<groupId>com.github.automatedowl.tools</groupId>
<artifactId>chromedriver-js-errors-collector</artifactId>
<version>1.0-SNAPSHOT</version>
<version>1.0.1</version>
<build>
<sourceDirectory>src/main/java</sourceDirectory>
<testSourceDirectory>src/test/java</testSourceDirectory>
Expand Down Expand Up @@ -50,50 +50,26 @@
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>5.2.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>5.2.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-api</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-chrome-driver</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-remote-driver</artifactId>
<version>3.8.1</version>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-api</artifactId>
<version>3.12.0</version>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>5.2.0</version>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>5.2.0</version>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-api</artifactId>
<version>3.8.1</version>
</dependency>
</dependencies>
</project>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.autobox.tools;
package com.github.automatedowl.tools;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.autobox.tools;
package com.github.automatedowl.tools;

import static org.junit.jupiter.api.Assertions.assertThrows;

Expand All @@ -8,7 +8,7 @@
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import java.util.stream.Stream;
import net.autobox.tools.drivers.JSErrorsDriverHolder;
import com.github.automatedowl.tools.drivers.junitholder.JSErrorsDriverHolder;
import org.junit.jupiter.api.extension.AfterTestExecutionCallback;
import org.junit.jupiter.api.extension.Extension;
import org.junit.jupiter.api.extension.ExtensionContext;
Expand Down Expand Up @@ -50,7 +50,7 @@ public void afterTestExecution(ExtensionContext context) {
// Check for JS errors assertion boolean flag.
// Skip error throwing in case of negative unit test.
if (isAssertJSErrorsEnabled(context) && getJSErrorsFromLogEntries(logEntries).anyMatch(e -> true)
&& context.getTestClass().toString().contains("net.autobox.tools")
&& context.getTestClass().toString().contains("com.github.automatedowl")
&& context.getRequiredTestMethod().getName().equals("referenceErrorTest")) {
assertThrows(WebDriverException.class, ()->{
throw new WebDriverException(JS_ERRORS_EXCEPTION_STRING);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.autobox.tools.drivers;
package com.github.automatedowl.tools.drivers.junitholder;

import java.util.HashMap;
import java.util.Map;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package net.autobox.tools.test;
package com.github.automatedowl.tools;

import net.autobox.tools.JSErrorsCollectorJUnit;
import net.autobox.tools.drivers.JSErrorsDriverHolder;
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;
import org.junit.jupiter.api.Test;
Expand All @@ -21,7 +21,7 @@ public class JSCollectorJUnitTest {
static void setChromeDriver() {
System.setProperty("webdriver.chrome.driver",
System.getProperty("user.dir")
+ "/src/main/java/net/autobox/tools/drivers/webdriver/chromedriver");
+ "/src/main/java/com/github/automatedowl/tools/drivers/webdriver/chromedriver");
}

/** Test method.
Expand Down
35 changes: 3 additions & 32 deletions testng/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>net.autobox.tools</groupId>
<groupId>com.github.automatedowl.tools</groupId>
<artifactId>chromedriver-js-errors-collector</artifactId>
<version>1.0-SNAPSHOT</version>
<version>1.0.1</version>
<build>
<sourceDirectory>src/main/java</sourceDirectory>
<testSourceDirectory>src/test/java</testSourceDirectory>
Expand Down Expand Up @@ -46,49 +46,20 @@
<artifactId>junit-platform-launcher</artifactId>
<version>1.2.0</version>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-api</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-chrome-driver</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-remote-driver</artifactId>
<version>3.8.1</version>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-api</artifactId>
<version>3.12.0</version>
</dependency>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>6.14.3</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>6.14.3</version>
<version>3.8.1</version>
</dependency>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>6.14.3</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-api</artifactId>
<version>3.8.1</version>
</dependency>
</dependencies>
</project>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package net.autobox.tools;
package com.github.automatedowl.tools;

import net.autobox.tools.testng.drivers.JSErrorsDriverHolder;
import com.github.automatedowl.tools.drivers.testngholder.JSErrorsDriverHolder;
import org.openqa.selenium.WebDriverException;
import org.openqa.selenium.logging.LogEntry;
import org.openqa.selenium.logging.LogType;
Expand Down Expand Up @@ -56,7 +56,7 @@ public void afterInvocation(IInvokedMethod iInvokedMethod, ITestResult iTestResu
if (isAssertJSErrorsEnabled(
iInvokedMethod) && getJSErrorsFromLogEntries(logEntries).anyMatch(e -> true)
&& iInvokedMethod
.getTestMethod().getTestClass().toString().contains("net.autobox.tools.test")
.getTestMethod().getTestClass().toString().contains("com.github.automatedowl")
&& iInvokedMethod
.getTestMethod().getConstructorOrMethod().getMethod().getName().equals("referenceErrorTest")) {
// Don't throw exception on unit test.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.autobox.tools;
package com.github.automatedowl.tools;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.autobox.tools.testng.drivers;
package com.github.automatedowl.tools.drivers.testngholder;

import java.util.HashMap;
import java.util.Map;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
package net.autobox.tools.test;
package com.github.automatedowl.tools;

import java.lang.reflect.Method;
import net.autobox.tools.JSErrorsCollectorListener;
import net.autobox.tools.JSErrorsCollectorTestNG;
import net.autobox.tools.testng.drivers.JSErrorsDriverHolder;
import com.github.automatedowl.tools.drivers.testngholder.JSErrorsDriverHolder;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
Expand All @@ -20,7 +18,8 @@ public class JSCollectorTestNGTest {
@BeforeClass
static void setChromeDriver() {
System.setProperty("webdriver.chrome.driver",
System.getProperty("user.dir") + "/src/main/java/drivers/webdriver/chromedriver");
System.getProperty("user.dir")
+ "/src/main/java/com/github/automatedowl/tools/drivers/webdriver/chromedriver");
}

@BeforeMethod
Expand Down

0 comments on commit dc23e1c

Please sign in to comment.