creadur-commits mailing list archives

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

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

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

Modified: creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/document/impl/guesser/ArchiveGuesserTest.java
URL: http://svn.apache.org/viewvc/creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/document/impl/guesser/ArchiveGuesserTest.java?rev=1549416&r1=1549415&r2=1549416&view=diff
==============================================================================
--- creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/document/impl/guesser/ArchiveGuesserTest.java
(original)
+++ creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/document/impl/guesser/ArchiveGuesserTest.java
Mon Dec  9 05:45:21 2013
@@ -29,15 +29,10 @@ import org.junit.Test;
 public class ArchiveGuesserTest {
 
 	/**
-	 * Matches.
+	 * Test archive guesser matches.
 	 */
     @Test
-    public void matches() {
-        assertTrue(new ArchiveGuesser().isArchive(new MockDocument("42.jar").getName()));
-        assertTrue(new ArchiveGuesser().isArchive(new MockDocument("42.tar.gz").getName()));
-        assertTrue(new ArchiveGuesser().isArchive(new MockDocument("42.zip").getName()));
-        assertTrue(new ArchiveGuesser().isArchive(new MockDocument("42.tar").getName()));
-        assertTrue(new ArchiveGuesser().isArchive(new MockDocument("42.bz").getName()));
-        assertTrue(new ArchiveGuesser().isArchive(new MockDocument("42.bz2").getName()));
+	public void testArchiveGuesserMatches() {
+		assertTrue(new ArchiveGuesser().matches(new MockDocument("42.jar")));
     }
 }



Mime
View raw message