maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1442348 - in /maven/plugins/trunk/maven-pmd-plugin/src/test/java/org/apache/maven/plugin/pmd: CpdViolationCheckMojoTest.java PmdViolationCheckMojoTest.java
Date Mon, 04 Feb 2013 20:53:51 GMT
Author: olamy
Date: Mon Feb  4 20:53:51 2013
New Revision: 1442348

URL: http://svn.apache.org/viewvc?rev=1442348&view=rev
Log:
format test code

Modified:
    maven/plugins/trunk/maven-pmd-plugin/src/test/java/org/apache/maven/plugin/pmd/CpdViolationCheckMojoTest.java
    maven/plugins/trunk/maven-pmd-plugin/src/test/java/org/apache/maven/plugin/pmd/PmdViolationCheckMojoTest.java

Modified: maven/plugins/trunk/maven-pmd-plugin/src/test/java/org/apache/maven/plugin/pmd/CpdViolationCheckMojoTest.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-pmd-plugin/src/test/java/org/apache/maven/plugin/pmd/CpdViolationCheckMojoTest.java?rev=1442348&r1=1442347&r2=1442348&view=diff
==============================================================================
--- maven/plugins/trunk/maven-pmd-plugin/src/test/java/org/apache/maven/plugin/pmd/CpdViolationCheckMojoTest.java
(original)
+++ maven/plugins/trunk/maven-pmd-plugin/src/test/java/org/apache/maven/plugin/pmd/CpdViolationCheckMojoTest.java
Mon Feb  4 20:53:51 2013
@@ -80,7 +80,7 @@ public class CpdViolationCheckMojoTest
         try
         {
             final File testPom = new File( getBasedir(),
-                                     "src/test/resources/unit/custom-configuration/pmd-check-exception-test-plugin-config.xml"
);
+                                           "src/test/resources/unit/custom-configuration/pmd-check-exception-test-plugin-config.xml"
);
             final CpdViolationCheckMojo mojo = (CpdViolationCheckMojo) lookupMojo( "cpd-check",
testPom );
             mojo.execute();
 
@@ -91,18 +91,20 @@ public class CpdViolationCheckMojoTest
             assertTrue( true );
         }
     }
-    
-    public void testExclusionsConfiguration() throws Exception {
-        File testPom = new File(getBasedir(),
-                "src/test/resources/unit/default-configuration/cpd-default-configuration-plugin-config.xml");
-        final CpdReport mojo = (CpdReport) lookupMojo("cpd", testPom);
+
+    public void testExclusionsConfiguration()
+        throws Exception
+    {
+        File testPom = new File( getBasedir(),
+                                 "src/test/resources/unit/default-configuration/cpd-default-configuration-plugin-config.xml"
);
+        final CpdReport mojo = (CpdReport) lookupMojo( "cpd", testPom );
         mojo.execute();
 
-        testPom = new File(getBasedir(),
-                "src/test/resources/unit/default-configuration/pmd-check-cpd-exclusions-configuration-plugin-config.xml");
-        final CpdViolationCheckMojo cpdViolationMojo = (CpdViolationCheckMojo) lookupMojo("cpd-check",
testPom);
+        testPom = new File( getBasedir(),
+                            "src/test/resources/unit/default-configuration/pmd-check-cpd-exclusions-configuration-plugin-config.xml"
);
+        final CpdViolationCheckMojo cpdViolationMojo = (CpdViolationCheckMojo) lookupMojo(
"cpd-check", testPom );
         cpdViolationMojo.execute();
-        
+
         assertTrue( true );
     }       
 }

Modified: maven/plugins/trunk/maven-pmd-plugin/src/test/java/org/apache/maven/plugin/pmd/PmdViolationCheckMojoTest.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-pmd-plugin/src/test/java/org/apache/maven/plugin/pmd/PmdViolationCheckMojoTest.java?rev=1442348&r1=1442347&r2=1442348&view=diff
==============================================================================
--- maven/plugins/trunk/maven-pmd-plugin/src/test/java/org/apache/maven/plugin/pmd/PmdViolationCheckMojoTest.java
(original)
+++ maven/plugins/trunk/maven-pmd-plugin/src/test/java/org/apache/maven/plugin/pmd/PmdViolationCheckMojoTest.java
Mon Feb  4 20:53:51 2013
@@ -109,7 +109,7 @@ public class PmdViolationCheckMojoTest
         try
         {
             final File testPom = new File( getBasedir(),
-                                     "src/test/resources/unit/custom-configuration/pmd-check-exception-test-plugin-config.xml"
);
+                                           "src/test/resources/unit/custom-configuration/pmd-check-exception-test-plugin-config.xml"
);
             final PmdViolationCheckMojo mojo = (PmdViolationCheckMojo) lookupMojo( "check",
testPom );
             mojo.execute();
 
@@ -121,20 +121,20 @@ public class PmdViolationCheckMojoTest
         }
 
     }
-    
+
     public void testViolationExclusion()
-            throws Exception
-        {
-            File testPom = new File( getBasedir(),
-                                     "src/test/resources/unit/default-configuration/default-configuration-plugin-config.xml"
);
-            final PmdReport mojo = (PmdReport) lookupMojo( "pmd", testPom );
-            mojo.execute();
+        throws Exception
+    {
+        File testPom = new File( getBasedir(),
+                                 "src/test/resources/unit/default-configuration/default-configuration-plugin-config.xml"
);
+        final PmdReport mojo = (PmdReport) lookupMojo( "pmd", testPom );
+        mojo.execute();
 
-            testPom = new File( getBasedir(),
-                                "src/test/resources/unit/default-configuration/pmd-check-pmd-exclusions-configuration-plugin-config.xml"
);
-            final PmdViolationCheckMojo pmdViolationMojo = (PmdViolationCheckMojo) lookupMojo(
"check", testPom );
-            pmdViolationMojo.execute();
+        testPom = new File( getBasedir(),
+                            "src/test/resources/unit/default-configuration/pmd-check-pmd-exclusions-configuration-plugin-config.xml"
);
+        final PmdViolationCheckMojo pmdViolationMojo = (PmdViolationCheckMojo) lookupMojo(
"check", testPom );
+        pmdViolationMojo.execute();
 
-            assertTrue( true );
-        }
+        assertTrue( true );
+    }
 }



Mime
View raw message