Author: olamy
Date: Tue Mar 13 12:37:46 2012
New Revision: 1300100
URL: http://svn.apache.org/viewvc?rev=1300100&view=rev
Log:
code format
Modified:
maven/plugins/trunk/maven-shade-plugin/src/test/java/org/apache/maven/plugins/shade/relocation/SimpleRelocatorParameterTest.java
Modified:
maven/plugins/trunk/maven-shade-plugin/src/test/java/org/apache/maven/plugins/shade/relocation/SimpleRelocatorParameterTest.java
URL:
http://svn.apache.org/viewvc/maven/plugins/trunk/maven-shade-plugin/src/test/java/org/apache/maven/plugins/shade/relocation/SimpleRelocatorParameterTest.java?rev=1300100&r1=1300099&r2=1300100&view=diff
==============================================================================
---
maven/plugins/trunk/maven-shade-plugin/src/test/java/org/apache/maven/plugins/shade/relocation/SimpleRelocatorParameterTest.java
(original)
+++
maven/plugins/trunk/maven-shade-plugin/src/test/java/org/apache/maven/plugins/shade/relocation/SimpleRelocatorParameterTest.java
Tue Mar 13 12:37:46 2012
@@ -19,31 +19,40 @@ package org.apache.maven.plugins.shade.r
* under the License.
*/
-import java.util.Collections;
-
import junit.framework.TestCase;
-public class SimpleRelocatorParameterTest extends TestCase {
+import java.util.Collections;
-
- protected void setUp() throws Exception {
- super.setUp();
- }
-
- public void
testThatNullPatternInConstructorShouldNotThrowNullPointerException() {
- constructThenFailOnNullPointerException(null, "");
- }
-
- public void
testThatNullShadedPatternInConstructorShouldNotThrowNullPointerException() {
- constructThenFailOnNullPointerException("", null);
- }
-
- private void constructThenFailOnNullPointerException(
- String pattern, String shadedPattern) {
- try {
- new SimpleRelocator(pattern, shadedPattern,
Collections.EMPTY_LIST, Collections.EMPTY_LIST);
- } catch (NullPointerException e) {
- fail("Constructor should not throw null pointer
exceptions");
- }
- }
+public class SimpleRelocatorParameterTest
+ extends TestCase
+{
+
+
+ protected void setUp()
+ throws Exception
+ {
+ super.setUp();
+ }
+
+ public void
testThatNullPatternInConstructorShouldNotThrowNullPointerException()
+ {
+ constructThenFailOnNullPointerException( null, "" );
+ }
+
+ public void
testThatNullShadedPatternInConstructorShouldNotThrowNullPointerException()
+ {
+ constructThenFailOnNullPointerException( "", null );
+ }
+
+ private void constructThenFailOnNullPointerException( String pattern,
String shadedPattern )
+ {
+ try
+ {
+ new SimpleRelocator( pattern, shadedPattern,
Collections.EMPTY_LIST, Collections.EMPTY_LIST );
+ }
+ catch ( NullPointerException e )
+ {
+ fail( "Constructor should not throw null pointer exceptions" );
+ }
+ }
}