Closed konmik closed 9 years ago
Is this still a problem? Unfortunately, the information you provided doesn't tell me what's going on with enough detail for me to be helpful. Please reopen with a smaller unit test if possible.
I am seeing this also. The unit tests look for strings of the pattern "\nXXX\n" but since Windows uses \r\n as a line separator, strings like "YYY\r\nXXX\r\nZZZ" do not contain the expected character sequence and the unit tests fail.
https://github.com/j256/ormlite-android/pull/43 fixes this issue.
Looks like we have different \n at windows.
[INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for com.j256.ormlite:ormlite-android:jar:4.49-SNAPSHOT [WARNING] The expression ${version} is deprecated. Please use ${project.version} instead. [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING] [INFO]
[INFO] ------------------------------------------------------------------------ [INFO] Building ORMLite Android 4.49-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ ormlite-android --- [INFO] [INFO] --- replacer:1.5.0:replace (validate) @ ormlite-android --- [INFO] Replacement run on 1 file. [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ ormlite-android --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 2 resources [INFO] [INFO] --- maven-compiler-plugin:2.3.1:compile (default-compile) @ ormlite-android --- [INFO] Compiling 1 source file to O:\ormlite-android-master\target\classes [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ ormlite-android --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory O:\ormlite-android-master\src\test\resources [INFO] [INFO] --- maven-compiler-plugin:2.3.1:testCompile (default-testCompile) @ ormlite-android --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ ormlite-android --- [INFO] Surefire report directory: O:\ormlite-android-master\target\surefire-reports
T E S T S
Running com.j256.ormlite.android.apptools.OrmLiteConfigUtilTest Wrote config for class com.j256.ormlite.android.apptools.OrmLiteConfigUtilTest$Foo Done. Wrote config for class com.j256.ormlite.android.apptools.OrmLiteConfigUtilTest$Foo Done. Wrote config for class com.j256.ormlite.android.apptools.OrmLiteConfigUtilTest$ForeignCollectionTest Done. Wrote config for class com.j256.ormlite.android.apptools.OrmLiteConfigUtilTest$ForeignCollectionTest Wrote config for class com.j256.ormlite.android.apptools.OrmLiteConfigUtilTest$Foreign Wrote config for class com.j256.ormlite.android.apptools.OrmLiteConfigUtilTest$Foo Done. Tests run: 4, Failures: 4, Errors: 0, Skipped: 0, Time elapsed: 0.211 sec <<< FAILURE! testForeign(com.j256.ormlite.android.apptools.OrmLiteConfigUtilTest) Time elapsed: 0.111 sec <<< FAILURE! java.lang.AssertionError: #
generated on 2014/09/22 11:30:57
--table-start--
dataClass=com.j256.ormlite.android.apptools.OrmLiteConfigUtilTest$Foo tableName=foo
--table-fields-start--
--field-start--
fieldName=id id=true
--field-end--
--field-start--
fieldName=foreign foreign=true
--field-end--
--table-fields-end--
--table-end--
testBasic(com.j256.ormlite.android.apptools.OrmLiteConfigUtilTest) Time elapsed: 0.001 sec <<< FAILURE! java.lang.AssertionError: #
generated on 2014/09/22 11:30:57
--table-start--
dataClass=com.j256.ormlite.android.apptools.OrmLiteConfigUtilTest$Foo tableName=foo
--table-fields-start--
--field-start--
fieldName=id id=true
--field-end--
--field-start--
fieldName=foreign foreign=true
--field-end--
--table-fields-end--
--table-end--
testForeignCollection(com.j256.ormlite.android.apptools.OrmLiteConfigUtilTest) Time elapsed: 0.001 sec <<< FAILURE! java.lang.AssertionError: #
generated on 2014/09/22 11:30:57
--table-start--
dataClass=com.j256.ormlite.android.apptools.OrmLiteConfigUtilTest$ForeignCollectionTest tableName=foreigncollectiontest
--table-fields-start--
--field-start--
fieldName=collection foreignCollection=true
--field-end--
--table-fields-end--
--table-end--
testCurrentDir(com.j256.ormlite.android.apptools.OrmLiteConfigUtilTest) Time elapsed: 0.026 sec <<< FAILURE! java.lang.AssertionError: #
generated on 2014/09/22 11:30:57
--table-start--
dataClass=com.j256.ormlite.android.apptools.OrmLiteConfigUtilTest$ForeignCollectionTest tableName=foreigncollectiontest
--table-fields-start--
--field-start--
fieldName=collection foreignCollection=true
--field-end--
--table-fields-end--
--table-end--
--table-start--
dataClass=com.j256.ormlite.android.apptools.OrmLiteConfigUtilTest$Foreign tableName=foreign
--table-fields-start--
--field-start--
fieldName=id id=true
--field-end--
--table-fields-end--
--table-end--
--table-start--
dataClass=com.j256.ormlite.android.apptools.OrmLiteConfigUtilTest$Foo tableName=foo
--table-fields-start--
--field-start--
fieldName=id id=true
--field-end--
--field-start--
fieldName=foreign foreign=true
--field-end--
--table-fields-end--
--table-end--
Results :
Failed tests: testForeign(com.j256.ormlite.android.apptools.OrmLiteConfigUtilTest): # (..) testBasic(com.j256.ormlite.android.apptools.OrmLiteConfigUtilTest): # (..) testForeignCollection(com.j256.ormlite.android.apptools.OrmLiteConfigUtilTest): # (..) testCurrentDir(com.j256.ormlite.android.apptools.OrmLiteConfigUtilTest): # (..)
Tests run: 4, Failures: 4, Errors: 0, Skipped: 0
[INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 9.474 s [INFO] Finished at: 2014-09-22T23:30:58+04:00 [INFO] Final Memory: 16M/98M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project ormlite-android: There are test failures. [ERROR] [ERROR] Please refer to O:\ormlite-android-master\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