[LOGBack-dev] svn commit: r286 - logback/core/trunk/src/test/java/ch/qos/logback/core/pattern/parser

noreply.seb at qos.ch noreply.seb at qos.ch
Tue Jul 25 14:51:06 CEST 2006


Author: seb
Date: Tue Jul 25 14:51:05 2006
New Revision: 286

Modified:
   logback/core/trunk/src/test/java/ch/qos/logback/core/pattern/parser/OptionTokenizerTest.java
Log:
Type Safety

Modified: logback/core/trunk/src/test/java/ch/qos/logback/core/pattern/parser/OptionTokenizerTest.java
==============================================================================
--- logback/core/trunk/src/test/java/ch/qos/logback/core/pattern/parser/OptionTokenizerTest.java	(original)
+++ logback/core/trunk/src/test/java/ch/qos/logback/core/pattern/parser/OptionTokenizerTest.java	Tue Jul 25 14:51:05 2006
@@ -37,7 +37,7 @@
 	public void testSimple() throws ScanException {
 		{
 			List ol = new OptionTokenizer("abc").tokenize();
-			List witness = new ArrayList();
+			List<String> witness = new ArrayList<String>();
 			witness.add("abc");
 			assertEquals(witness, ol);
 		}
@@ -46,28 +46,28 @@
 	public void testSingleQuote() throws ScanException {
 		{
 			List ol = new OptionTokenizer("' '").tokenize();
-			List witness = new ArrayList();
+			List<String> witness = new ArrayList<String>();
 			witness.add(" ");
 			assertEquals(witness, ol);
 		}
 		
 		{
 			List ol = new OptionTokenizer("' x\t'").tokenize();
-			List witness = new ArrayList();
+			List<String> witness = new ArrayList<String>();
 			witness.add(" x\t");
 			assertEquals(witness, ol);
 		}
 		
 		{
 			List ol = new OptionTokenizer("' x\\t'").tokenize();
-			List witness = new ArrayList();
+			List<String> witness = new ArrayList<String>();
 			witness.add(" x\t");
 			assertEquals(witness, ol);
 		}
 		
 		{
 			List ol = new OptionTokenizer("' x\\''").tokenize();
-			List witness = new ArrayList();
+			List<String> witness = new ArrayList<String>();
 			witness.add(" x\'");
 			assertEquals(witness, ol);
 		}
@@ -76,28 +76,28 @@
 	public void testDoubleQuote() throws ScanException {
 		{
 			List ol = new OptionTokenizer("\" \"").tokenize();
-			List witness = new ArrayList();
+			List<String> witness = new ArrayList<String>();
 			witness.add(" ");
 			assertEquals(witness, ol);
 		}
 		
 		{
 			List ol = new OptionTokenizer("\" x\t\"").tokenize();
-			List witness = new ArrayList();
+			List<String> witness = new ArrayList<String>();
 			witness.add(" x\t");
 			assertEquals(witness, ol);
 		}
 		
 		{
 			List ol = new OptionTokenizer("\" x\\t\"").tokenize();
-			List witness = new ArrayList();
+			List<String> witness = new ArrayList<String>();
 			witness.add(" x\t");
 			assertEquals(witness, ol);
 		}
 		
 		{
 			List ol = new OptionTokenizer("\" x\\\"\"").tokenize();
-			List witness = new ArrayList();
+			List<String> witness = new ArrayList<String>();
 			witness.add(" x\"");
 			assertEquals(witness, ol);
 		}
@@ -106,7 +106,7 @@
 	public void testMultiple() throws ScanException {
 		{
 			List ol = new OptionTokenizer("a, b").tokenize();
-			List witness = new ArrayList();
+			List<String> witness = new ArrayList<String>();
 			witness.add("a");
 			witness.add("b");
 			assertEquals(witness, ol);



More information about the logback-dev mailing list