Recognize LOCATION in VEVENT
[zxing.git] / core / test / src / com / google / zxing / client / result / CalendarParsedResultTestCase.java
index d44c340..11506c4 100644 (file)
@@ -16,9 +16,9 @@
 
 package com.google.zxing.client.result;
 
-import junit.framework.TestCase;
-import com.google.zxing.Result;
 import com.google.zxing.BarcodeFormat;
+import com.google.zxing.Result;
+import junit.framework.TestCase;
 
 /**
  * Tests {@link CalendarParsedResult}.
@@ -29,9 +29,10 @@ public final class CalendarParsedResultTestCase extends TestCase {
 
   public void testVEvent() {
     doTest(
-        "BEGIN:VCALENDAR\r\nBEGIN:VEVENT\r\nSUMMARY:foo\r\nDTSTART:20080504T123456Z\r\nDTEND:20080505T234555Z\r\n" +
+        "BEGIN:VCALENDAR\r\nBEGIN:VEVENT\r\nSUMMARY:foo\r\nDTSTART:20080504T123456Z\r\n" +
+        "DTEND:20080505T234555Z\r\nLOCATION:Miami\r\n" +
         "END:VEVENT\r\nEND:VCALENDAR",
-        null, "foo", null, "20080504T123456Z", "20080505T234555Z", null);
+        null, "foo", "Miami", "20080504T123456Z", "20080505T234555Z", null);
   }
 
   private static void doTest(String contents,