javserlah / qforce

QForce
0 stars 0 forks source link

Failing unit tests #1

Open marceloverdijk opened 6 years ago

marceloverdijk commented 6 years ago

The project contains 2 failing unit tests when running ./gradlew clean test:

nl.qnh.qforce.unittests.SwApiFacadeTest > givenThereAreDifferentPersonsAssociatedWithANameThenThePersonsAreReceivedAsExpected FAILED
    org.apache.http.NoHttpResponseException at SwApiFacadeTest.java:87

nl.qnh.qforce.unittests.SwApiFacadeTest > givenAPersonExistsWhenThePersonDetailsAreRequestedThenTheDetailsAreReceivedAsExpected FAILED
    org.junit.ComparisonFailure at SwApiFacadeTest.java:115
javserlah commented 6 years ago

I currently run them and they are working on my machine. The only difference i see is that you are running them on Linux and i am running them on Windows but it shouldn't matter.

Please, find attached the results from my laptop.

Can you run them individually in Intellij/Eclipse just in case?

Those tests are using WireMock for mocking the external Api. I read that wiremock behaves strangely in some cases.

tests
javserlah commented 6 years ago

I also tried to run the project from scratch in Linux and it's also working on my machine:

image