Skip to content

Commit dee7901

Browse files
committed
[junit4] implement watcher skipped method and fix tests and examples for toggling local
1 parent fdbeacb commit dee7901

File tree

4 files changed

+273
-207
lines changed

4 files changed

+273
-207
lines changed

java/junit4/pom.xml

+202-180
Original file line numberDiff line numberDiff line change
@@ -2,191 +2,213 @@
22
<project xmlns="http://maven.apache.org/POM/4.0.0"
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5-
<modelVersion>4.0.0</modelVersion>
5+
<modelVersion>4.0.0</modelVersion>
66

7-
<groupId>com.saucelabs</groupId>
8-
<artifactId>saucebindings-junit4</artifactId>
9-
<version>${saucebindings-junit4.version}</version>
10-
<name>SauceBindings JUnit4</name>
11-
<description>Provides tools for interacting with SauceLabs with JUnit 4</description>
12-
<url>https://opensource.saucelabs.com/sauce_bindings</url>
13-
<licenses>
14-
<license>
15-
<name>MIT License</name>
16-
<url>https://www.opensource.org/licenses/mit-license.php</url>
17-
<distribution>repo</distribution>
18-
</license>
19-
</licenses>
7+
<groupId>com.saucelabs</groupId>
8+
<artifactId>saucebindings-junit4</artifactId>
9+
<version>${saucebindings-junit4.version}</version>
10+
<name>SauceBindings JUnit4</name>
11+
<description>Provides tools for interacting with SauceLabs with JUnit 4</description>
12+
<url>https://opensource.saucelabs.com/sauce_bindings</url>
13+
<licenses>
14+
<license>
15+
<name>MIT License</name>
16+
<url>https://www.opensource.org/licenses/mit-license.php</url>
17+
<distribution>repo</distribution>
18+
</license>
19+
</licenses>
2020

21-
<organization>
22-
<name>Sauce Labs</name>
23-
<url>https://www.saucelabs.com/</url>
24-
</organization>
25-
<developers>
26-
<developer>
27-
<name>Titus Fortner</name>
28-
<email>[email protected]</email>
29-
<organization>Sauce Labs</organization>
30-
<organizationUrl>https://www.saucelabs.com/</organizationUrl>
31-
</developer>
32-
<developer>
33-
<name>Nikolay Advolodkin</name>
34-
<email>[email protected]</email>
35-
<organization>Sauce Labs</organization>
36-
<organizationUrl>https://www.saucelabs.com/</organizationUrl>
37-
</developer>
38-
</developers>
21+
<organization>
22+
<name>Sauce Labs</name>
23+
<url>https://www.saucelabs.com/</url>
24+
</organization>
25+
<developers>
26+
<developer>
27+
<name>Titus Fortner</name>
28+
<email>[email protected]</email>
29+
<organization>Sauce Labs</organization>
30+
<organizationUrl>https://www.saucelabs.com/</organizationUrl>
31+
</developer>
32+
<developer>
33+
<name>Nikolay Advolodkin</name>
34+
<email>[email protected]</email>
35+
<organization>Sauce Labs</organization>
36+
<organizationUrl>https://www.saucelabs.com/</organizationUrl>
37+
</developer>
38+
</developers>
3939

40-
<scm>
41-
<connection>scm:git:git://github.com/saucelabs/sauce_bindings.git</connection>
42-
<developerConnection>scm:git:[email protected]:saucelabs/sauce_bindings.git</developerConnection>
43-
<url>[email protected]:saucelabs/sauce_bindings.git</url>
44-
<tag>HEAD</tag>
45-
</scm>
40+
<scm>
41+
<connection>scm:git:git://github.com/saucelabs/sauce_bindings.git</connection>
42+
<developerConnection>scm:git:[email protected]:saucelabs/sauce_bindings.git</developerConnection>
43+
<url>[email protected]:saucelabs/sauce_bindings.git</url>
44+
<tag>HEAD</tag>
45+
</scm>
4646

47-
<properties>
48-
<saucebindings-junit4.version>2.0.0-beta.1-SNAPSHOT</saucebindings-junit4.version>
49-
<maven.compiler.source>11</maven.compiler.source>
50-
<maven.compiler.target>11</maven.compiler.target>
51-
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
52-
</properties>
47+
<properties>
48+
<saucebindings-junit4.version>2.0.0-beta.1-SNAPSHOT</saucebindings-junit4.version>
49+
<maven.compiler.source>11</maven.compiler.source>
50+
<maven.compiler.target>11</maven.compiler.target>
51+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
52+
</properties>
5353

