creadur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rdon...@apache.org
Subject svn commit: r1549235 - /creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/header/FilteringSequenceFactoryTest.java
Date Sun, 08 Dec 2013 20:58:33 GMT
Author: rdonkin
Date: Sun Dec  8 20:58:33 2013
New Revision: 1549235

URL: http://svn.apache.org/r1549235
Log:
Add test:testFilteringContructorOneParameter

Modified:
    creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/header/FilteringSequenceFactoryTest.java

Modified: creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/header/FilteringSequenceFactoryTest.java
URL: http://svn.apache.org/viewvc/creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/header/FilteringSequenceFactoryTest.java?rev=1549235&r1=1549234&r2=1549235&view=diff
==============================================================================
--- creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/header/FilteringSequenceFactoryTest.java
(original)
+++ creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/header/FilteringSequenceFactoryTest.java
Sun Dec  8 20:58:33 2013
@@ -100,4 +100,14 @@ public class FilteringSequenceFactoryTes
 		assertEquals("No filtering so input equals output.",
 				input.substring(0, capacity), output);
 	}
+
+	@Test
+	public void testFilteringContructorOneParameter() throws IOException {
+		String input = "Whatever";
+		factory = new FilteringSequenceFactory(new SimpleCharFilter());
+		StringReader reader = new StringReader(input);
+		CharSequence result = factory.filter(reader);
+		String output = result.toString();
+		assertEquals("No filtering so input equals output.", input, output);
+	}
 }



Mime
View raw message