Skip to content

3 integration tests in Scala folder are failing with non default HTTP clients. #49

@nstdio

Description

@nstdio

If we are changing httpClient in the TrelloTestFactory to AsyncTrelloHttpClient, AsyncTrelloHttpClient2 or RestTemplateHttpClient 3 integration tests are failing with following output.

./gradlew clean build

> Task :compileJava
warning: [options] bootstrap class path not set in conjunction with -source 1.7
1 warning

> Task :compileTestScala
Pruning sources from previous analysis, due to incompatible CompileSetup.
warning: [options] bootstrap class path not set in conjunction with -source 1.7
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 warning

> Task :test

com.julienvey.trello.CardIt > create API gets user-friendly error when list id unknown FAILED
    org.scalatest.exceptions.TestFailedException at CardIt.scala:21
        Caused by: com.julienvey.trello.exception.TrelloHttpException at CardIt.scala:22
            Caused by: java.util.concurrent.ExecutionException at CardIt.scala:22
                Caused by: com.fasterxml.jackson.core.JsonParseException

com.julienvey.trello.CardIt > create API gets proper exception and a user-friendly error with valid but inaccessible List Id FAILED
    org.scalatest.exceptions.TestFailedException at CardIt.scala:28
        Caused by: com.julienvey.trello.exception.TrelloHttpException at CardIt.scala:32
            Caused by: java.util.concurrent.ExecutionException at CardIt.scala:32
                Caused by: com.fasterxml.jackson.core.JsonParseException

com.julienvey.trello.CardIt > update API gets user-friendly exception when updating a deleted card FAILED
    org.scalatest.exceptions.TestFailedException at CardIt.scala:59
        Caused by: com.julienvey.trello.exception.TrelloHttpException at CardIt.scala:64
            Caused by: java.util.concurrent.ExecutionException at CardIt.scala:64
                Caused by: com.fasterxml.jackson.core.JsonParseException

223 tests completed, 3 failed

As a solution for this kind of problems I could try to implement parametrized tests and integrate Travis for project.

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