Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- shouldGetFullByUuid(org.openmrs.module.emrmonitor.rest.resource.EmrMonitorReportResourceTest) Time elapsed: 0.113 sec <<< ERROR!
- org.dbunit.dataset.datatype.TypeCastException: Unable to typecast value <LOCAL> of type <java.lang.String> to INTEGER
- at org.dbunit.dataset.datatype.IntegerDataType.typeCast(IntegerDataType.java:81)
- at org.dbunit.dataset.datatype.IntegerDataType.setSqlValue(IntegerDataType.java:106)
- at org.dbunit.database.statement.SimplePreparedStatement.addValue(SimplePreparedStatement.java:73)
- at org.dbunit.operation.RefreshOperation$RowOperation.execute(RefreshOperation.java:180)
- at org.dbunit.operation.RefreshOperation.execute(RefreshOperation.java:110)
- at org.openmrs.test.BaseContextSensitiveTest.executeDataSet(BaseContextSensitiveTest.java:583)
- at org.openmrs.test.BaseContextSensitiveTest.executeDataSet(BaseContextSensitiveTest.java:495)
- at org.openmrs.module.emrmonitor.rest.resource.EmrMonitorReportResourceTest.setup(EmrMonitorReportResourceTest.java:43)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:498)
- 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.RunBefores.evaluate(RunBefores.java:24)
- 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:62)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:498)
- 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)
- Caused by: java.lang.NumberFormatException
- at java.math.BigDecimal.<init>(BigDecimal.java:497)
- at java.math.BigDecimal.<init>(BigDecimal.java:383)
- at java.math.BigDecimal.<init>(BigDecimal.java:809)
- at org.dbunit.dataset.datatype.IntegerDataType.typeCast(IntegerDataType.java:77)
- ... 43 more
- Results :
- Tests in error:
- shouldCreateAndDeleteServers(org.openmrs.module.emrmonitor.rest.resource.EmrMonitorServerResourceTest): Unable to typecast value <LOCAL> of type <java.lang.String> to INTEGER
- shouldGetAll(org.openmrs.module.emrmonitor.rest.resource.EmrMonitorServerResourceTest): Unable to typecast value <LOCAL> of type <java.lang.String> to INTEGER
- shouldGetRefByUuid(org.openmrs.module.emrmonitor.rest.resource.EmrMonitorServerResourceTest): Unable to typecast value <LOCAL> of type <java.lang.String> to INTEGER
- shouldGetDefaultByUuid(org.openmrs.module.emrmonitor.rest.resource.EmrMonitorServerResourceTest): Unable to typecast value <LOCAL> of type <java.lang.String> to INTEGER
- shouldGetFullByUuid(org.openmrs.module.emrmonitor.rest.resource.EmrMonitorServerResourceTest): Unable to typecast value <LOCAL> of type <java.lang.String> to INTEGER
- shouldCreateAndDeleteReports(org.openmrs.module.emrmonitor.rest.resource.EmrMonitorReportResourceTest): Unable to typecast value <LOCAL> of type <java.lang.String> to INTEGER
- shouldGetAll(org.openmrs.module.emrmonitor.rest.resource.EmrMonitorReportResourceTest): Unable to typecast value <LOCAL> of type <java.lang.String> to INTEGER
- shouldGetRefByUuid(org.openmrs.module.emrmonitor.rest.resource.EmrMonitorReportResourceTest): Unable to typecast value <LOCAL> of type <java.lang.String> to INTEGER
- shouldGetDefaultByUuid(org.openmrs.module.emrmonitor.rest.resource.EmrMonitorReportResourceTest): Unable to typecast value <LOCAL> of type <java.lang.String> to INTEGER
- shouldGetFullByUuid(org.openmrs.module.emrmonitor.rest.resource.EmrMonitorReportResourceTest): Unable to typecast value <LOCAL> of type <java.lang.String> to INTEGER
- Tests run: 11, Failures: 0, Errors: 10, Skipped: 1
- [INFO] ------------------------------------------------------------------------
- [INFO] Reactor Summary for OpenMRS EmrMonitor Module 1.0.5-SNAPSHOT:
- [INFO]
- [INFO] OpenMRS EmrMonitor Module .......................... SUCCESS [ 0.069 s]
- [INFO] OpenMRS EmrMonitor Module API ...................... SUCCESS [ 8.766 s]
- [INFO] OpenMRS EmrMonitor Module OMOD ..................... FAILURE [ 12.777 s]
- [INFO] ------------------------------------------------------------------------
- [INFO] BUILD FAILURE
- [INFO] ------------------------------------------------------------------------
- [INFO] Total time: 22.218 s
- [INFO] Finished at: 2020-04-13T21:00:43+02:00
- [INFO] ------------------------------------------------------------------------
- [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project emrmonitor-omod: There are test failures.
- [ERROR]
- [ERROR] Please refer to /home/ayesh/Desktop/oRMS/gsoc2020/openmrs-module-emrmonitor/omod/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 :emrmonitor-omod
- ayesh ayesh-ThinkPad-T480s ~ Desktop oRMS gsoc2020 openmrs-module-emrmonitor fix-1 $
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement