creadur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rdon...@apache.org
Subject svn commit: r1549422 - /creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/document/impl/guesser/GuessUtilsTest.java
Date Mon, 09 Dec 2013 05:47:15 GMT
Author: rdonkin
Date: Mon Dec  9 05:47:14 2013
New Revision: 1549422

URL: http://svn.apache.org/r1549422
Log:
Change Test Method.

Modified:
    creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/document/impl/guesser/GuessUtilsTest.java

Modified: creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/document/impl/guesser/GuessUtilsTest.java
URL: http://svn.apache.org/viewvc/creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/document/impl/guesser/GuessUtilsTest.java?rev=1549422&r1=1549421&r2=1549422&view=diff
==============================================================================
--- creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/document/impl/guesser/GuessUtilsTest.java
(original)
+++ creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/document/impl/guesser/GuessUtilsTest.java
Mon Dec  9 05:47:14 2013
@@ -19,7 +19,6 @@
 package org.apache.rat.document.impl.guesser;
 
 import static org.junit.Assert.assertEquals;
-import junit.framework.Assert;
 
 import org.junit.Test;
 
@@ -28,29 +27,13 @@ import org.junit.Test;
  */
 public class GuessUtilsTest {
 
+
 	/**
-	 * Normalise.
-	 * 
-	 * @throws Exception
-	 *             the exception
-	 */
-    @Test
-    public void normalise() throws Exception {
-		assertEquals("LICENSE", new GuessUtils().normalise("license"));
-		assertEquals("LICENSE.TXT", new GuessUtils().normalise("license.txt"));
-		assertEquals("LICENSE.TXT",
-				new GuessUtils().normalise("some/path/license.txt"));
-		assertEquals("LICENSE.TXT", new GuessUtils().normalise("/license.txt"));
-		assertEquals("LICENSE.TXT",
-				new GuessUtils().normalise("some\\path\\license.txt"));
-		assertEquals("", new GuessUtils().normalise("/"));
-    }
-    
-	/**
-	 * Test guess utils constructor.
+	 * Test gess utils normalise.
 	 */
     @Test
-	public void testGuessUtilsConstructor() {
-		Assert.assertNotNull(new GuessUtils());
+	public void testGessUtilsNormalise() {
+		 assertEquals("The both values must be equal", "",
+				new GuessUtils().normalise("/"));
     }
 }



Mime
View raw message