devicemap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wk...@apache.org
Subject svn commit: r1648756 - /devicemap/trunk/devicemap/java/classifier/src/test/java/org/apache/devicemap/DeviceMapClientUnitTest.java
Date Wed, 31 Dec 2014 17:56:30 GMT
Author: wkeil
Date: Wed Dec 31 17:56:30 2014
New Revision: 1648756

URL: http://svn.apache.org/r1648756
Log:
DMAP-112: Java client test fails with JDK 1.8.0-25
Isolated failing test into separate assert, fails same way under Java 8
Task-Url: https://issues.apache.org/jira/browse/DMAP-112

Modified:
    devicemap/trunk/devicemap/java/classifier/src/test/java/org/apache/devicemap/DeviceMapClientUnitTest.java

Modified: devicemap/trunk/devicemap/java/classifier/src/test/java/org/apache/devicemap/DeviceMapClientUnitTest.java
URL: http://svn.apache.org/viewvc/devicemap/trunk/devicemap/java/classifier/src/test/java/org/apache/devicemap/DeviceMapClientUnitTest.java?rev=1648756&r1=1648755&r2=1648756&view=diff
==============================================================================
--- devicemap/trunk/devicemap/java/classifier/src/test/java/org/apache/devicemap/DeviceMapClientUnitTest.java
(original)
+++ devicemap/trunk/devicemap/java/classifier/src/test/java/org/apache/devicemap/DeviceMapClientUnitTest.java
Wed Dec 31 17:56:30 2014
@@ -83,4 +83,12 @@ public class DeviceMapClientUnitTest {
             Assert.fail("UnsupportedOperationException expected when changing result map,
got: " + ex.toString());
         }
     }
+
+	@Test
+	public void testDeviceMapForMB870() throws Exception {
+		String singleTestString = "Mozilla/5.0 (Linux; U; Android 2.3.7; en-us; MB870 Build/4.5.1A-DTN-150-30;
CyanogenMod-7.2.0) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1";
+	
+		Device device = DeviceMapFactory.getClient().classifyDevice(singleTestString);
+		Assert.assertEquals("classification failed for '" + singleTestString + "'", "MB870", device.getId());
+	}
 }



Mime
View raw message