54-
<dependencies>
55-
<dependency>
56-
<groupId>com.saucelabs</groupId>
57-
<artifactId>sauce_bindings</artifactId>
58-
<version>2.0.0-beta.1-SNAPSHOT</version>
59-
</dependency>
60-
<dependency>
61-
<groupId>junit</groupId>
62-
<artifactId>junit</artifactId>
63-
<version>4.13.2</version>
64-
</dependency>
65-
<dependency>
66-
<groupId>org.projectlombok</groupId>
67-
<artifactId>lombok</artifactId>
68-
<version>1.18.30</version>
69-
<scope>provided</scope>
70-
</dependency>
71-
</dependencies>
54+
<dependencies>
55+
<dependency>
56+
<groupId>com.saucelabs</groupId>
57+
<artifactId>sauce_bindings</artifactId>
58+
<version>2.0.0-beta.1-SNAPSHOT</version>
59+
</dependency>
60+
<dependency>
61+
<groupId>junit</groupId>
62+
<artifactId>junit</artifactId>
63+
<version>4.13.2</version>
64+
</dependency>
65+
<dependency>
66+
<groupId>org.projectlombok</groupId>
67+
<artifactId>lombok</artifactId>
68+
<version>1.18.30</version>
69+
<scope>provided</scope>
70+
</dependency>
71+
</dependencies>
7272

