devicemap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wk...@apache.org
Subject svn commit: r1666753 - /devicemap/trunk/devicemap/java/simpleddr/src/test/java/org/apache/devicemap/simpleddr/test/DDRTestRunner.java
Date Sat, 14 Mar 2015 21:53:41 GMT
Author: wkeil
Date: Sat Mar 14 21:53:40 2015
New Revision: 1666753

URL: http://svn.apache.org/r1666753
Log:
DMAP-147: Apply W3C DDRSimpleAPITester 
Added more test arguments
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=1666753&r1=1666752&r2=1666753&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
Sat Mar 14 21:53:40 2015
@@ -32,13 +32,14 @@ import test.DDRSimpleAPITester;
 public class DDRTestRunner {
 
 	public static void main(String[] args) throws Exception {
+		final String ASPECT_DEVICE = "device";
 		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 String iri = "http://www.w3.org/2008/01/ddr-core-vocabulary";
 		final Evidence uaEvidence = new UserAgentEvidence(nexusUA);
 		final DDRSimpleAPITester tester = new DDRSimpleAPITester(DeviceMapService.DEVICEMAP_SERVICE,
uaEvidence, 
-				iri, "", "", 
-				0, 
-				"", "", "", "", "", "", "",
+				iri, ASPECT_DEVICE, "webBrowser", 
+				13, 
+				"version", "jpeg", ASPECT_DEVICE, ASPECT_DEVICE, "", "", "",
 				1,
 				"", "",
 				false,



Mime
View raw message