Re: Kernel Test Failed and the Bug Fix
Rodrigo Filgueira wrote: ok, that was it. I changed regional settings to English-United Kingdom and everything went fine. Rodrigo Filgueira wrote: More info on this problem. I found the following failure report on test report "TEST-org.openehr.rm.datatypes.quantity.DvQuantityTest.xml" <failure message="expected:<.......> but was:<...,...>" type="junit.framework.ComparisonFailure"> junit.framework.ComparisonFailure: expected:<.......> but was:<...,...> at org.openehr.rm.datatypes.quantity.DvQuantityTest.testToString(DvQuantityTest.java:98) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at org.apache.commons.jelly.tags.ant.AntTag.doTag(AntTag.java:185) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135) at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233) at org.apache.commons.jelly.tags.core.IfTag.doTag(IfTag.java:88) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135) at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.java:79) at org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction(MavenGoalTag.java:110) at com.werken.werkz.Goal.fire(Goal.java:639) at com.werken.werkz.Goal.attain(Goal.java:575) at com.werken.werkz.Goal.attainPrecursors(Goal.java:488) at com.werken.werkz.Goal.attain(Goal.java:573) at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:671) at org.apache.maven.MavenSession.attainGoals(MavenSession.java:263) at org.apache.maven.cli.App.doMain(App.java:488) at org.apache.maven.cli.App.main(App.java:1239) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at com.werken.forehead.Forehead.run(Forehead.java:551) at com.werken.forehead.Forehead.main(Forehead.java:581) </failure> I do not know exactly what it means since I'm no maven expert. I checked out DvQuantityTest and did not find a problem. Sounds more like a Maven problem. Maybe because of the LOCALE settings? I'll give it a try. Rong Chen wrote: Rodrigo Filgueira wrote: > I also have another question, one compiled, how should I use the kernel? > > cheers Hi Rodrigo, Sorry for the delay. For some reason your emails didn't reach my email client, I only saw them on the openEHR web until today. It's good that you can compile the kernel at last. For your question, the openEHR kernel is a core component for other components to be built around it to form a larger piece of software - e.g. an EHR system. We are in the process of releasing a java ADL parser under open source license, which is based on the kernel. There will hopefully be more components available both from us and other openEHR implementers. Regards, Rong ACODE www.acode.se - If you have any questions about using this list, please send a message to d.lloyd@openehr.org - If you have any questions about using this list, please send a message to d.lloyd@openehr.org Thanks for reporting this to us! It turns out to be a bug in the unit test code (DvQuantityTest). It uses a hard coded string to verify toString() of DvQuantity, and that string includes a decimal separator, which is decided by the default locale. For different locale, the separator could be different. I have fixed it in the repository now. Regards, Rong - If you have any questions about using this list, please send a message to d.lloyd@openehr.org