[ 
https://issues.apache.org/jira/browse/DMAP-122?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14263510#comment-14263510
 ] 

Werner Keil commented on DMAP-122:
----------------------------------

Everything is in sync and running mvn clean install on "classifier" this is the 
result:

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further 
details.
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Apache DeviceMap Java Client 1.1.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ devicemap-client ---
[WARNING] The POM for org.codehaus.plexus:plexus-utils:jar:3.0 is invalid, 
transitive dependencies (if any) will not be available, enable debug logging 
for more details
[INFO] Deleting 
C:\Users\Werner\workspace\jds7\mobile\devicemap\trunk\devicemap\java\classifier\target
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.5:process (default) @ 
devicemap-client ---
[WARNING] The POM for org.codehaus.plexus:plexus-utils:jar:2.1 is invalid, 
transitive dependencies (if any) will not be available, enable debug logging 
for more details
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ 
devicemap-client ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory 
C:\Users\Werner\workspace\jds7\mobile\devicemap\trunk\devicemap\java\classifier\src\main\resources
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ 
devicemap-client ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 20 source files to 
C:\Users\Werner\workspace\jds7\mobile\devicemap\trunk\devicemap\java\classifier\target\classes
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ 
devicemap-client ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ 
devicemap-client ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 6 source files to 
C:\Users\Werner\workspace\jds7\mobile\devicemap\trunk\devicemap\java\classifier\target\test-classes
[INFO] 
[INFO] --- maven-surefire-plugin:2.17:test (default-test) @ devicemap-client ---
[INFO] Surefire report directory: 
C:\Users\Werner\workspace\jds7\mobile\devicemap\trunk\devicemap\java\classifier\target\surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.apache.devicemap.DeviceMapClientJarTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.246 sec - in 
org.apache.devicemap.DeviceMapClientJarTest
Running org.apache.devicemap.DeviceMapClientTest
Tests run: 1176, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.195 sec 
<<< FAILURE! - in org.apache.devicemap.DeviceMapClientTest
testDeviceMapClient[1175](org.apache.devicemap.DeviceMapClientTest)  Time 
elapsed: 0.01 sec  <<< FAILURE!
org.junit.ComparisonFailure: classification failed for 'Mozilla/5.0 (Linux; 
Android 4.3; SGP312 Build/10.4.B.0.577) AppleWebKit/537.36 (KHTML, like Gecko) 
Chrome/38.0.2125.102 Safari/537.36' expected:<[SGP312]> but 
was:<[genericAndroid]>
        at org.junit.Assert.assertEquals(Assert.java:115)
        at 
org.apache.devicemap.DeviceMapClientTest.testDeviceMapClient(DeviceMapClientTest.java:74)

Running org.apache.devicemap.DeviceMapClientUnitTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec - in 
org.apache.devicemap.DeviceMapClientUnitTest
Running org.apache.devicemap.loader.parser.XMLParserTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in 
org.apache.devicemap.loader.parser.XMLParserTest

Results :

Failed tests: 
  DeviceMapClientTest.testDeviceMapClient:74 classification failed for 
'Mozilla/5.0 (Linux; Android 4.3; SGP312 Build/10.4.B.0.577) AppleWebKit/537.36 
(KHTML, like Gecko) Chrome/38.0.2125.102 Safari/537.36' expected:<[SGP312]> but 
was:<[genericAndroid]>

Tests run: 1184, Failures: 1, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.381s
[INFO] Finished at: Sat Jan 03 12:48:15 CET 2015
[INFO] Final Memory: 12M/183M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-surefire-plugin:2.17:test (default-test) on 
project devicemap-client: There are test failures.
[ERROR] 
[ERROR] Please refer to 
C:\Users\Werner\workspace\jds7\mobile\devicemap\trunk\devicemap\java\classifier\target\surefire-reports
 for the individual test results.
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please 
read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

Please get the Jenkins CI running, that's the key indicator if it works there. 

Not only because there are also .NET components involved, some may run this on 
Linux, others on Windows, but Maven in most cases is fairly sustainable in its 
results. It already fails with the latest Java 7 version, there's no point 
building it with a no longer supported Java version that Oracle expired support 
now (Maven "1.6") is OK, but it should be compiled against J7 and 8 now, not 
just 6.

Won't reopen till CI is up and running, but the Maven build for classifier 1.1 
does not seem to work with the latest trunk.


> Client tests still failing with "genericAndroid"
> ------------------------------------------------
>
>                 Key: DMAP-122
>                 URL: https://issues.apache.org/jira/browse/DMAP-122
>             Project: DeviceMap
>          Issue Type: Bug
>          Components: Java Client
>    Affects Versions: 1.0.2 Data, 1.1.1 Java
>            Reporter: Werner Keil
>            Assignee: Reza Naghibi
>              Labels: test-fail
>
> Something is still (or again) wrong with the Classifier. 
> While web deployment of examples based on the snapshots look like they get 
> the right device ("result":{"id":"SGP312"..) at least one of the unit tests 
> (the one for the "alias" entry) fails after test data changes 
> Tests run: 1176, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.444 sec 
> <<< FAILURE! - in org.apache.devicemap.DeviceMapClientTest
> testDeviceMapClient[1175](org.apache.devicemap.DeviceMapClientTest)  Time 
> elapsed: 0 sec  <<< FAILURE!
> org.junit.ComparisonFailure: classification failed for 'Mozilla/5.0 (Linux; 
> Android 4.3; SGP312 Build/10.4.B.0.577) AppleWebKit/537.36 (KHTML, like 
> Gecko) Chrome/38.0.2125.102 Safari/537.36' expected:<[SGP312]> but 
> was:<[genericAndroid]>
>       at org.junit.Assert.assertEquals(Assert.java:115)
>       at 
> org.apache.devicemap.DeviceMapClientTest.testDeviceMapClient(DeviceMapClientTest.java:74)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to