Skip to content

Build fails on running mvn install due to test cases failure #35

@avitripathy01

Description

@avitripathy01

The build works when the tests are skipped. Please find the trace from the build logs.

`[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO] Running com.adobe.ags.curly.test.ConnectionManagerTest
[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.405 s <<< FAILURE! - in com.adobe.ags.curly.test.ConnectionManagerTest
[ERROR] getAuthenticatedConnection(com.adobe.ags.curly.test.ConnectionManagerTest) Time elapsed: 0.33 s <<< FAILURE!
java.lang.AssertionError
at com.adobe.ags.curly.test.ConnectionManagerTest.getAuthenticatedConnection(ConnectionManagerTest.java:79)
[INFO] Running com.adobe.ags.curly.test.ErrorBehaviorTest
[ERROR] Tests run: 6, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 0.491 s <<< FAILURE! - in com.adobe.ags.curly.test.ErrorBehaviorTest
[ERROR] testHappyPath(com.adobe.ags.curly.test.ErrorBehaviorTest) Time elapsed: 0.007 s <<< FAILURE!
java.lang.AssertionError: Expected successful=true
at com.adobe.ags.curly.test.ErrorBehaviorTest.assertResults(ErrorBehaviorTest.java:188)
at com.adobe.ags.curly.test.ErrorBehaviorTest.testHappyPath(ErrorBehaviorTest.java:101)
[ERROR] testActionRequireFailure2(com.adobe.ags.curly.test.ErrorBehaviorTest) Time elapsed: 0.006 s <<< FAILURE!
java.lang.AssertionError: Expected completed=false
at com.adobe.ags.curly.test.ErrorBehaviorTest.assertResults(ErrorBehaviorTest.java:196)
at com.adobe.ags.curly.test.ErrorBehaviorTest.testActionRequireFailure2(ErrorBehaviorTest.java:149)
[INFO] Running com.adobe.ags.curly.test.JsonTest
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.037 s - in com.adobe.ags.curly.test.JsonTest
[INFO] Running com.adobe.ags.curly.test.ActionRunnerTest
Parse Result -->

-Fjcr:primaryType=sling:OrderedFolder
-Fjcr:title=${1} ${0}
${2}/content/dam/test/${1}
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 s - in com.adobe.ags.curly.test.ActionRunnerTest
[INFO]
[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR] ConnectionManagerTest.getAuthenticatedConnection:79
[ERROR] ErrorBehaviorTest.testActionRequireFailure2:149->assertResults:196 Expected completed=false
[ERROR] ErrorBehaviorTest.testHappyPath:101->assertResults:188 Expected successful=true
[INFO]
[ERROR] Tests run: 9, Failures: 3, Errors: 0, Skipped: 0
[INFO]
`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions