Advertisement
Guest User

Untitled

a guest
Apr 13th, 2020
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.12 KB | None | 0 0
  1.  
  2. shouldGetFullByUuid(org.openmrs.module.emrmonitor.rest.resource.EmrMonitorReportResourceTest) Time elapsed: 0.113 sec <<< ERROR!
  3. org.dbunit.dataset.datatype.TypeCastException: Unable to typecast value <LOCAL> of type <java.lang.String> to INTEGER
  4. at org.dbunit.dataset.datatype.IntegerDataType.typeCast(IntegerDataType.java:81)
  5. at org.dbunit.dataset.datatype.IntegerDataType.setSqlValue(IntegerDataType.java:106)
  6. at org.dbunit.database.statement.SimplePreparedStatement.addValue(SimplePreparedStatement.java:73)
  7. at org.dbunit.operation.RefreshOperation$RowOperation.execute(RefreshOperation.java:180)
  8. at org.dbunit.operation.RefreshOperation.execute(RefreshOperation.java:110)
  9. at org.openmrs.test.BaseContextSensitiveTest.executeDataSet(BaseContextSensitiveTest.java:583)
  10. at org.openmrs.test.BaseContextSensitiveTest.executeDataSet(BaseContextSensitiveTest.java:495)
  11. at org.openmrs.module.emrmonitor.rest.resource.EmrMonitorReportResourceTest.setup(EmrMonitorReportResourceTest.java:43)
  12. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  13. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  14. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  15. at java.lang.reflect.Method.invoke(Method.java:498)
  16. at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
  17. at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
  18. at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
  19. at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
  20. at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:74)
  21. at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
  22. at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:82)
  23. at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:72)
  24. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:240)
  25. at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
  26. at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
  27. at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
  28. at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
  29. at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
  30. at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
  31. at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
  32. at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
  33. at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
  34. at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
  35. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:180)
  36. at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
  37. at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
  38. at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
  39. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  40. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  41. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  42. at java.lang.reflect.Method.invoke(Method.java:498)
  43. at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
  44. at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
  45. at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
  46. at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
  47. at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
  48. Caused by: java.lang.NumberFormatException
  49. at java.math.BigDecimal.<init>(BigDecimal.java:497)
  50. at java.math.BigDecimal.<init>(BigDecimal.java:383)
  51. at java.math.BigDecimal.<init>(BigDecimal.java:809)
  52. at org.dbunit.dataset.datatype.IntegerDataType.typeCast(IntegerDataType.java:77)
  53. ... 43 more
  54.  
  55.  
  56. Results :
  57.  
  58. Tests in error:
  59. shouldCreateAndDeleteServers(org.openmrs.module.emrmonitor.rest.resource.EmrMonitorServerResourceTest): Unable to typecast value <LOCAL> of type <java.lang.String> to INTEGER
  60. shouldGetAll(org.openmrs.module.emrmonitor.rest.resource.EmrMonitorServerResourceTest): Unable to typecast value <LOCAL> of type <java.lang.String> to INTEGER
  61. shouldGetRefByUuid(org.openmrs.module.emrmonitor.rest.resource.EmrMonitorServerResourceTest): Unable to typecast value <LOCAL> of type <java.lang.String> to INTEGER
  62. shouldGetDefaultByUuid(org.openmrs.module.emrmonitor.rest.resource.EmrMonitorServerResourceTest): Unable to typecast value <LOCAL> of type <java.lang.String> to INTEGER
  63. shouldGetFullByUuid(org.openmrs.module.emrmonitor.rest.resource.EmrMonitorServerResourceTest): Unable to typecast value <LOCAL> of type <java.lang.String> to INTEGER
  64. shouldCreateAndDeleteReports(org.openmrs.module.emrmonitor.rest.resource.EmrMonitorReportResourceTest): Unable to typecast value <LOCAL> of type <java.lang.String> to INTEGER
  65. shouldGetAll(org.openmrs.module.emrmonitor.rest.resource.EmrMonitorReportResourceTest): Unable to typecast value <LOCAL> of type <java.lang.String> to INTEGER
  66. shouldGetRefByUuid(org.openmrs.module.emrmonitor.rest.resource.EmrMonitorReportResourceTest): Unable to typecast value <LOCAL> of type <java.lang.String> to INTEGER
  67. shouldGetDefaultByUuid(org.openmrs.module.emrmonitor.rest.resource.EmrMonitorReportResourceTest): Unable to typecast value <LOCAL> of type <java.lang.String> to INTEGER
  68. shouldGetFullByUuid(org.openmrs.module.emrmonitor.rest.resource.EmrMonitorReportResourceTest): Unable to typecast value <LOCAL> of type <java.lang.String> to INTEGER
  69.  
  70. Tests run: 11, Failures: 0, Errors: 10, Skipped: 1
  71.  
  72. [INFO] ------------------------------------------------------------------------
  73. [INFO] Reactor Summary for OpenMRS EmrMonitor Module 1.0.5-SNAPSHOT:
  74. [INFO]
  75. [INFO] OpenMRS EmrMonitor Module .......................... SUCCESS [ 0.069 s]
  76. [INFO] OpenMRS EmrMonitor Module API ...................... SUCCESS [ 8.766 s]
  77. [INFO] OpenMRS EmrMonitor Module OMOD ..................... FAILURE [ 12.777 s]
  78. [INFO] ------------------------------------------------------------------------
  79. [INFO] BUILD FAILURE
  80. [INFO] ------------------------------------------------------------------------
  81. [INFO] Total time: 22.218 s
  82. [INFO] Finished at: 2020-04-13T21:00:43+02:00
  83. [INFO] ------------------------------------------------------------------------
  84. [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.
  85. [ERROR]
  86. [ERROR] Please refer to /home/ayesh/Desktop/oRMS/gsoc2020/openmrs-module-emrmonitor/omod/target/surefire-reports for the individual test results.
  87. [ERROR] -> [Help 1]
  88. [ERROR]
  89. [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
  90. [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  91. [ERROR]
  92. [ERROR] For more information about the errors and possible solutions, please read the following articles:
  93. [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
  94. [ERROR]
  95. [ERROR] After correcting the problems, you can resume the build with the command
  96. [ERROR] mvn <goals> -rf :emrmonitor-omod
  97. ayesh  ayesh-ThinkPad-T480s  ~  Desktop  oRMS  gsoc2020  openmrs-module-emrmonitor  fix-1  $ 
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement