Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.hisp.dhis.dxf2.importsummary.ImportSummaryTest
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><d:importSummary xmlns:d="http://dhis2.org/schema/dxf/2.0"><d:status>SUCCESS</d:status><d:description>Testing</d:description><d:dataValueCount imported="2" updated="1" ignored="4"/></d:importSummary>Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.879 sec
Running org.openmrs.module.dhisreport.api.adx.AdxTypeTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.096 sec
Running org.openmrs.module.dhisreport.api.dhis.HttpDhis2ServerTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 20.613 sec
Running org.openmrs.module.dhisreport.api.DHIS2ReportingServiceDAOTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 6, Time elapsed: 0 sec
Running org.openmrs.module.dhisreport.api.DHIS2ReportingServiceDXFTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 2, Time elapsed: 0 sec
Running org.openmrs.module.dhisreport.api.dxf2.DataValueSetTest
Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized.
Compiler warnings:
WARNING: 'org.apache.xerces.jaxp.SAXParserImpl: Property 'http://javax.xml.XMLConstants/property/accessExternalDTD' is not recognized.'
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.137 sec
Running org.openmrs.module.dhisreport.api.impl.DHIS2ReportingServiceImplTest
Tests run: 5, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 3.794 sec <<< FAILURE!
shouldGenerateReportingReportDefinition(org.openmrs.module.dhisreport.api.impl.DHIS2ReportingServiceImplTest) Time elapsed: 1.573 sec <<< ERROR!
java.util.NoSuchElementException
at java.util.ArrayList$Itr.next(ArrayList.java:834)
at org.openmrs.module.dhisreport.api.impl.DHIS2ReportingServiceImpl.generateReportingReportDefinition(DHIS2ReportingServiceImpl.java:332)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at com.sun.proxy.$Proxy127.generateReportingReportDefinition(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.openmrs.aop.LoggingAdvice.invoke(LoggingAdvice.java:122)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at com.sun.proxy.$Proxy128.generateReportingReportDefinition(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at com.sun.proxy.$Proxy128.generateReportingReportDefinition(Unknown Source)
at org.openmrs.module.dhisreport.api.impl.DHIS2ReportingServiceImplTest.shouldGenerateReportingReportDefinition(DHIS2ReportingServiceImplTest.java:171)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:74)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:82)
at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:72)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:240)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:180)
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
Running org.openmrs.module.dhisreport.api.importsummary.ImportSummariesTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.013 sec
Running org.openmrs.module.dhisreport.api.model.ReportTemplatesTest
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><reportTemplates><dataElements><dataElement code="ANC1" uid="nvVDDkfbbhf" name="ANC1"/><dataElement code="ANC4" uid="OWeOBFxrvrv" name="ANC4"/><dataElement code="POP" uid="xX6RDH6AZTK" name="Population"/></dataElements><disaggregations><disaggregation code="YtbnZipIBx3" uid="YtbnZipIBx3" name="(default)"/><disaggregation code="HgRodT2oZlq" uid="HgRodT2oZlq" name="(Male)"/><disaggregation code="PfaFHAfpd2X" uid="PfaFHAfpd2X" name="(Female)"/></disaggregations><reportTemplate><name>Maternal and Child Health</name><uid>sI82CctvS1A</uid><code>MNCH</code><periodType>Monthly</periodType><dataValueTemplates><dataValueTemplate dataElement="ANC4" disaggregation="YtbnZipIBx3"/><dataValueTemplate dataElement="ANC1" disaggregation="YtbnZipIBx3"/></dataValueTemplates></reportTemplate><reportTemplate><name>Population</name><uid>Az7yGdS293Y</uid><code>Population</code><periodType>Yearly</periodType><dataValueTemplates><dataValueTemplate dataElement="POP" disaggregation="HgRodT2oZlq"><annotation>select count(*) from something &amp; something_else</annotation></dataValueTemplate><dataValueTemplate dataElement="POP" disaggregation="PfaFHAfpd2X"><annotation>select count(*) from something &amp; something_else</annotation></dataValueTemplate></dataValueTemplates></reportTemplate></reportTemplates>Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.055 sec
Running org.openmrs.module.dhisreport.api.PeriodTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running org.openmrs.module.dhisreport.api.utils.MonthlyPeriodTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005 sec
Running org.openmrs.module.dhisreport.api.utils.QuarterlyPeriodTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.006 sec
Running org.openmrs.module.dhisreport.api.utils.WeeklyPeriodTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.017 sec
Results :
Tests in error:
shouldGenerateReportingReportDefinition(org.openmrs.module.dhisreport.api.impl.DHIS2ReportingServiceImplTest)
Tests run: 38, Failures: 0, Errors: 1, Skipped: 8
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] DHIS2 Reporting Module ............................. SUCCESS [ 0.688 s]
[INFO] DHIS2 Reporting Module API ......................... FAILURE [ 39.489 s]
[INFO] DHIS2 Reporting Module OMOD ........................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 41.680 s
[INFO] Finished at: 2016-08-08T21:51:56+05:30
[INFO] Final Memory: 34M/982M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project dhisreport-api: There are test failures.
[ERROR]
[ERROR] Please refer to /Users/puevigreven/gsoc-dhis/openmrs-module-dhisreport/api/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :dhisreport-api
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment