Error: Report Evaluation Failing for XLS reports (with Core 2.4)

Hi @mseaton, @mksd, @dkayiwa

I did create 2 new profiles (for 2.3 and 2.4), however the api-test seems to throw a lot of ERRORS.

Because of that, I needed to Update the file TestingApplicationContext (can be seen bellow) and add a new ReportTestDataset-openmrs-“VERSION”.xml file.

This solved the great majority of the Errors but 7 of them still stand.

All seem to be related with “EvaluationException: Failed to evaluate Error evaluating because: null”

One of the failing tests:

public void evaluate_shouldReturnAllOrdersForAVisit() throws Exception {
		VisitEvaluationContext context = new VisitEvaluationContext();
		context.setBaseVisits(new VisitIdSet(1));
		OrderForVisitDataDefinition d = new OrderForVisitDataDefinition();
		EvaluatedVisitData vd = Context.getService(VisitDataService.class).evaluate(d, context);
		Assert.assertEquals(expectedOrders.intValue(), ((List) vd.getData().get(1)).size());
}

Pom File:

<profile>
    <id>2.3</id>
    <properties>
        <openMRSVersion>2.3.0</openMRSVersion>
        <openMRSMinorVersion>2.3</openMRSMinorVersion>
        <jacksonVersion>1.9.13</jacksonVersion>
        <reportingApiConditionalArtifactId>reporting-api-2.2</reportingApiConditionalArtifactId>
    </properties>
</profile>
<profile>
    <id>2.4</id>
    <properties>
        <openMRSVersion>2.4.0</openMRSVersion>
        <openMRSMinorVersion>2.4</openMRSMinorVersion>
        <jacksonVersion>1.9.13</jacksonVersion>
        <reportingApiConditionalArtifactId>reporting-api-2.4</reportingApiConditionalArtifactId>
    </properties>
</profile>

TestingApplicationContext: (Similar issue Problem running tests against OpenMRS Core 2.3.0- - #3 by mogoodrich)

<property name="packagesToScan">
    <list>
        <value>org.openmrs</value>
    </list>
</property>