73-
<build>
74-
<resources>
75-
<resource>
76-
<directory>src/main/resources</directory>
77-
<filtering>true</filtering>
78-
</resource>
79-
</resources>
80-
<plugins>
81-
<plugin>
82-
<artifactId>maven-source-plugin</artifactId>
83-
<version>3.0.0</version>
84-
<executions>
85-
<execution>
86-
<id>attach-sources</id>
87-
<phase>verify</phase>
88-
<goals>
89-
<goal>jar-no-fork</goal>
90-
</goals>
91-
</execution>
92-
</executions>
93-
</plugin>
94-
<plugin>
95-
<groupId>org.apache.maven.plugins</groupId>
96-
<artifactId>maven-surefire-plugin</artifactId>
97-
<version>2.22.1</version>
98-
<configuration>
99-
<parallel>all</parallel>
100-
<threadCountMethods>50</threadCountMethods>
101-
<useUnlimitedThreads>true</useUnlimitedThreads>
102-
<redirectTestOutputToFile>false</redirectTestOutputToFile>
103-
</configuration>
104-
</plugin>
105-
<plugin>
106-
<groupId>org.apache.maven.plugins</groupId>
107-
<artifactId>maven-gpg-plugin</artifactId>
108-
<version>1.6</version>
109-
<configuration>
110-
<gpgArguments>
111-
<arg>--pinentry-mode</arg>
112-
<arg>loopback</arg>
113-
</gpgArguments>
114-
</configuration>
115-
<executions>
116-
<execution>
117-
<id>sign-artifacts</id>
118-
<phase>verify</phase>
119-
<goals>
120-
<goal>sign</goal>
121-
</goals>
122-
</execution>
123-
</executions>
124-
</plugin>
125-
<plugin>
126-
<groupId>org.sonatype.plugins</groupId>
127-
<artifactId>nexus-staging-maven-plugin</artifactId>
128-
<version>1.6.7</version>
129-
<extensions>true</extensions>
130-
<configuration>
131-
<serverId>ossrh</serverId>
132-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
133-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
134-
</configuration>
135-
</plugin>
136-
<plugin>
137-
<groupId>org.apache.maven.plugins</groupId>
138-
<artifactId>maven-release-plugin</artifactId>
139-
<version>2.5.3</version>
140-
<configuration>
141-
<goals>deploy nexus-staging:release</goals>
142-
<autoVersionSubmodules>true</autoVersionSubmodules>
143-
<useReleaseProfile>false</useReleaseProfile>
144-
<releaseProfiles>release</releaseProfiles>
145-
<goals>deploy</goals>
146-
</configuration>
147-
<dependencies>
148-
<dependency>
149-
<groupId>org.apache.maven.scm</groupId>
150-
<artifactId>maven-scm-provider-gitexe</artifactId>
151-
<version>2.1.0</version>
152-
</dependency>
153-
</dependencies>
154-
</plugin>
155-
<plugin>
156-
<groupId>org.apache.maven.plugins</groupId>
157-
<artifactId>maven-scm-plugin</artifactId>
158-
<version>1.9.4</version>
159-
</plugin>
160-
<plugin>
161-
<groupId>org.apache.maven.plugins</groupId>
162-
<artifactId>maven-javadoc-plugin</artifactId>
163-
<version>3.2.0</version>
164-
<executions>
165-
<execution>
166-
<id>attach-javadocs</id>
167-
<goals>
168-
<goal>jar</goal>
169-
</goals>
170-
</execution>
171-
</executions>
172-
<configuration>
173-
<source>8</source>
174-
<javadocExecutable>${java.home}/bin/javadoc</javadocExecutable>
175-
</configuration>
176-
</plugin>
177-
</plugins>
178-
</build>
73+
<build>
74+
<resources>
75+
<resource>
76+
<directory>src/main/resources</directory>
77+
<filtering>true</filtering>
78+
</resource>
79+
</resources>
80+
<plugins>
81+
<plugin>
82+
<artifactId>maven-source-plugin</artifactId>
83+
<version>3.0.0</version>
84+
<executions>
85+
<execution>
86+
<id>attach-sources</id>
87+
<phase>verify</phase>
88+
<goals>
89+
<goal>jar-no-fork</goal>
90+
</goals>
91+
</execution>
92+
</executions>
93+
</plugin>
94+
<plugin>
95+
<groupId>org.apache.maven.plugins</groupId>
96+
<artifactId>maven-surefire-plugin</artifactId>
97+
<version>2.22.1</version>
98+
<executions>
99+
<execution>
100+
<id>sauce-enabled</id>
101+
<goals>
102+
<goal>test</goal>
103+
</goals>
104+
<configuration>
105+
<parallel>all</parallel>
106+
<threadCountMethods>50</threadCountMethods>
107+
<useUnlimitedThreads>true</useUnlimitedThreads>
108+
<redirectTestOutputToFile>false</redirectTestOutputToFile>
109+
</configuration>
110+
</execution>
111+
<execution>
112+
<id>sauce-disabled</id>
113+
<goals>
114+
<goal>test</goal>
115+
</goals>
116+
<configuration>
117+
<systemPropertyVariables>
118+
<sauce.disabled>true</sauce.disabled>
119+
</systemPropertyVariables>
120+
<includes>
121+
<include>**/ToggleTest.java</include>
122+
</includes>
123+
</configuration>
124+
</execution>
125+
</executions>
126+
</plugin>
127+
<plugin>
128+
<groupId>org.apache.maven.plugins</groupId>
129+
<artifactId>maven-gpg-plugin</artifactId>
130+
<version>1.6</version>
131+
<configuration>
132+
<gpgArguments>
133+
<arg>--pinentry-mode</arg>
134+
<arg>loopback</arg>
135+
</gpgArguments>
136+
</configuration>
137+
<executions>
138+
<execution>
139+
<id>sign-artifacts</id>
140+
<phase>verify</phase>
141+
<goals>
142+
<goal>sign</goal>
143+
</goals>
144+
</execution>
145+
</executions>
146+
</plugin>
147+
<plugin>
148+
<groupId>org.sonatype.plugins</groupId>
149+
<artifactId>nexus-staging-maven-plugin</artifactId>
150+
<version>1.6.7</version>
151+
<extensions>true</extensions>
152+
<configuration>
153+
<serverId>ossrh</serverId>
154+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
155+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
156+
</configuration>
157+
</plugin>
158+
<plugin>
159+
<groupId>org.apache.maven.plugins</groupId>
160+
<artifactId>maven-release-plugin</artifactId>
161+
<version>2.5.3</version>
162+
<configuration>
163+
<goals>deploy nexus-staging:release</goals>
164+
<autoVersionSubmodules>true</autoVersionSubmodules>
165+
<useReleaseProfile>false</useReleaseProfile>
166+
<releaseProfiles>release</releaseProfiles>
167+
<goals>deploy</goals>
168+
</configuration>
169+
<dependencies>
170+
<dependency>
171+
<groupId>org.apache.maven.scm</groupId>
172+
<artifactId>maven-scm-provider-gitexe</artifactId>
173+
<version>2.1.0</version>
174+
</dependency>
175+
</dependencies>
176+
</plugin>
177+
<plugin>
178+
<groupId>org.apache.maven.plugins</groupId>
179+
<artifactId>maven-scm-plugin</artifactId>
180+
<version>1.9.4</version>
181+
</plugin>
182+
<plugin>
183+
<groupId>org.apache.maven.plugins</groupId>
184+
<artifactId>maven-javadoc-plugin</artifactId>
185+
<version>3.2.0</version>
186+
<executions>
187+
<execution>
188+
<id>attach-javadocs</id>
189+
<goals>
190+
<goal>jar</goal>
191+
</goals>
192+
</execution>
193+
</executions>
194+
<configuration>
195+
<source>8</source>
196+
<javadocExecutable>${java.home}/bin/javadoc</javadocExecutable>
197+
</configuration>
198+
</plugin>
199+
</plugins>
200+
</build>
179201

180-
<distributionManagement>
181-
<snapshotRepository>
182-
<id>ossrh</id>
183-
<name>Nexus Release Repository</name>
184-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
185-
</snapshotRepository>
186-
<repository>
187-
<id>ossrh</id>
188-
<name>Nexus Release Repository</name>
189-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
190-
</repository>
191-
</distributionManagement>
202+
<distributionManagement>
203+
<snapshotRepository>
204+
<id>ossrh</id>
205+
<name>Nexus Release Repository</name>
206+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
207+
</snapshotRepository>
208+
<repository>
209+
<id>ossrh</id>
210+
<name>Nexus Release Repository</name>
211+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
212+
</repository>
213+
</distributionManagement>
192214
</project>

0 commit comments

Comments
 (0)