creadur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rdon...@apache.org
Subject svn commit: r1549177 - /creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/annotation/LicenceAppenderTest.java
Date Sun, 08 Dec 2013 19:59:31 GMT
Author: rdonkin
Date: Sun Dec  8 19:59:30 2013
New Revision: 1549177

URL: http://svn.apache.org/r1549177
Log:
Add test: testGetLineVelocity

Modified:
    creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/annotation/LicenceAppenderTest.java

Modified: creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/annotation/LicenceAppenderTest.java
URL: http://svn.apache.org/viewvc/creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/annotation/LicenceAppenderTest.java?rev=1549177&r1=1549176&r2=1549177&view=diff
==============================================================================
--- creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/annotation/LicenceAppenderTest.java
(original)
+++ creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/annotation/LicenceAppenderTest.java
Sun Dec  8 19:59:30 2013
@@ -968,4 +968,15 @@ public class LicenceAppenderTest {
 		Assert.assertEquals("rem" + System.getProperty("line.separator"),
 				appender.getLine(type, ""));
 	}
+
+	/**
+	 * Test get line velocity.
+	 */
+	@Test
+	public void testGetLineVelocity() {
+		ApacheV2LicenceAppender appender = new ApacheV2LicenceAppender();
+		int type = 13;
+		Assert.assertEquals("##" + System.getProperty("line.separator"),
+				appender.getLine(type, ""));
+	}
 }



Mime
View raw message