EMR API tests failing with initializationError

Platform Version: 2.0.0

Question: There some issues with building emr api (master). Some tests are failing with initializationError. The test classes are decorated with powermock @PrepareForTest

Strangely the relevant pom does not specify dependencies for powermock, mockito, & junit. There is no way to check if the versions are compatible.

Where are these dependencies specified?

(The main pom is based on 2.3 distro)

1 Like

I just tried doing the build locally and it built fine. I have:

Apache Maven 3.2.2
Java version: 1.6.0_65

Doing mvn dependency:tree I see:

[INFO] org.openmrs.module:emrapi-api:jar:1.12-SNAPSHOT
...
[INFO] +- org.openmrs.test:openmrs-test:pom:1.9.8:test
...
[INFO] |  +- org.powermock:powermock-module-junit4:jar:1.5:test
[INFO] |  |  \- org.powermock:powermock-module-junit4-common:jar:1.5:test
[INFO] |  |     +- org.powermock:powermock-core:jar:1.5:test
[INFO] |  |     |  \- org.javassist:javassist:jar:3.17.1-GA:test
[INFO] |  |     \- org.powermock:powermock-reflect:jar:1.5:test
[INFO] |  \- org.powermock:powermock-api-mockito:jar:1.5:test
[INFO] |     \- org.powermock:powermock-api-support:jar:1.5:test
...