devicemap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wk...@apache.org
Subject svn commit: r1657917 - /devicemap/trunk/devicemap/java/simpleddr/src/test/java/org/apache/devicemap/simpleddr/test/DDRTestRunner.java
Date Fri, 06 Feb 2015 18:46:12 GMT
Author: wkeil
Date: Fri Feb  6 18:46:12 2015
New Revision: 1657917

URL: http://svn.apache.org/r1657917
Log:
DMAP-147: Apply W3C DDRSimpleAPITester 

Task-Url: https://issues.apache.org/jira/browse/DMAP-147

Modified:
    devicemap/trunk/devicemap/java/simpleddr/src/test/java/org/apache/devicemap/simpleddr/test/DDRTestRunner.java

Modified: devicemap/trunk/devicemap/java/simpleddr/src/test/java/org/apache/devicemap/simpleddr/test/DDRTestRunner.java
URL: http://svn.apache.org/viewvc/devicemap/trunk/devicemap/java/simpleddr/src/test/java/org/apache/devicemap/simpleddr/test/DDRTestRunner.java?rev=1657917&r1=1657916&r2=1657917&view=diff
==============================================================================
--- devicemap/trunk/devicemap/java/simpleddr/src/test/java/org/apache/devicemap/simpleddr/test/DDRTestRunner.java
(original)
+++ devicemap/trunk/devicemap/java/simpleddr/src/test/java/org/apache/devicemap/simpleddr/test/DDRTestRunner.java
Fri Feb  6 18:46:12 2015
@@ -1,10 +1,15 @@
 package org.apache.devicemap.simpleddr.test;
 
+import org.w3c.ddr.simple.Evidence;
+
 import test.DDRSimpleAPITester;
 
 public class DDRTestRunner {
 
 	public static void main(String[] args) throws Exception {
-//		final DDRSimpleAPITester tester = new DDRSimpleAPITester(DeviceMapService.DEVICEMAP_SERVICE);
+		final String nexusUA = "Mozilla/5.0 (Linux; U; Android 2.2; en-us; Nexus One Build/FRF91)
AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1";
+        
+		final Evidence uaEvidence = new UserAgentEvidence(nexusUA);
+//		final DDRSimpleAPITester tester = new DDRSimpleAPITester(DeviceMapService.DEVICEMAP_SERVICE,
uaEvidence);
 	}
 }



Mime
View raw message