You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ti...@apache.org on 2017/04/23 08:21:00 UTC
[2/3] maven-surefire git commit: [SUREFIRE-1366] mvn javadoc:javadoc
fails on Javadoc syntax with JDK 1.8
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/48198b1b/maven-surefire-plugin/src/main/java/org/apache/maven/plugin/surefire/SurefirePlugin.java
----------------------------------------------------------------------
diff --git a/maven-surefire-plugin/src/main/java/org/apache/maven/plugin/surefire/SurefirePlugin.java b/maven-surefire-plugin/src/main/java/org/apache/maven/plugin/surefire/SurefirePlugin.java
index 4a404df..63cff9b 100644
--- a/maven-surefire-plugin/src/main/java/org/apache/maven/plugin/surefire/SurefirePlugin.java
+++ b/maven-surefire-plugin/src/main/java/org/apache/maven/plugin/surefire/SurefirePlugin.java
@@ -37,7 +37,6 @@ import static org.apache.maven.plugin.surefire.SurefireHelper.reportExecution;
* Run tests using Surefire.
*
* @author Jason van Zyl
- * @noinspection JavaDoc
*/
@Mojo( name = "test", defaultPhase = LifecyclePhase.TEST, threadSafe = true,
requiresDependencyResolution = ResolutionScope.TEST )
@@ -67,24 +66,27 @@ public class SurefirePlugin
private File reportsDirectory;
/**
- * Specify this parameter to run individual tests by file name, overriding the <code>includes/excludes</code>
+ * Specify this parameter to run individual tests by file name, overriding the <em>includes/excludes</em>
* parameters. Each pattern you specify here will be used to create an include pattern formatted like
- * <code>**/${test}.java</code>, so you can just type "-Dtest=MyTest" to run a single test called
- * "foo/MyTest.java". The test patterns prefixed with a <code>!</code> will be excluded.<br/>
- * This parameter overrides the <code>includes/excludes</code> parameters, and the TestNG <code>suiteXmlFiles</code>
+ * <em>**/${test}.java</em>, so you can just type "-Dtest=MyTest" to run a single test called
+ * "foo/MyTest.java". The test patterns prefixed with a <em>!</em> will be excluded.<br>
+ * This parameter overrides the <em>includes/excludes</em> parameters, and the TestNG <em>suiteXmlFiles</em>
* parameter.
- * <p/>
+ * <br>
* Since 2.7.3, you can execute a limited number of methods in the test by adding #myMethod or #my*ethod. For
- * example, "-Dtest=MyTest#myMethod". This is supported for junit 4.x and testNg.<br/>
- * <br/>
- * Since 2.19 a complex syntax is supported in one parameter (JUnit 4, JUnit 4.7+, TestNG):<br/>
- * "-Dtest=???Test, !Unstable*, pkg/**/Ci*leTest.java, *Test#test*One+testTwo?????, #fast*+slowTest"<br/>
- * "-Dtest=Basic*, !%regex[.*.Unstable.*], !%regex[.*.MyTest.class#one.*|two.*], %regex[#fast.*|slow.*]"<br/>
- * <br/>
+ * example, <em>-Dtest=MyTest#myMethod</em>. This is supported for junit 4.x and testNg.<br>
+ * <br>
+ * Since 2.19 a complex syntax is supported in one parameter (JUnit 4, JUnit 4.7+, TestNG):<br>
+ * <em>-Dtest=???Test, !Unstable*, pkg/**/Ci*leTest.java, *Test#test*One+testTwo?????, #fast*+slowTest</em>
+ * <br>
+ * or e.g.
+ * <br>
+ * <em>-Dtest=Basic*, !%regex[.*.Unstable.*], !%regex[.*.MyTest.class#one.*|two.*], %regex[#fast.*|slow.*]</em>
+ * <br>
+ * <br>
* The Parameterized JUnit runner <em>describes</em> test methods using an index in brackets, so the non-regex
* method pattern would become: <em>#testMethod[*]</em>. If using <em>@Parameters(name="{index}: fib({0})={1}")</em>
* and selecting the index e.g. 5 in pattern, the non-regex method pattern would become <em>#testMethod[5:*]</em>.
- * <br/>
*/
@Parameter( property = "test" )
private String test;
@@ -120,7 +122,7 @@ public class SurefirePlugin
/**
* Attach a debugger to the forked JVM. If set to "true", the process will suspend and wait for a debugger to attach
* on port 5005. If set to some other string, that string will be appended to the argLine, allowing you to configure
- * arbitrary debuggability options (without overwriting the other options specified through the <code>argLine</code>
+ * arbitrary debuggability options (without overwriting the other options specified through the <em>argLine</em>
* parameter).
*
* @since 2.4
@@ -152,11 +154,11 @@ public class SurefirePlugin
/**
* Stop executing queued parallel JUnit tests after a certain number of seconds.
- * <br/>
- * Example values: "3.5", "4"<br/>
- * <br/>
+ * <br>
+ * Example values: "3.5", "4"<br>
+ * <br>
* If set to 0, wait forever, never timing out.
- * Makes sense with specified <code>parallel</code> different from "none".
+ * Makes sense with specified <em>parallel</em> different from "none".
*
* @since 2.16
*/
@@ -166,11 +168,11 @@ public class SurefirePlugin
/**
* Stop executing queued parallel JUnit tests
* and <em>interrupt</em> currently running tests after a certain number of seconds.
- * <br/>
- * Example values: "3.5", "4"<br/>
- * <br/>
+ * <br>
+ * Example values: "3.5", "4"<br>
+ * <br>
* If set to 0, wait forever, never timing out.
- * Makes sense with specified <code>parallel</code> different from "none".
+ * Makes sense with specified <em>parallel</em> different from "none".
*
* @since 2.16
*/
@@ -178,27 +180,32 @@ public class SurefirePlugin
private double parallelTestsTimeoutForcedInSeconds;
/**
- * A list of <include> elements specifying the tests (by pattern) that should be included in testing. When not
- * specified and when the <code>test</code> parameter is not specified, the default includes will be <code><br/>
- * <includes><br/>
- * <include>**/Test*.java</include><br/>
- * <include>**/*Test.java</include><br/>
- * <include>**/*Tests.java</include><br/>
- * <include>**/*TestCase.java</include><br/>
- * </includes><br/>
- * </code>
- * <p/>
+ * A list of <include> elements specifying the tests (by pattern) that should be included in testing. When not
+ * specified and when the <em>test</em> parameter is not specified, the default includes will be <br>
+ * <em>
+ * <includes><br>
+ * <include>**/Test*.java</include><br>
+ * <include>**/*Test.java</include><br>
+ * <include>**/*Tests.java</include><br>
+ * <include>**/*TestCase.java</include><br>
+ * </includes><br>
+ * </em>
+ * <br>
* Each include item may also contain a comma-separated sublist of items, which will be treated as multiple
- * <include> entries.<br/>
- * Since 2.19 a complex syntax is supported in one parameter (JUnit 4, JUnit 4.7+, TestNG):<br/>
- * <include>%regex[.*[Cat|Dog].*], Basic????, !Unstable*</include><br/>
- * <include>%regex[.*[Cat|Dog].*], !%regex[pkg.*Slow.*.class], pkg/**/*Fast*.java</include><br/>
- * <p/>
- * This parameter is ignored if the TestNG <code>suiteXmlFiles</code> parameter is specified.<br/>
- * <br/>
+ * <include> entries.<br>
+ * Since 2.19 a complex syntax is supported in one parameter (JUnit 4, JUnit 4.7+, TestNG):<br>
+ * <em>
+ * <include>%regex[.*[Cat|Dog].*], Basic????, !Unstable*</include><br>
+ * <include>%regex[.*[Cat|Dog].*], !%regex[pkg.*Slow.*.class], pkg/**/*Fast*.java
+ * </include>
+ * </em>
+ * <br>
+ * <br>
+ * This parameter is ignored if the TestNG <em>suiteXmlFiles</em> parameter is specified.<br>
+ * <br>
* <em>Notice that</em> these values are relative to the directory containing generated test classes of the project
- * being tested. This directory is declared by the parameter <code>testClassesDirectory</code> which defaults
- * to the POM property <code>${project.build.testOutputDirectory}</code>, typically <em>src/test/java</em>
+ * being tested. This directory is declared by the parameter <em>testClassesDirectory</em> which defaults
+ * to the POM property <em>${project.build.testOutputDirectory}</em>, typically <em>src/test/java</em>
* unless overridden.
*/
@Parameter
@@ -220,7 +227,7 @@ public class SurefirePlugin
* <a href="http://maven.apache.org/plugins/maven-surefire-plugin/examples/class-loading.html">
* http://maven.apache.org/plugins/maven-surefire-plugin/examples/class-loading.html</a>
* for a more detailed explanation of manifest-only JARs and their benefits.)
- * <br/>
+ * <br>
* Beware, setting this to "false" may cause your tests to fail on Windows if your classpath is too long.
*
* @since 2.4.3
@@ -238,10 +245,10 @@ public class SurefirePlugin
private int rerunFailingTestsCount;
/**
- * (TestNG) List of <suiteXmlFile> elements specifying TestNG suite xml file locations. Note that
- * <code>suiteXmlFiles</code> is incompatible with several other parameters of this plugin, like
- * <code>includes/excludes</code>.<br/>
- * This parameter is ignored if the <code>test</code> parameter is specified (allowing you to run a single test
+ * (TestNG) List of <suiteXmlFile> elements specifying TestNG suite xml file locations. Note that
+ * <em>suiteXmlFiles</em> is incompatible with several other parameters of this plugin, like
+ * <em>includes/excludes</em>.<br>
+ * This parameter is ignored if the <em>test</em> parameter is specified (allowing you to run a single test
* instead of an entire suite).
*
* @since 2.2
@@ -253,19 +260,19 @@ public class SurefirePlugin
* Defines the order the tests will be run in. Supported values are "alphabetical", "reversealphabetical", "random",
* "hourly" (alphabetical on even hours, reverse alphabetical on odd hours), "failedfirst", "balanced" and
* "filesystem".
- * <br/>
- * <br/>
+ * <br>
+ * <br>
* Odd/Even for hourly is determined at the time the of scanning the classpath, meaning it could change during a
* multi-module build.
- * <br/>
- * <br/>
+ * <br>
+ * <br>
* Failed first will run tests that failed on previous run first, as well as new tests for this run.
- * <br/>
- * <br/>
+ * <br>
+ * <br>
* Balanced is only relevant with parallel=classes, and will try to optimize the run-order of the tests reducing the
* overall execution time. Initially a statistics file is created and every next test run will reorder classes.
- * <br/>
- * <br/>
+ * <br>
+ * <br>
* Note that the statistics are stored in a file named .surefire-XXXXXXXXX beside pom.xml, and should not be checked
* into version control. The "XXXXX" is the SHA1 checksum of the entire surefire configuration, so different
* configurations will have different statistics files, meaning if you change any config settings you will re-run
@@ -278,30 +285,34 @@ public class SurefirePlugin
/**
* A file containing include patterns. Blank lines, or lines starting with # are ignored. If {@code includes} are
- * also specified, these patterns are appended. Example with path, simple and regex includes:<br/>
- * */test/*<br/>
- * **/NotIncludedByDefault.java<br/>
- * %regex[.*Test.*|.*Not.*]<br/>
+ * also specified, these patterns are appended. Example with path, simple and regex includes:<br>
+ * <em>
+ * */test/*<br>
+ * **/NotIncludedByDefault.java<br>
+ * %regex[.*Test.*|.*Not.*]
+ * </em>
*/
@Parameter( property = "surefire.includesFile" )
private File includesFile;
/**
* A file containing exclude patterns. Blank lines, or lines starting with # are ignored. If {@code excludes} are
- * also specified, these patterns are appended. Example with path, simple and regex excludes:<br/>
- * */test/*<br/>
- * **/DontRunTest.*<br/>
- * %regex[.*Test.*|.*Not.*]<br/>
+ * also specified, these patterns are appended. Example with path, simple and regex excludes:<br>
+ * <em>
+ * */test/*<br>
+ * **/DontRunTest.*<br>
+ * %regex[.*Test.*|.*Not.*]
+ * </em>
*/
@Parameter( property = "surefire.excludesFile" )
private File excludesFile;
/**
* Set to error/failure count in order to skip remaining tests.
- * Due to race conditions in parallel/forked execution this may not be fully guaranteed.<br/>
+ * Due to race conditions in parallel/forked execution this may not be fully guaranteed.<br>
* Enable with system property -Dsurefire.skipAfterFailureCount=1 or any number greater than zero.
- * Defaults to "0".<br/>
- * See the prerequisites and limitations in documentation:<br/>
+ * Defaults to "0".<br>
+ * See the prerequisites and limitations in documentation:<br>
* <a href="http://maven.apache.org/plugins/maven-surefire-plugin/examples/skip-after-failure.html">
* http://maven.apache.org/plugins/maven-surefire-plugin/examples/skip-after-failure.html</a>
*
@@ -313,9 +324,9 @@ public class SurefirePlugin
/**
* After the plugin process is shutdown by sending SIGTERM signal (CTRL+C), SHUTDOWN command is received by every
* forked JVM. By default (shutdown=testset) forked JVM would not continue with new test which means that
- * the current test may still continue to run.<br/>
- * The parameter can be configured with other two values "exit" and "kill".<br/>
- * Using "exit" forked JVM executes System.exit(1) after the plugin process has received SIGTERM signal.<br/>
+ * the current test may still continue to run.<br>
+ * The parameter can be configured with other two values "exit" and "kill".<br>
+ * Using "exit" forked JVM executes System.exit(1) after the plugin process has received SIGTERM signal.<br>
* Using "kill" the JVM executes Runtime.halt(1) and kills itself.
*
* @since 2.19
@@ -374,18 +385,12 @@ public class SurefirePlugin
this.skipTests = skipTests;
}
- /**
- * @noinspection deprecation
- */
@Override
public boolean isSkipExec()
{
return skipExec;
}
- /**
- * @noinspection deprecation
- */
@Override
public void setSkipExec( boolean skipExec )
{
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/48198b1b/maven-surefire-report-plugin/pom.xml
----------------------------------------------------------------------
diff --git a/maven-surefire-report-plugin/pom.xml b/maven-surefire-report-plugin/pom.xml
index 9f35967..f38ab7e 100644
--- a/maven-surefire-report-plugin/pom.xml
+++ b/maven-surefire-report-plugin/pom.xml
@@ -134,6 +134,15 @@
</executions>
</plugin>
<plugin>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <compilerArgs>
+ <!-- -syntax due to HelpMojo -->
+ <arg>-Xdoclint:-syntax</arg>
+ </compilerArgs>
+ </configuration>
+ </plugin>
+ <plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.12</version>
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/48198b1b/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 60d6376..355ae28 100644
--- a/pom.xml
+++ b/pom.xml
@@ -286,6 +286,12 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <fork>true</fork>
+ <compilerArgs>
+ <arg>-Xdoclint:all</arg>
+ </compilerArgs>
+ </configuration>
</plugin>
<!-- NOTE: animal sniffer does not check test classes: https://jira.codehaus.org/browse/MANIMALSNIFFER-40 -->
<plugin>
@@ -367,7 +373,7 @@
<configuration>
<rules>
<requireJavaVersion>
- <version>[1.6.0, 1.9.0)</version>
+ <version>[1.8.0,)</version>
</requireJavaVersion>
</rules>
</configuration>
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/48198b1b/surefire-api/src/main/java/org/apache/maven/surefire/booter/DumpErrorSingleton.java
----------------------------------------------------------------------
diff --git a/surefire-api/src/main/java/org/apache/maven/surefire/booter/DumpErrorSingleton.java b/surefire-api/src/main/java/org/apache/maven/surefire/booter/DumpErrorSingleton.java
index fc92c70..e287f05 100644
--- a/surefire-api/src/main/java/org/apache/maven/surefire/booter/DumpErrorSingleton.java
+++ b/surefire-api/src/main/java/org/apache/maven/surefire/booter/DumpErrorSingleton.java
@@ -27,7 +27,7 @@ import java.io.File;
import static org.apache.maven.surefire.util.internal.DumpFileUtils.newDumpFile;
/**
- * Dumps lost commands and caused exceptions in forked JVM. <p/>
+ * Dumps lost commands and caused exceptions in forked JVM. <br>
* Fail-safe.
*
* @author <a href="mailto:tibordigana@apache.org">Tibor Digana (tibor17)</a>
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/48198b1b/surefire-api/src/main/java/org/apache/maven/surefire/booter/ForkingReporterFactory.java
----------------------------------------------------------------------
diff --git a/surefire-api/src/main/java/org/apache/maven/surefire/booter/ForkingReporterFactory.java b/surefire-api/src/main/java/org/apache/maven/surefire/booter/ForkingReporterFactory.java
index 89469fa..7459ad9 100644
--- a/surefire-api/src/main/java/org/apache/maven/surefire/booter/ForkingReporterFactory.java
+++ b/surefire-api/src/main/java/org/apache/maven/surefire/booter/ForkingReporterFactory.java
@@ -31,9 +31,7 @@ import org.apache.maven.surefire.suite.RunResult;
* This factory is only used inside forks.
*
* @author Kristian Rosenvold
- * @noinspection UnusedDeclaration
*/
-
public class ForkingReporterFactory
implements ReporterFactory
{
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/48198b1b/surefire-api/src/main/java/org/apache/maven/surefire/booter/ForkingRunListener.java
----------------------------------------------------------------------
diff --git a/surefire-api/src/main/java/org/apache/maven/surefire/booter/ForkingRunListener.java b/surefire-api/src/main/java/org/apache/maven/surefire/booter/ForkingRunListener.java
index f0f0ac6..d2c112b 100644
--- a/surefire-api/src/main/java/org/apache/maven/surefire/booter/ForkingRunListener.java
+++ b/surefire-api/src/main/java/org/apache/maven/surefire/booter/ForkingRunListener.java
@@ -40,14 +40,14 @@ import static org.apache.maven.surefire.util.internal.StringUtils.escapeToPrinta
/**
* Encodes the full output of the test run to the stdout stream.
- * <p/>
+ * <br>
* This class and the ForkClient contain the full definition of the
* "wire-level" protocol used by the forked process. The protocol
* is *not* part of any public api and may change without further
* notice.
- * <p/>
+ * <br>
* This class is threadsafe.
- * <p/>
+ * <br>
* The synchronization in the underlying PrintStream (target instance)
* is used to preserve thread safety of the output stream. To perform
* multiple writes/prints for a single request, they must
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/48198b1b/surefire-api/src/main/java/org/apache/maven/surefire/booter/SurefireReflector.java
----------------------------------------------------------------------
diff --git a/surefire-api/src/main/java/org/apache/maven/surefire/booter/SurefireReflector.java b/surefire-api/src/main/java/org/apache/maven/surefire/booter/SurefireReflector.java
index 54677a7..4c88179 100644
--- a/surefire-api/src/main/java/org/apache/maven/surefire/booter/SurefireReflector.java
+++ b/surefire-api/src/main/java/org/apache/maven/surefire/booter/SurefireReflector.java
@@ -58,7 +58,7 @@ import static org.apache.maven.surefire.util.ReflectionUtils.newInstance;
/**
* Does reflection based invocation of the surefire methods.
- * <p/>
+ * <br>
* This is to avoid complications with linkage issues
*
* @author Kristian Rosenvold
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/48198b1b/surefire-api/src/main/java/org/apache/maven/surefire/cli/CommandLineOption.java
----------------------------------------------------------------------
diff --git a/surefire-api/src/main/java/org/apache/maven/surefire/cli/CommandLineOption.java b/surefire-api/src/main/java/org/apache/maven/surefire/cli/CommandLineOption.java
index 2f82814..a806370 100644
--- a/surefire-api/src/main/java/org/apache/maven/surefire/cli/CommandLineOption.java
+++ b/surefire-api/src/main/java/org/apache/maven/surefire/cli/CommandLineOption.java
@@ -28,7 +28,7 @@ import java.util.List;
*
* @author <a href="mailto:tibordigana@apache.org">Tibor Digana (tibor17)</a>
* @since 2.19
- * @see http://books.sonatype.com/mvnref-book/reference/running-sect-options.html
+ * @see <a href="http://books.sonatype.com/mvnref-book/reference/running-sect-options.html">command line options</a>
*/
public enum CommandLineOption
{
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/48198b1b/surefire-api/src/main/java/org/apache/maven/surefire/providerapi/ProviderParameters.java
----------------------------------------------------------------------
diff --git a/surefire-api/src/main/java/org/apache/maven/surefire/providerapi/ProviderParameters.java b/surefire-api/src/main/java/org/apache/maven/surefire/providerapi/ProviderParameters.java
index 9ef7a94..b2180b3 100644
--- a/surefire-api/src/main/java/org/apache/maven/surefire/providerapi/ProviderParameters.java
+++ b/surefire-api/src/main/java/org/apache/maven/surefire/providerapi/ProviderParameters.java
@@ -36,10 +36,10 @@ import java.util.Map;
/**
* Injected into the providers upon provider construction. Allows the provider to request services and data it needs.
- * <p/>
+ * <br>
* NOTE: This class is part of the proposed public api for surefire providers from 2.7 and up. It may
* still be subject to changes, even for minor revisions.
- * <p/>
+ * <br>
* The api covers this interface and all the types reachable from it. And nothing else.
*
* @author Kristian Rosenvold
@@ -80,7 +80,7 @@ public interface ProviderParameters
/**
* Gets a logger intended for console output.
- * <p/>
+ * <br>
* This output is intended for provider-oriented messages that are not attached to a single test-set
* and will normally be written to something console-like immediately.
*
@@ -136,7 +136,7 @@ public interface ProviderParameters
List<CommandLineOption> getMainCliOptions();
/**
- * Defaults to 0. Configured with parameter <em>skipAfterFailureCount</em> in POM.
+ * @return Defaults to 0. Configured with parameter <em>skipAfterFailureCount</em> in POM.
*/
int getSkipAfterFailureCount();
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/48198b1b/surefire-api/src/main/java/org/apache/maven/surefire/providerapi/SurefireProvider.java
----------------------------------------------------------------------
diff --git a/surefire-api/src/main/java/org/apache/maven/surefire/providerapi/SurefireProvider.java b/surefire-api/src/main/java/org/apache/maven/surefire/providerapi/SurefireProvider.java
index 9b27c1c..494e9aa 100644
--- a/surefire-api/src/main/java/org/apache/maven/surefire/providerapi/SurefireProvider.java
+++ b/surefire-api/src/main/java/org/apache/maven/surefire/providerapi/SurefireProvider.java
@@ -26,13 +26,13 @@ import org.apache.maven.surefire.testset.TestSetFailedException;
/**
* Interface to be implemented by all Surefire providers.
- * <p/>
+ * <br>
* NOTE: This class is part of the proposed public api for surefire providers for 2.7. It may
* still be subject to changes, even for minor revisions.
- * <p/>
+ * <br>
* The api covers this interface and all the types reachable from it. And nothing else.
- * <p/>
- * <p/>
+ * <br>
+ * <br>
* Called in one of three ways:
* Forkmode = never: getSuites is not called, invoke is called with null parameter
* Forkmode = once: getSuites is not called, invoke is called with null parameter
@@ -45,7 +45,7 @@ public interface SurefireProvider
{
/**
* Determines the number of forks.
- * <p/>
+ * <br>
* Called when forkmode is different from "never" or "always", allows the provider to define
* how to behave for the fork.
*
@@ -64,6 +64,7 @@ public interface SurefireProvider
* When reporting fails
* @throws org.apache.maven.surefire.testset.TestSetFailedException
* When testset fails
+ * @throws InvocationTargetException fails in <code>ProviderFactory</code>
*/
@SuppressWarnings( "checkstyle:redundantthrows" )
RunResult invoke( Object forkTestSet )
@@ -72,14 +73,14 @@ public interface SurefireProvider
/**
* Makes an attempt at cancelling the current run, giving the provider a chance to notify
* reporting that the remaining tests have been cancelled due to timeout.
- * <p/>
+ * <br>
* If the provider thinks it can terminate properly it is the responsibility of
* the invoke method to return a RunResult with a booter code of failure.
- * <p/>
+ * <br>
* It is up to the provider to find out how to implement this method properly.
* A provider may also choose to not do anything at all in this method,
* which means surefire will kill the forked process soon afterwards anyway.
- * <p/>
+ * <br>
* Will be called on a different thread than the one calling invoke.
*/
// Todo: Need to think a lot closer about how/if this works and if there is a use case for it.
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/48198b1b/surefire-api/src/main/java/org/apache/maven/surefire/report/ConsoleOutputCapture.java
----------------------------------------------------------------------
diff --git a/surefire-api/src/main/java/org/apache/maven/surefire/report/ConsoleOutputCapture.java b/surefire-api/src/main/java/org/apache/maven/surefire/report/ConsoleOutputCapture.java
index 28f111b..d4af679 100644
--- a/surefire-api/src/main/java/org/apache/maven/surefire/report/ConsoleOutputCapture.java
+++ b/surefire-api/src/main/java/org/apache/maven/surefire/report/ConsoleOutputCapture.java
@@ -29,7 +29,7 @@ import static org.apache.maven.surefire.util.internal.StringUtils.NL;
/**
* Deals with system.out/err.
- * <p/>
+ * <br>
*/
public class ConsoleOutputCapture
{
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/48198b1b/surefire-api/src/main/java/org/apache/maven/surefire/report/LegacyPojoStackTraceWriter.java
----------------------------------------------------------------------
diff --git a/surefire-api/src/main/java/org/apache/maven/surefire/report/LegacyPojoStackTraceWriter.java b/surefire-api/src/main/java/org/apache/maven/surefire/report/LegacyPojoStackTraceWriter.java
index 88552cb..dee095c 100644
--- a/surefire-api/src/main/java/org/apache/maven/surefire/report/LegacyPojoStackTraceWriter.java
+++ b/surefire-api/src/main/java/org/apache/maven/surefire/report/LegacyPojoStackTraceWriter.java
@@ -29,7 +29,6 @@ import java.io.StringWriter;
* Write the trace out for a POJO test. Java 1.5 compatible.
*
* @author <a href="mailto:brett@apache.org">Brett Porter</a>
- * @noinspection ThrowableResultOfMethodCallIgnored
*/
public class LegacyPojoStackTraceWriter
implements StackTraceWriter
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/48198b1b/surefire-api/src/main/java/org/apache/maven/surefire/report/ReportEntry.java
----------------------------------------------------------------------
diff --git a/surefire-api/src/main/java/org/apache/maven/surefire/report/ReportEntry.java b/surefire-api/src/main/java/org/apache/maven/surefire/report/ReportEntry.java
index 2bc3fcd..ec0f782 100644
--- a/surefire-api/src/main/java/org/apache/maven/surefire/report/ReportEntry.java
+++ b/surefire-api/src/main/java/org/apache/maven/surefire/report/ReportEntry.java
@@ -55,8 +55,9 @@ public interface ReportEntry
/**
* Gets the runtime for the item. Optional parameter. If the value is not set, it will be determined within
- * the reporting subsustem. Some providers like to calculate this value themselves, and it gets the
+ * the reporting subsystem. Some providers like to calculate this value themselves, and it gets the
* most accurate value.
+ * @return duration of a test in milli seconds
*/
Integer getElapsed();
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/48198b1b/surefire-api/src/main/java/org/apache/maven/surefire/report/ReporterConfiguration.java
----------------------------------------------------------------------
diff --git a/surefire-api/src/main/java/org/apache/maven/surefire/report/ReporterConfiguration.java b/surefire-api/src/main/java/org/apache/maven/surefire/report/ReporterConfiguration.java
index 5238473..d2bfb13 100644
--- a/surefire-api/src/main/java/org/apache/maven/surefire/report/ReporterConfiguration.java
+++ b/surefire-api/src/main/java/org/apache/maven/surefire/report/ReporterConfiguration.java
@@ -24,7 +24,7 @@ import java.io.PrintStream;
/**
* Bits and pieces of reporting configuration that seem to be necessary on the provider side.
- * <p/>
+ * <br>
* Todo: Consider moving these fields elsewhere, this concept does not smell too good
*
* @author Kristian Rosenvold
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/48198b1b/surefire-api/src/main/java/org/apache/maven/surefire/report/RunListener.java
----------------------------------------------------------------------
diff --git a/surefire-api/src/main/java/org/apache/maven/surefire/report/RunListener.java b/surefire-api/src/main/java/org/apache/maven/surefire/report/RunListener.java
index b964430..22cda61 100644
--- a/surefire-api/src/main/java/org/apache/maven/surefire/report/RunListener.java
+++ b/surefire-api/src/main/java/org/apache/maven/surefire/report/RunListener.java
@@ -22,7 +22,7 @@ package org.apache.maven.surefire.report;
/**
* Used by providers to report results.
* Using this interface integrates the providers together into a common reporting infrastructure.
- * <p/>
+ * <br>
* An instance of a reporter is not guaranteed to be thread-safe and concurrent test frameworks
* must request an instance of a reporter per-thread from the ReporterFactory.
*/
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/48198b1b/surefire-api/src/main/java/org/apache/maven/surefire/report/SimpleReportEntry.java
----------------------------------------------------------------------
diff --git a/surefire-api/src/main/java/org/apache/maven/surefire/report/SimpleReportEntry.java b/surefire-api/src/main/java/org/apache/maven/surefire/report/SimpleReportEntry.java
index 28a19f9..0dd4264 100644
--- a/surefire-api/src/main/java/org/apache/maven/surefire/report/SimpleReportEntry.java
+++ b/surefire-api/src/main/java/org/apache/maven/surefire/report/SimpleReportEntry.java
@@ -161,9 +161,6 @@ public class SimpleReportEntry
return message;
}
- /**
- * @noinspection RedundantIfStatement
- */
@Override
public boolean equals( Object o )
{
@@ -177,27 +174,7 @@ public class SimpleReportEntry
}
SimpleReportEntry that = (SimpleReportEntry) o;
-
- if ( elapsed != null ? !elapsed.equals( that.elapsed ) : that.elapsed != null )
- {
- return false;
- }
- if ( name != null ? !name.equals( that.name ) : that.name != null )
- {
- return false;
- }
- if ( source != null ? !source.equals( that.source ) : that.source != null )
- {
- return false;
- }
- if ( stackTraceWriter != null
- ? !stackTraceWriter.equals( that.stackTraceWriter )
- : that.stackTraceWriter != null )
- {
- return false;
- }
-
- return true;
+ return isElapsedTimeEqual( that ) && isNameEqual( that ) && isSourceEqual( that ) && isStackEqual( that );
}
@Override
@@ -215,4 +192,24 @@ public class SimpleReportEntry
{
return getName();
}
+
+ private boolean isElapsedTimeEqual( SimpleReportEntry en )
+ {
+ return elapsed != null ? elapsed.equals( en.elapsed ) : en.elapsed == null;
+ }
+
+ private boolean isNameEqual( SimpleReportEntry en )
+ {
+ return name != null ? name.equals( en.name ) : en.name == null;
+ }
+
+ private boolean isSourceEqual( SimpleReportEntry en )
+ {
+ return source != null ? source.equals( en.source ) : en.source == null;
+ }
+
+ private boolean isStackEqual( SimpleReportEntry en )
+ {
+ return stackTraceWriter != null ? stackTraceWriter.equals( en.stackTraceWriter ) : en.stackTraceWriter == null;
+ }
}
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/48198b1b/surefire-api/src/main/java/org/apache/maven/surefire/suite/RunResult.java
----------------------------------------------------------------------
diff --git a/surefire-api/src/main/java/org/apache/maven/surefire/suite/RunResult.java b/surefire-api/src/main/java/org/apache/maven/surefire/suite/RunResult.java
index aa099c8..e318e1f 100644
--- a/surefire-api/src/main/java/org/apache/maven/surefire/suite/RunResult.java
+++ b/surefire-api/src/main/java/org/apache/maven/surefire/suite/RunResult.java
@@ -24,7 +24,7 @@ import java.io.PrintWriter;
/**
* Represents a test-run-result; this may be from a single test run or an aggregated result.
- * <p/>
+ * <br>
* In the case of timeout==true, the run-counts reflect the state of the test-run at the time
* of the timeout.
*
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/48198b1b/surefire-api/src/main/java/org/apache/maven/surefire/testset/ResolvedTest.java
----------------------------------------------------------------------
diff --git a/surefire-api/src/main/java/org/apache/maven/surefire/testset/ResolvedTest.java b/surefire-api/src/main/java/org/apache/maven/surefire/testset/ResolvedTest.java
index 8e46ccb..27d51a3 100644
--- a/surefire-api/src/main/java/org/apache/maven/surefire/testset/ResolvedTest.java
+++ b/surefire-api/src/main/java/org/apache/maven/surefire/testset/ResolvedTest.java
@@ -78,7 +78,7 @@ public final class ResolvedTest
*
* @param classPattern test class file pattern
* @param methodPattern test method
- * @param isRegex {@code true} if regex
+ * @param isRegex {@code true} if pattern is regex
*/
public ResolvedTest( String classPattern, String methodPattern, boolean isRegex )
{
@@ -105,6 +105,10 @@ public final class ResolvedTest
/**
* The regex <code>pattern</code> is always unwrapped.
+ *
+ * @param type class or method
+ * @param pattern pattern or regex
+ * @param isRegex {@code true} if pattern is regex
*/
public ResolvedTest( Type type, String pattern, boolean isRegex )
{
@@ -123,12 +127,14 @@ public final class ResolvedTest
}
/**
- * Test class file pattern, e.g. org/**/Cat*.class<br/>, or null if not any
+ * Test class file pattern, e.g. org/**/Cat*.class<br>, or null if not any
* and {@link #hasTestClassPattern()} returns false.
- * Other examples: org/animals/Cat*, org/animals/Ca?.class, %regex[Cat.class|Dog.*]<br/>
- * <br/>
+ * Other examples: org/animals/Cat*, org/animals/Ca?.class, %regex[Cat.class|Dog.*]<br>
+ * <br>
* '*' means zero or more characters<br>
* '?' means one and only one character
+ *
+ * @return class pattern or regex
*/
public String getTestClassPattern()
{
@@ -141,11 +147,13 @@ public final class ResolvedTest
}
/**
- * Test method, e.g. "realTestMethod".<br/>, or null if not any and {@link #hasTestMethodPattern()} returns false.
- * Other examples: test* or testSomethin? or %regex[testOne|testTwo] or %ant[testOne|testTwo]<br/>
- * <br/>
+ * Test method, e.g. "realTestMethod".<br>, or null if not any and {@link #hasTestMethodPattern()} returns false.
+ * Other examples: test* or testSomethin? or %regex[testOne|testTwo] or %ant[testOne|testTwo]<br>
+ * <br>
* '*' means zero or more characters<br>
* '?' means one and only one character
+ *
+ * @return method pattern or regex
*/
public String getTestMethodPattern()
{
@@ -266,6 +274,9 @@ public final class ResolvedTest
/**
* Prevents {@link #match(String, String)} from throwing NPE in situations when inclusive returns true.
+ *
+ * @param testClassFile path to class file
+ * @return {@code true} if examined class in null and class pattern exists
*/
private boolean alwaysInclusiveQuietly( String testClassFile )
{
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/48198b1b/surefire-api/src/main/java/org/apache/maven/surefire/testset/TestListResolver.java
----------------------------------------------------------------------
diff --git a/surefire-api/src/main/java/org/apache/maven/surefire/testset/TestListResolver.java b/surefire-api/src/main/java/org/apache/maven/surefire/testset/TestListResolver.java
index a7f0e28..8c302a1 100644
--- a/surefire-api/src/main/java/org/apache/maven/surefire/testset/TestListResolver.java
+++ b/surefire-api/src/main/java/org/apache/maven/surefire/testset/TestListResolver.java
@@ -38,9 +38,9 @@ import static org.apache.maven.surefire.testset.ResolvedTest.Type.METHOD;
// TODO In Surefire 3.0 see SUREFIRE-1309 and use normal fully qualified class name regex instead.
/**
* Resolved multi pattern filter e.g. -Dtest=MyTest#test,!AnotherTest#otherTest into an object model
- * composed of included and excluded tests.<br/>
+ * composed of included and excluded tests.<br>
* The methods {@link #shouldRun(String, String)} are filters easily used in JUnit filter or TestNG.
- * This class is independent of JUnit and TestNG API.<br/>
+ * This class is independent of JUnit and TestNG API.<br>
* It is accessed by Java Reflection API in {@link org.apache.maven.surefire.booter.SurefireReflector}
* using specific ClassLoader.
*/
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/48198b1b/surefire-api/src/main/java/org/apache/maven/surefire/testset/TestRequest.java
----------------------------------------------------------------------
diff --git a/surefire-api/src/main/java/org/apache/maven/surefire/testset/TestRequest.java b/surefire-api/src/main/java/org/apache/maven/surefire/testset/TestRequest.java
index a1c9315..ef8d666 100644
--- a/surefire-api/src/main/java/org/apache/maven/surefire/testset/TestRequest.java
+++ b/surefire-api/src/main/java/org/apache/maven/surefire/testset/TestRequest.java
@@ -74,6 +74,8 @@ public class TestRequest
/**
* A specific test request issued with -Dtest= from the command line.
+ *
+ * @return filter
*/
public TestListResolver getTestListResolver()
{
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/48198b1b/surefire-api/src/main/java/org/apache/maven/surefire/testset/TestSetFailedException.java
----------------------------------------------------------------------
diff --git a/surefire-api/src/main/java/org/apache/maven/surefire/testset/TestSetFailedException.java b/surefire-api/src/main/java/org/apache/maven/surefire/testset/TestSetFailedException.java
index e0b03aa..2ec07e7 100644
--- a/surefire-api/src/main/java/org/apache/maven/surefire/testset/TestSetFailedException.java
+++ b/surefire-api/src/main/java/org/apache/maven/surefire/testset/TestSetFailedException.java
@@ -44,7 +44,7 @@ public class TestSetFailedException
/**
* Create a <code>TestFailedException</code> with the specified detail
* message and cause.
- * <p/>
+ * <br>
* <p>Note that the detail message associated with cause is
* <em>not</em> automatically incorporated in this throwable's detail
* message.
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/48198b1b/surefire-api/src/main/java/org/apache/maven/surefire/util/internal/DaemonThreadFactory.java
----------------------------------------------------------------------
diff --git a/surefire-api/src/main/java/org/apache/maven/surefire/util/internal/DaemonThreadFactory.java b/surefire-api/src/main/java/org/apache/maven/surefire/util/internal/DaemonThreadFactory.java
index 4912f8e..3610a4b 100644
--- a/surefire-api/src/main/java/org/apache/maven/surefire/util/internal/DaemonThreadFactory.java
+++ b/surefire-api/src/main/java/org/apache/maven/surefire/util/internal/DaemonThreadFactory.java
@@ -57,6 +57,7 @@ public final class DaemonThreadFactory
/**
* Should be used by thread pools.
+ * @return new instance of {@link ThreadFactory} where each {@link Thread thread} is daemon
*/
public static ThreadFactory newDaemonThreadFactory()
{
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/48198b1b/surefire-api/src/main/java/org/apache/maven/surefire/util/internal/DumpFileUtils.java
----------------------------------------------------------------------
diff --git a/surefire-api/src/main/java/org/apache/maven/surefire/util/internal/DumpFileUtils.java b/surefire-api/src/main/java/org/apache/maven/surefire/util/internal/DumpFileUtils.java
index cad2e7a..302358c 100644
--- a/surefire-api/src/main/java/org/apache/maven/surefire/util/internal/DumpFileUtils.java
+++ b/surefire-api/src/main/java/org/apache/maven/surefire/util/internal/DumpFileUtils.java
@@ -48,6 +48,9 @@ public final class DumpFileUtils
/**
* New dump file. Synchronized object appears in main memory and perfectly visible in other threads.
+ *
+ * @param dumpFileName dump file name
+ * @param configuration only report directory
*/
public static synchronized File newDumpFile( String dumpFileName, ReporterConfiguration configuration )
{
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/48198b1b/surefire-api/src/main/java/org/apache/maven/surefire/util/internal/StringUtils.java
----------------------------------------------------------------------
diff --git a/surefire-api/src/main/java/org/apache/maven/surefire/util/internal/StringUtils.java b/surefire-api/src/main/java/org/apache/maven/surefire/util/internal/StringUtils.java
index bb7c3a7..f97731c 100644
--- a/surefire-api/src/main/java/org/apache/maven/surefire/util/internal/StringUtils.java
+++ b/surefire-api/src/main/java/org/apache/maven/surefire/util/internal/StringUtils.java
@@ -29,10 +29,12 @@ import java.util.StringTokenizer;
* <p>
* Common <code>String</code> manipulation routines.
* </p>
- * <p/>
+ * <br>
* <p>
* Originally from <a href="http://jakarta.apache.org/turbine/">Turbine</a> and the GenerationJavaCore library.
* </p>
+ * <br>
+ * NOTE: This class is not part of any api and is public purely for technical reasons !
*
* @author <a href="mailto:jon@latchkey.com">Jon S. Stevens</a>
* @author <a href="mailto:dlr@finemaltcoding.com">Daniel Rall</a>
@@ -46,12 +48,6 @@ import java.util.StringTokenizer;
* @author <a href="mailto:alex@purpletech.com">Alexander Day Chaffee</a>
* @author <a href="mailto:vincent.siveton@gmail.com">Vincent Siveton</a>
* @version $Id: StringUtils.java 8001 2009-01-03 13:17:09Z vsiveton $
- * @noinspection JavaDoc
- * <p/>
- * A quick borrow from plexus-utils by Kristian Rosenvold, to restore jdk1.3 compat Threw away all the
- * unused stuff.
- * <p/>
- * NOTE: This class is not part of any api and is public purely for technical reasons !
* @since 1.0
*/
public final class StringUtils
@@ -81,8 +77,7 @@ public final class StringUtils
public static String[] split( String text, String separator )
{
- int max = -1;
- StringTokenizer tok;
+ final StringTokenizer tok;
if ( separator == null )
{
// Null separator means we're using StringTokenizer's default
@@ -94,35 +89,10 @@ public final class StringUtils
tok = new StringTokenizer( text, separator );
}
- int listSize = tok.countTokens();
- if ( max > 0 && listSize > max )
+ String[] list = new String[tok.countTokens()];
+ for ( int i = 0; tok.hasMoreTokens(); i++ )
{
- listSize = max;
- }
-
- String[] list = new String[listSize];
- int i = 0;
- int lastTokenBegin;
- int lastTokenEnd = 0;
- while ( tok.hasMoreTokens() )
- {
- if ( max > 0 && i == listSize - 1 )
- {
- // In the situation where we hit the max yet have
- // tokens left over in our input, the last list
- // element gets all remaining text.
- String endToken = tok.nextToken();
- lastTokenBegin = text.indexOf( endToken, lastTokenEnd );
- list[i] = text.substring( lastTokenBegin );
- break;
- }
- else
- {
- list[i] = tok.nextToken();
- lastTokenBegin = text.indexOf( list[i], lastTokenEnd );
- lastTokenEnd = lastTokenBegin + list[i].length();
- }
- i++;
+ list[i] = tok.nextToken();
}
return list;
}
@@ -255,7 +225,7 @@ public final class StringUtils
* <p>
* A save length of {@code out} is {@code len * 3 + outoff}.
* <p>
- * The reverse-method is {@link #unescapeBytes(byte[], String)}.
+ * The reverse-method is {@link #unescapeBytes(String, String)}.
*
* @param out output buffer
* @param outoff offset in the output buffer
@@ -339,9 +309,7 @@ public final class StringUtils
try
{
decodedFromSourceCharset = sourceCharset.newDecoder().decode( ByteBuffer.wrap( out, 0, outPos ) );
- ByteBuffer defaultEncoded = DEFAULT_CHARSET.encode( decodedFromSourceCharset );
-
- return defaultEncoded;
+ return DEFAULT_CHARSET.encode( decodedFromSourceCharset );
}
catch ( CharacterCodingException e )
{
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/48198b1b/surefire-api/src/test/java/org/apache/maven/surefire/testset/FundamentalFilterTest.java
----------------------------------------------------------------------
diff --git a/surefire-api/src/test/java/org/apache/maven/surefire/testset/FundamentalFilterTest.java b/surefire-api/src/test/java/org/apache/maven/surefire/testset/FundamentalFilterTest.java
index 9118448..b99d4f9 100644
--- a/surefire-api/src/test/java/org/apache/maven/surefire/testset/FundamentalFilterTest.java
+++ b/surefire-api/src/test/java/org/apache/maven/surefire/testset/FundamentalFilterTest.java
@@ -23,6 +23,7 @@ import org.junit.Test;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.*;
+@SuppressWarnings( { "javadoc", "checkstyle:javadoctype" } )
/**
* Inclusive test patters:<p>
*
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/48198b1b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/BooterDeserializer.java
----------------------------------------------------------------------
diff --git a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/BooterDeserializer.java b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/BooterDeserializer.java
index bb64115..8fa760b 100644
--- a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/BooterDeserializer.java
+++ b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/BooterDeserializer.java
@@ -37,12 +37,12 @@ import static org.apache.maven.surefire.cli.CommandLineOption.*;
/**
* Knows how to serialize and deserialize the booter configuration.
- * <p/>
+ * <br>
* The internal serialization format is through a properties file. The long-term goal of this
* class is not to expose this implementation information to its clients. This still leaks somewhat,
* and there are some cases where properties are being accessed as "Properties" instead of
* more representative domain objects.
- * <p/>
+ * <br>
*
* @author Jason van Zyl
* @author Emmanuel Venisse
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/48198b1b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/Classpath.java
----------------------------------------------------------------------
diff --git a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/Classpath.java b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/Classpath.java
index 84ed9eb..9181cdf 100644
--- a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/Classpath.java
+++ b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/Classpath.java
@@ -116,6 +116,9 @@ public class Classpath implements Iterable<String>
/**
* @deprecated this should be package private method which returns List of Files. It will be
* removed in the next major version.
+ *
+ * @return list of {@link URL jar files paths} with <em>file</em> protocol in URL.
+ * @throws MalformedURLException if {@link URL} could not be created upon given class-path element(s)
*/
@Deprecated
public List<URL> getAsUrlList()
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/48198b1b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/ClasspathConfiguration.java
----------------------------------------------------------------------
diff --git a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/ClasspathConfiguration.java b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/ClasspathConfiguration.java
index 7425e3d..0e84315 100644
--- a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/ClasspathConfiguration.java
+++ b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/ClasspathConfiguration.java
@@ -21,7 +21,7 @@ package org.apache.maven.surefire.booter;
/**
* Represents the classpaths for the BooterConfiguration.
- * <p/>
+ * <br>
*
* @author Jason van Zyl
* @author Emmanuel Venisse
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/48198b1b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/ForkedBooter.java
----------------------------------------------------------------------
diff --git a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/ForkedBooter.java b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/ForkedBooter.java
index d5bba1f..8dabaef 100644
--- a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/ForkedBooter.java
+++ b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/ForkedBooter.java
@@ -63,9 +63,9 @@ import static org.apache.maven.surefire.util.internal.StringUtils.encodeStringFo
/**
* The part of the booter that is unique to a forked vm.
- * <p/>
+ * <br>
* Deals with deserialization of the booter wire-level protocol
- * <p/>
+ * <br>
*
* @author Jason van Zyl
* @author Emmanuel Venisse
@@ -82,7 +82,7 @@ public final class ForkedBooter
/**
* This method is invoked when Surefire is forked - this method parses and organizes the arguments passed to it and
- * then calls the Surefire class' run method. <p/> The system exit code will be 1 if an exception is thrown.
+ * then calls the Surefire class' run method. <br> The system exit code will be 1 if an exception is thrown.
*
* @param args Commandline arguments
*/
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/48198b1b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/IsolatedClassLoader.java
----------------------------------------------------------------------
diff --git a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/IsolatedClassLoader.java b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/IsolatedClassLoader.java
index a4d7d09..601acd5 100644
--- a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/IsolatedClassLoader.java
+++ b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/IsolatedClassLoader.java
@@ -25,7 +25,7 @@ import java.util.HashSet;
import java.util.Set;
/**
- * @noinspection CustomClassloader
+ * Loads classes from jar files added via {@link #addURL(URL)}.
*/
public class IsolatedClassLoader
extends URLClassLoader
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/48198b1b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/ProviderConfiguration.java
----------------------------------------------------------------------
diff --git a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/ProviderConfiguration.java b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/ProviderConfiguration.java
index 79cbd42..c7379e4 100644
--- a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/ProviderConfiguration.java
+++ b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/ProviderConfiguration.java
@@ -33,7 +33,7 @@ import org.apache.maven.surefire.testset.TestRequest;
/**
* Represents the surefire configuration that passes all the way into the provider
* classloader and the provider.
- * <p/>
+ * <br>
*
* @author Jason van Zyl
* @author Emmanuel Venisse
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/48198b1b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/ProviderFactory.java
----------------------------------------------------------------------
diff --git a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/ProviderFactory.java b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/ProviderFactory.java
index ae4e08e..e800cfe 100644
--- a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/ProviderFactory.java
+++ b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/ProviderFactory.java
@@ -34,7 +34,7 @@ import static org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArr
/**
* Creates the surefire provider.
- * <p/>
+ * <br>
*
* @author Kristian Rosenvold
*/
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/48198b1b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/StartupConfiguration.java
----------------------------------------------------------------------
diff --git a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/StartupConfiguration.java b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/StartupConfiguration.java
index ce23d3e..9fa1c62 100644
--- a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/StartupConfiguration.java
+++ b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/StartupConfiguration.java
@@ -95,7 +95,7 @@ public class StartupConfiguration
/**
* <p>Strip any of a supplied String from the end of a String.</p>
- * <p/>
+ * <br>
* <p>If the strip String is <code>null</code>, whitespace is
* stripped.</p>
*
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/48198b1b/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/IncludesExcludesFromFileIT.java
----------------------------------------------------------------------
diff --git a/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/IncludesExcludesFromFileIT.java b/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/IncludesExcludesFromFileIT.java
index 58d270a..a6c539c 100644
--- a/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/IncludesExcludesFromFileIT.java
+++ b/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/IncludesExcludesFromFileIT.java
@@ -26,7 +26,7 @@ import org.junit.Test;
/**
* Test include/exclude from files.
- * <p/>
+ * <br>
* Based on {@link IncludesExcludesIT}.
*/
public class IncludesExcludesFromFileIT
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/48198b1b/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/UnicodeTestNamesIT.java
----------------------------------------------------------------------
diff --git a/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/UnicodeTestNamesIT.java b/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/UnicodeTestNamesIT.java
index a99c142..5470a3f 100644
--- a/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/UnicodeTestNamesIT.java
+++ b/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/UnicodeTestNamesIT.java
@@ -31,7 +31,7 @@ import org.junit.Test;
/**
* Verifies unicode filenames pass through correctly.
- * <p/>
+ * <br>
* If the underlying file system turns out not to support unicode, we just fail an assumption.s
*/
public class UnicodeTestNamesIT
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/48198b1b/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/fixture/MavenLauncher.java
----------------------------------------------------------------------
diff --git a/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/fixture/MavenLauncher.java b/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/fixture/MavenLauncher.java
index e7aff2e..bd12dda 100755
--- a/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/fixture/MavenLauncher.java
+++ b/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/fixture/MavenLauncher.java
@@ -38,7 +38,7 @@ import static java.util.Collections.unmodifiableList;
/**
* Encapsulate all needed features to start a maven run
- * <p/>
+ * <br>
*
* @author Kristian Rosenvold
*/
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/48198b1b/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/fixture/SurefireJUnit4IntegrationTestCase.java
----------------------------------------------------------------------
diff --git a/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/fixture/SurefireJUnit4IntegrationTestCase.java b/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/fixture/SurefireJUnit4IntegrationTestCase.java
index c300abf..ee04dbc 100644
--- a/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/fixture/SurefireJUnit4IntegrationTestCase.java
+++ b/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/fixture/SurefireJUnit4IntegrationTestCase.java
@@ -22,7 +22,7 @@ package org.apache.maven.surefire.its.fixture;
/**
* Contains commonly used features for most tests, encapsulating
* common use cases.
- * <p/>
+ * <br>
* Also includes thread-safe access to the extracted resource
* files, which AbstractSurefireIntegrationTestClass does not.
* Thread safe only for running in "classes" mode.
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/48198b1b/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/fixture/SurefireLauncher.java
----------------------------------------------------------------------
diff --git a/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/fixture/SurefireLauncher.java b/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/fixture/SurefireLauncher.java
index 4cb162d..e2356f4 100755
--- a/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/fixture/SurefireLauncher.java
+++ b/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/fixture/SurefireLauncher.java
@@ -29,7 +29,7 @@ import static java.util.Collections.singletonList;
/**
* Encapsulate all needed features to start a surefire run
- * <p/>
+ * <br>
* Also includes thread-safe access to the extracted resource
* files
*
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/48198b1b/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1024VerifyFailsafeIfTestedIT.java
----------------------------------------------------------------------
diff --git a/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1024VerifyFailsafeIfTestedIT.java b/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1024VerifyFailsafeIfTestedIT.java
index 9866dd5..886cd07 100644
--- a/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1024VerifyFailsafeIfTestedIT.java
+++ b/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1024VerifyFailsafeIfTestedIT.java
@@ -29,7 +29,7 @@ import org.junit.Test;
* Found in Surefire 2.16.
*
* @author <a href="mailto:tibordigana@apache.org">Tibor Digana (tibor17)</a>
- * @see {@linkplain https://jira.codehaus.org/browse/SUREFIRE-1024}
+ * @see <a href="https://issues.apache.org/jira/browse/SUREFIRE-1024">SUREFIRE-1024</a>
* @since 2.19
*/
public class Surefire1024VerifyFailsafeIfTestedIT
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/48198b1b/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1028UnableToRunSingleIT.java
----------------------------------------------------------------------
diff --git a/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1028UnableToRunSingleIT.java b/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1028UnableToRunSingleIT.java
index 6e4d76c..ec63a8a 100644
--- a/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1028UnableToRunSingleIT.java
+++ b/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1028UnableToRunSingleIT.java
@@ -25,20 +25,20 @@ import org.junit.Test;
/**
* Plugin Configuration: parallel=classes
- * <p/>
+ * <br>
* With Surefire 2.15
* {@code $ mvn test -Dtest=MyTest#testFoo}
* Results:
* Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
- * <p/>
+ * <br>
* With Surefire 2.16
* {@code $ mvn test -Dtest=MyTest#testFoo}
- * <p/>
+ * <br>
* Results:
* Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
*
* @author <a href="mailto:tibordigana@apache.org">Tibor Digana (tibor17)</a>
- * @see {@linkplain https://jira.codehaus.org/browse/SUREFIRE-1028}
+ * @see <a href="https://issues.apache.org/jira/browse/SUREFIRE-1028">SUREFIRE-1028</a>
* @since 2.18
*/
public class Surefire1028UnableToRunSingleIT
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/48198b1b/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1036NonFilterableJUnitRunnerWithCategoriesIT.java
----------------------------------------------------------------------
diff --git a/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1036NonFilterableJUnitRunnerWithCategoriesIT.java b/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1036NonFilterableJUnitRunnerWithCategoriesIT.java
index 1d5d353..0d6d8b6 100644
--- a/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1036NonFilterableJUnitRunnerWithCategoriesIT.java
+++ b/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1036NonFilterableJUnitRunnerWithCategoriesIT.java
@@ -34,7 +34,7 @@ import static org.junit.Assert.*;
/**
* @author <a href="mailto:tibordigana@apache.org">Tibor Digana (tibor17)</a>
- * @see {@linkplain https://jira.codehaus.org/browse/SUREFIRE-1036}
+ * @see <a href="https://issues.apache.org/jira/browse/SUREFIRE-1036">SUREFIRE-1036</a>
* @since 2.18
*/
public class Surefire1036NonFilterableJUnitRunnerWithCategoriesIT
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/48198b1b/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1053SystemPropertiesIT.java
----------------------------------------------------------------------
diff --git a/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1053SystemPropertiesIT.java b/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1053SystemPropertiesIT.java
index 6494b79..b3ed744 100644
--- a/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1053SystemPropertiesIT.java
+++ b/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1053SystemPropertiesIT.java
@@ -28,7 +28,7 @@ import static org.junit.Assert.assertFalse;
/**
* @author <a href="mailto:tibordigana@apache.org">Tibor Digana (tibor17)</a>
- * @see {@linkplain https://jira.codehaus.org/browse/SUREFIRE-1053}
+ * @see <a href="https://issues.apache.org/jira/browse/SUREFIRE-1053">SUREFIRE-1053</a>
* @since 2.18
*/
public class Surefire1053SystemPropertiesIT
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/48198b1b/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1080ParallelForkDoubleTestIT.java
----------------------------------------------------------------------
diff --git a/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1080ParallelForkDoubleTestIT.java b/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1080ParallelForkDoubleTestIT.java
index 27d8cfd..d6a38fa 100644
--- a/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1080ParallelForkDoubleTestIT.java
+++ b/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1080ParallelForkDoubleTestIT.java
@@ -24,8 +24,8 @@ import org.apache.maven.surefire.its.fixture.SurefireLauncher;
import org.junit.Test;
/**
- * Description of SUREFIRE-1080: <p/>
- * <p/>
+ * Description of SUREFIRE-1080: <br>
+ * <br>
* There are 9 tests in total in the attached project, and mvn test will show 9 tests run.
* When I use the command " mvn test -Dparallel=classes -DforkCount=2 -DuseUnlimitedThreads=true", it shows 13 tests
* run (and sometimes 16), and some tests are run more than once.
@@ -35,7 +35,7 @@ import org.junit.Test;
* JUnit 4.11
*
* @author <a href="mailto:tibordigana@apache.org">Tibor Digana (tibor17)</a>
- * @see {@linkplain https://jira.codehaus.org/browse/SUREFIRE-1080}
+ * @see <a href="https://issues.apache.org/jira/browse/SUREFIRE-1080">SUREFIRE-1080</a>
* @since 2.18
*/
public class Surefire1080ParallelForkDoubleTestIT
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/48198b1b/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1082ParallelJUnitParameterizedIT.java
----------------------------------------------------------------------
diff --git a/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1082ParallelJUnitParameterizedIT.java b/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1082ParallelJUnitParameterizedIT.java
index a39f870..b1d9d4f 100644
--- a/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1082ParallelJUnitParameterizedIT.java
+++ b/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1082ParallelJUnitParameterizedIT.java
@@ -38,7 +38,7 @@ import static org.junit.Assert.assertThat;
/**
* @author <a href="mailto:tibordigana@apache.org">Tibor Digana (tibor17)</a>
- * @see {@linkplain https://jira.codehaus.org/browse/SUREFIRE-1082}
+ * @see <a href="https://issues.apache.org/jira/browse/SUREFIRE-1082">SUREFIRE-1082</a>
* @since 2.18
*/
public class Surefire1082ParallelJUnitParameterizedIT
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/48198b1b/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1095NpeInRunListener.java
----------------------------------------------------------------------
diff --git a/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1095NpeInRunListener.java b/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1095NpeInRunListener.java
index 509f3d0..f894265 100644
--- a/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1095NpeInRunListener.java
+++ b/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1095NpeInRunListener.java
@@ -23,6 +23,7 @@ import org.apache.maven.surefire.its.fixture.SurefireJUnit4IntegrationTestCase;
import org.apache.maven.surefire.its.fixture.SurefireLauncher;
import org.junit.Test;
+@SuppressWarnings( { "javadoc", "checkstyle:javadoctype" } )
/**
*
* In the surefire plugin, it is possible to specify one or more RunListener when running tests with JUnit.
@@ -41,7 +42,7 @@ import org.junit.Test;
* Note: other methods in the RunListener I tested seems fine (i.e., they get a valid Description object as input)
*
* @author <a href="mailto:tibordigana@apache.org">Tibor Digana (tibor17)</a>
- * @see {@linkplain https://jira.codehaus.org/browse/SUREFIRE-1095}
+ * @see <a href="https://issues.apache.org/jira/browse/SUREFIRE-1095}"/>
* @since 2.18
*/
public final class Surefire1095NpeInRunListener
@@ -50,7 +51,7 @@ public final class Surefire1095NpeInRunListener
/**
* Method Request.classes( String, Class[] ); exists in JUnit 4.0 - 4.4
- * @see JUnit4Reflector
+ * See JUnit4Reflector.
*/
@Test
public void testRunStartedWithJUnit40()
@@ -64,7 +65,7 @@ public final class Surefire1095NpeInRunListener
/**
* Method Request.classes( Class[] ); Since of JUnit 4.5
- * @see JUnit4Reflector
+ * See JUnit4Reflector.
*/
@Test
public void testRunStartedWithJUnit45()
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/48198b1b/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1098BalancedRunOrderIT.java
----------------------------------------------------------------------
diff --git a/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1098BalancedRunOrderIT.java b/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1098BalancedRunOrderIT.java
index fc559ec..e81f066 100644
--- a/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1098BalancedRunOrderIT.java
+++ b/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1098BalancedRunOrderIT.java
@@ -35,17 +35,17 @@ import static org.hamcrest.core.Is.is;
import static org.hamcrest.core.AnyOf.anyOf;
/**
- * The purpose of this IT is to assert that the run order of test classes is according to the settings:<p/>
+ * The purpose of this IT is to assert that the run order of test classes is according to the settings:<br>
*
- * runOrder=balanced<p/>
- * parallel=classes<p/>
- * threadCount=2<p/>
- * perCoreThreadCount=false<p/>
- * <p/>
+ * runOrder=balanced<br>
+ * parallel=classes<br>
+ * threadCount=2<br>
+ * perCoreThreadCount=false<br>
+ * <br>
* The list of tests should be reordered to (DTest, CTest, BTest, ATest) in the second run.
*
* @author <a href="mailto:tibordigana@apache.org">Tibor Digana (tibor17)</a>
- * @see {@linkplain https://jira.codehaus.org/browse/SUREFIRE-1098}
+ * @see <a href="https://issues.apache.org/jira/browse/SUREFIRE-1098">SUREFIRE-1098</a>
* @since 2.18
*/
public class Surefire1098BalancedRunOrderIT
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/48198b1b/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1122ParallelAndFlakyTestsIT.java
----------------------------------------------------------------------
diff --git a/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1122ParallelAndFlakyTestsIT.java b/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1122ParallelAndFlakyTestsIT.java
index 03e7639..2f9dca8 100644
--- a/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1122ParallelAndFlakyTestsIT.java
+++ b/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1122ParallelAndFlakyTestsIT.java
@@ -24,7 +24,7 @@ import org.junit.Test;
/**
* @author agudian
- * @see {@linkplain https://jira.codehaus.org/browse/SUREFIRE-1122}
+ * @see <a href="https://issues.apache.org/jira/browse/SUREFIRE-1122">SUREFIRE-1122</a>
*/
public class Surefire1122ParallelAndFlakyTestsIT
extends SurefireJUnit4IntegrationTestCase
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/48198b1b/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1146RerunFailedAndParameterized.java
----------------------------------------------------------------------
diff --git a/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1146RerunFailedAndParameterized.java b/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1146RerunFailedAndParameterized.java
index 84735a9..f78c16a 100644
--- a/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1146RerunFailedAndParameterized.java
+++ b/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1146RerunFailedAndParameterized.java
@@ -24,7 +24,7 @@ import org.apache.maven.surefire.its.fixture.SurefireJUnit4IntegrationTestCase;
import org.junit.Test;
/**
- * @see {@linkplain https://jira.codehaus.org/browse/SUREFIRE-1146}
+ * @see <a href="https://issues.apache.org/jira/browse/SUREFIRE-1146">SUREFIRE-1146</a>
*/
public class Surefire1146RerunFailedAndParameterized
extends SurefireJUnit4IntegrationTestCase
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/48198b1b/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1158RemoveInfoLinesIT.java
----------------------------------------------------------------------
diff --git a/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1158RemoveInfoLinesIT.java b/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1158RemoveInfoLinesIT.java
index 17064c0..706f6b5 100644
--- a/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1158RemoveInfoLinesIT.java
+++ b/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1158RemoveInfoLinesIT.java
@@ -33,7 +33,7 @@ import static org.junit.Assert.*;
/**
*
* @author <a href="mailto:tibordigana@apache.org">Tibor Digana (tibor17)</a>
- * @see {@linkplain https://jira.codehaus.org/browse/SUREFIRE-1158}
+ * @see <a href="https://issues.apache.org/jira/browse/SUREFIRE-1158">SUREFIRE-1158</a>
* @since 2.19
*/
@RunWith( Parameterized.class )
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/48198b1b/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1202RerunAndSkipIT.java
----------------------------------------------------------------------
diff --git a/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1202RerunAndSkipIT.java b/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1202RerunAndSkipIT.java
index 7d60138..f886446 100644
--- a/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1202RerunAndSkipIT.java
+++ b/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1202RerunAndSkipIT.java
@@ -28,7 +28,7 @@ import org.junit.Test;
* Allow rerunFailingTestsCount, skipAfterFailureCount together
*
* @author <a href="mailto:tibordigana@apache.org">Tibor Digana (tibor17)</a>
- * @see {@linkplain https://jira.codehaus.org/browse/SUREFIRE-1202}
+ * @see <a href="https://issues.apache.org/jira/browse/SUREFIRE-1202">SUREFIRE-1202</a>
* @since 2.19.1
*/
public class Surefire1202RerunAndSkipIT
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/48198b1b/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1209RerunAndForkCountIT.java
----------------------------------------------------------------------
diff --git a/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1209RerunAndForkCountIT.java b/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1209RerunAndForkCountIT.java
index a6cb73d..3938782 100644
--- a/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1209RerunAndForkCountIT.java
+++ b/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1209RerunAndForkCountIT.java
@@ -1 +1 @@
-package org.apache.maven.surefire.its.jiras;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
import org.apache.maven.it.VerificationException;
import org.apache.maven.surefire.its.fixture.SurefireJUnit4IntegrationTestCase;
import org
.apache.maven.surefire.its.fixture.SurefireLauncher;
import org.junit.Test;
/**
* @author <a href="mailto:tibordigana@apache.org">Tibor Digana (tibor17)</a>
* @see {@linkplain https://jira.codehaus.org/browse/SUREFIRE-1209}
* @since 2.19
*/
public class Surefire1209RerunAndForkCountIT
extends SurefireJUnit4IntegrationTestCase
{
@Test
public void reusableForksJUnit47()
throws VerificationException
{
unpack().executeTest()
.assertTestSuiteResults( 5, 0, 0, 0, 4 );
}
@Test
public void notReusableForksJUnit47()
throws VerificationException
{
unpack().reuseForks( false )
.executeTest()
.assertTestSuiteResults( 5, 0, 0, 0, 4 );
}
@Test
public void reusableForksJUnit4()
throws VerificationException
{
unpack().addGoal( "-Pjunit4" )
.executeTest()
.assertTestSuiteResults( 5, 0, 0, 0, 4 );
}
@Test
public void notReusableForksJUnit4()
throws VerificationException
{
unpack().addGoal( "-Pjunit4" )
.reuseForks( false )
.executeTest()
.assertTestSuiteResults( 5, 0, 0, 0, 4 );
}
private SurefireLauncher unpack()
{
return unpack( "surefire-1209-rerun-and-forkcount" );
}
}
\ No newline at end of file
+package org.apache.maven.surefire.its.jiras;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
import org.apache.maven.it.VerificationException;
import org.apache.maven.surefire.its.fixture.SurefireJUnit4IntegrationTestCase;
import org
.apache.maven.surefire.its.fixture.SurefireLauncher;
import org.junit.Test;
/**
* @author <a href="mailto:tibordigana@apache.org">Tibor Digana (tibor17)</a>
* @see <a href="https://issues.apache.org/jira/browse/SUREFIRE-1209">SUREFIRE-1209</a>
* @since 2.19
*/
public class Surefire1209RerunAndForkCountIT
extends SurefireJUnit4IntegrationTestCase
{
@Test
public void reusableForksJUnit47()
throws VerificationException
{
unpack().executeTest()
.assertTestSuiteResults( 5, 0, 0, 0, 4 );
}
@Test
public void notReusableForksJUnit47()
throws VerificationException
{
unpack().reuseForks( false )
.executeTest()
.assertTestSuiteResults( 5, 0, 0, 0, 4 );
}
@Test
public void reusableForksJUnit4()
throws VerificationException
{
unpack().addGoal( "-Pjunit4" )
.executeTest()
.assertTestSuiteResults( 5, 0
, 0, 0, 4 );
}
@Test
public void notReusableForksJUnit4()
throws VerificationException
{
unpack().addGoal( "-Pjunit4" )
.reuseForks( false )
.executeTest()
.assertTestSuiteResults( 5, 0, 0, 0, 4 );
}
private SurefireLauncher unpack()
{
return unpack( "surefire-1209-rerun-and-forkcount" );
}
}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/48198b1b/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1211JUnitTestNgIT.java
----------------------------------------------------------------------
diff --git a/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1211JUnitTestNgIT.java b/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1211JUnitTestNgIT.java
index da69e9d..697ae5e 100644
--- a/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1211JUnitTestNgIT.java
+++ b/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1211JUnitTestNgIT.java
@@ -1 +1 @@
-package org.apache.maven.surefire.its.jiras;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
import org.apache.maven.surefire.its.fixture.SurefireJUnit4IntegrationTestCase;
import org.apache.maven.surefire.its.fixture.SurefireLaunche
r;
import org.junit.Test;
import static org.apache.commons.lang3.JavaVersion.JAVA_1_7;
import static org.apache.maven.surefire.its.fixture.HelperAssertions.assumeJavaVersion;
/**
* @author <a href="mailto:tibordigana@apache.org">Tibor Digana (tibor17)</a>
* @see {@linkplain https://jira.codehaus.org/browse/SUREFIRE-1211}
* @since 2.19.1
*/
public class Surefire1211JUnitTestNgIT
extends SurefireJUnit4IntegrationTestCase
{
@Test
public void withJUnit()
{
assumeJavaVersion( JAVA_1_7 );
unpack().threadCount( 1 )
.executeTest()
.verifyErrorFree( 2 );
}
@Test
public void withoutJUnit()
{
assumeJavaVersion( JAVA_1_7 );
unpack().threadCount( 1 )
.sysProp( "junit", "false" )
.executeTest()
.verifyErrorFree( 1 );
}
private SurefireLauncher unpack()
{
return unpack( "surefire-1211" );
}
}
\ No newline at end of file
+package org.apache.maven.surefire.its.jiras;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
import org.apache.maven.surefire.its.fixture.SurefireJUnit4IntegrationTestCase;
import org.apache.maven.surefire.its.fixture.SurefireLaunche
r;
import org.junit.Test;
import static org.apache.commons.lang3.JavaVersion.JAVA_1_7;
import static org.apache.maven.surefire.its.fixture.HelperAssertions.assumeJavaVersion;
/**
* @author <a href="mailto:tibordigana@apache.org">Tibor Digana (tibor17)</a>
* @see <a href="https://issues.apache.org/jira/browse/SUREFIRE-1211">SUREFIRE-1211</a>
* @since 2.19.1
*/
public class Surefire1211JUnitTestNgIT
extends SurefireJUnit4IntegrationTestCase
{
@Test
public void withJUnit()
{
assumeJavaVersion( JAVA_1_7 );
unpack().threadCount( 1 )
.executeTest()
.verifyErrorFree( 2 );
}
@Test
public void withoutJUnit()
{
assumeJavaVersion( JAVA_1_7 );
unpack().threadCount( 1 )
.sysProp( "junit", "false" )
.executeTest()
.verifyErrorFree( 1 );
}
private SurefireLauncher unpack()
{
return unpack( "surefire-1211" );
}
}
\ No newline at end of file