# EMR API tests failing with initializationError

**URL:** <https://talk.openmrs.org/t/emr-api-tests-failing-with-initializationerror/3347>\
**Category:** Development\
**Tags:** emr-api\
**Created:** [October 19, 2015, 3:17pm UTC](https://talk.openmrs.org/t/emr-api-tests-failing-with-initializationerror/3347 "2015-10-19T15:17:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jdegraft](https://talk.openmrs.org/user_avatar/talk.openmrs.org/jdegraft/32/1049_2.png) [@jdegraft](https://talk.openmrs.org/u/jdegraft)\
**Post date:** [October 19, 2015, 3:17pm UTC](https://talk.openmrs.org/t/emr-api-tests-failing-with-initializationerror/3347/1 "2015-10-19T15:17:46Z")

</div>

**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)

---

<div class="post-metadata">

**Author:** ![darius](https://talk.openmrs.org/user_avatar/talk.openmrs.org/darius/32/8082_2.png) [@darius](https://talk.openmrs.org/u/darius)\
**Post date:** [October 19, 2015, 3:47pm UTC](https://talk.openmrs.org/t/emr-api-tests-failing-with-initializationerror/3347/2 "2015-10-19T15:47:22Z")

</div>

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
...
```
