maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rfscho...@apache.org
Subject git commit: Clean up System property after every test
Date Sat, 19 Jan 2013 13:04:23 GMT
Updated Branches:
  refs/heads/master 62e0778c6 -> 440a9db1d


Clean up System property after every test


Project: http://git-wip-us.apache.org/repos/asf/maven-scm/repo
Commit: http://git-wip-us.apache.org/repos/asf/maven-scm/commit/440a9db1
Tree: http://git-wip-us.apache.org/repos/asf/maven-scm/tree/440a9db1
Diff: http://git-wip-us.apache.org/repos/asf/maven-scm/diff/440a9db1

Branch: refs/heads/master
Commit: 440a9db1d4ff269aca1c240a14ce10750c28f3f2
Parents: 62e0778
Author: rfscholte <rfscholte@apache.org>
Authored: Sat Jan 19 14:04:02 2013 +0100
Committer: rfscholte <rfscholte@apache.org>
Committed: Sat Jan 19 14:04:02 2013 +0100

----------------------------------------------------------------------
 .../changelog/PerforceChangeLogCommandTest.java    |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/maven-scm/blob/440a9db1/maven-scm-providers/maven-scm-provider-perforce/src/test/java/org/apache/maven/scm/provider/perforce/command/changelog/PerforceChangeLogCommandTest.java
----------------------------------------------------------------------
diff --git 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
index cc4b903..4f658bf 100644
--- 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
@@ -42,7 +42,15 @@ public class PerforceChangeLogCommandTest
     private static final File workingDirectory = getTestFile( "target/perforce-changelog-command-test"
);
 
     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 other
these might fail
+        System.getProperties().remove( PerforceScmProvider.DEFAULT_CLIENTSPEC_PROPERTY );
+    }
+    
     public void testGetCommandLine()
         throws Exception
     {


Mime
View raw message