jvanzyl 2002/11/26 15:36:15
Modified: src/test/java/org/apache/maven/util MD5SumTest.java
Log:
adding tests
Revision Changes Path
1.3 +16 -16
jakarta-turbine-maven/src/test/java/org/apache/maven/util/MD5SumTest.java
Index: MD5SumTest.java
===================================================================
RCS file:
/home/cvs/jakarta-turbine-maven/src/test/java/org/apache/maven/util/MD5SumTest.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- MD5SumTest.java 2 Oct 2002 14:45:56 -0000 1.2
+++ MD5SumTest.java 26 Nov 2002 23:36:15 -0000 1.3
@@ -54,47 +54,47 @@
* <http://www.apache.org/>.
*/
-import java.io.File;
-
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
-/**
+import java.io.File;
+
+/**
* @author <a href="mailto:[EMAIL PROTECTED]">Jason van Zyl</a>
* @version $Id$
*/
-public class MD5SumTest
- extends TestCase
+public class MD5SumTest
+ extends TestCase
{
/**
* Create the test with the given name
- *
+ *
* @param testName the name of the test
*/
- public MD5SumTest(String testName)
+ public MD5SumTest( String testName )
{
- super(testName);
+ super( testName );
}
/**
* @return the suite of tests being tested
*/
- public static Test suite()
+ public static Test suite()
{
- return new TestSuite(MD5SumTest.class);
+ return new TestSuite( MD5SumTest.class );
}
-
- /**
+
+ /**
*/
public void testSum()
throws Exception
{
MD5Sum md5 = new MD5Sum();
- md5.setFile(new File("src/test/checksum/input.jar"));
+ md5.setFile( new File( "src/test/checksum/input.jar" ) );
md5.execute();
String checksum = md5.getChecksum();
-
- assertEquals("627ce116c350da6fee656177b2af86eb", checksum);
+
+ assertEquals( "627ce116c350da6fee656177b2af86eb", checksum );
}
}
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>