commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ohe...@apache.org
Subject svn commit: r1225903 - /commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/plist/TestPropertyListParser.java
Date Fri, 30 Dec 2011 19:49:16 GMT
Author: oheger
Date: Fri Dec 30 19:49:15 2011
New Revision: 1225903

URL: http://svn.apache.org/viewvc?rev=1225903&view=rev
Log:
Converted tests to JUnit 4.

Modified:
    commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/plist/TestPropertyListParser.java

Modified: commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/plist/TestPropertyListParser.java
URL: http://svn.apache.org/viewvc/commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/plist/TestPropertyListParser.java?rev=1225903&r1=1225902&r2=1225903&view=diff
==============================================================================
--- commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/plist/TestPropertyListParser.java
(original)
+++ commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/plist/TestPropertyListParser.java
Fri Dec 30 19:49:15 2011
@@ -17,21 +17,25 @@
 
 package org.apache.commons.configuration.plist;
 
+import static org.junit.Assert.assertEquals;
+
 import java.io.Reader;
 import java.util.Calendar;
 import java.util.SimpleTimeZone;
 
-import junit.framework.TestCase;
 import junitx.framework.ArrayAssert;
 
+import org.junit.Test;
+
 /**
  * @author Emmanuel Bourg
- * @version $Revision$, $Date$
+ * @version $Id$
  */
-public class TestPropertyListParser extends TestCase
+public class TestPropertyListParser
 {
     private PropertyListParser parser = new PropertyListParser((Reader) null);
 
+    @Test
     public void testRemoveQuotes()
     {
         assertEquals("unquoted string", "abc", parser.removeQuotes("abc"));
@@ -41,12 +45,14 @@ public class TestPropertyListParser exte
         assertEquals("null string", null, parser.removeQuotes(null));
     }
 
+    @Test
     public void testUnescapeQuotes()
     {
         assertEquals("non escaped quotes", "aaa\"bbb\"ccc", parser.unescapeQuotes("aaa\"bbb\"ccc"));
         assertEquals("escaped quotes", "aaa\"bbb\"ccc", parser.unescapeQuotes("aaa\\\"bbb\\\"ccc"));
     }
 
+    @Test
     public void testParseDate() throws Exception
     {
         Calendar calendar = Calendar.getInstance();
@@ -62,6 +68,7 @@ public class TestPropertyListParser exte
         assertEquals("parsed date", calendar.getTime(), parser.parseDate("<*D2002-03-22
11:30:00 +0100>"));
     }
 
+    @Test
     public void testFilterData() throws Exception
     {
         byte[] expected = new byte[] {0x20, 0x20};



Mime
View raw message