[
https://issues.apache.org/jira/browse/DMAP-112?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14262342#comment-14262342
]
Werner Keil commented on DMAP-112:
----------------------------------
No real clue. There's a unit test {{testDeviceMapClient}} (had to rename it as
it used the constructor name before which was confusing and violated JUnit
conventions) that fails only in 1.8. It can be replicated in Eclipse or similar
JUnit runners.
However, all test methods have strange, incompliant names (in .NET it may be
seen like those, but never seen any unit tests in Java that way) and that
particular class {{DeviceMapClientTest}} seems more like a helper class to be
executed externally and it contains a further inner assert)
Aside from having odd names, the unit tests (except the one with the test URL)
seem OK as such, but under Java 8 for "MB870" a totally wrong device "DROID" is
returned. Can't tell, please debug in detail based on the separate test case,
at least it should be more easily than in the giant batch.
W3C works fine under Java 8, we shoud have sufficient Jenkins CI instances,
also for Java 9 which is already out as preview...
> Java client test fails with JDK 1.8.0-25
> ----------------------------------------
>
> Key: DMAP-112
> URL: https://issues.apache.org/jira/browse/DMAP-112
> Project: DeviceMap
> Issue Type: Bug
> Components: Java Client
> Affects Versions: 1.1.0 Java
> Environment: JDK 1.8.0-25, OSX (Darwin Kernel Version 13.4.0)
> Reporter: Volkan Yazıcı
> Assignee: Reza Naghibi
> Labels: bug, java8, test
>
> {{mvn clean install test}} fails for the DeviceMap Java Client module:
> {noformat}
> DeviceMapClientTest[979](org.apache.devicemap.DeviceMapClientTest) Time
> elapsed: 0.003 sec <<< FAILURE!
> org.junit.ComparisonFailure: classification failed for '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'
> expected:<[MB870]> but was:<[DROID X2]>
> at org.junit.Assert.assertEquals(Assert.java:115)
> at
> org.apache.devicemap.DeviceMapClientTest.DeviceMapClientTest(DeviceMapClientTest.java:74)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)