1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
Description: Fixes the Perfoce tests to run with the latest version of JUnit (backported from maven-scm 1.9)
Author: Emmanuel Bourg <ebourg@apache.org>
Forwarded: yes
--- a/maven-scm-providers/maven-scm-provider-perforce/src/test/java/org/apache/maven/scm/provider/perforce/command/changelog/PerforceChangeLogCommandTest.java
+++ b/maven-scm-providers/maven-scm-provider-perforce/src/test/java/org/apache/maven/scm/provider/perforce/command/changelog/PerforceChangeLogCommandTest.java
@@ -43,6 +43,14 @@
private static final String cmdPrefix = "p4 -d " + workingDirectory.getAbsolutePath();
+ @Override
+ protected void tearDown()
+ throws Exception
+ {
+ // Some tests don't expect this property, so when tests are executed in random order these might fail
+ System.clearProperty( PerforceScmProvider.DEFAULT_CLIENTSPEC_PROPERTY );
+ }
+
public void testGetCommandLine()
throws Exception
{
|