Hello.

I'm trying to build rev 893.

But the tests don't pass.

I am aware that I can skip the tests, but that's not the path I'm interested in.

After some googling, I learned that I can't build all of HAPI on my Linux box 
anyway.  Apparently the "HL7 Database" is accessed via Windows-specific 
mechanisms during the build.  I have some ideas about removing that limitation.

But first, I'd like to get as much of the build working here as I can.

So, please have a look at 
hl7api-code/hapi-mvn/hapi-test/target/surefire-reports/ca.uhn.hl7v2.model.SuperStructureTest.txt
 below.

Is this an expected error?  It looks like a problem with the message 
definitions, or the test data, or something like that rather than the code that 
processes the test data?

Thanks, cheers,
--Dave



-------------------------------------------------------------------------------
Test set: ca.uhn.hl7v2.model.SuperStructureTest
-------------------------------------------------------------------------------
Tests run: 6, Failures: 0, Errors: 4, Skipped: 0, Time elapsed: 0.054 sec <<< 
FAILURE!
testValidationForCreateMessage(ca.uhn.hl7v2.model.SuperStructureTest)  Time 
elapsed: 0.01 sec  <<< ERROR!
ca.uhn.hl7v2.HL7Exception: Message (superstructure ADT_AXX) of type ADT_A01 
must not have content in MSH
                at 
ca.uhn.hl7v2.validation.ReportingValidationExceptionHandler.result(ReportingValidationExceptionHandler.java:85)
                at 
ca.uhn.hl7v2.validation.ReportingValidationExceptionHandler.result(ReportingValidationExceptionHandler.java:43)
                at 
ca.uhn.hl7v2.validation.AbstractValidator.validate(AbstractValidator.java:83)
                at 
ca.uhn.hl7v2.parser.Parser.assertMessageValidates(Parser.java:611)
                at ca.uhn.hl7v2.parser.Parser.encode(Parser.java:275)
                at ca.uhn.hl7v2.parser.PipeParser.encode(PipeParser.java:997)
                at 
ca.uhn.hl7v2.model.SuperStructureTest.testValidationForCreateMessage(SuperStructureTest.java:107)
                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:616)
                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.runners.ParentRunner.runLeaf(ParentRunner.java:271)
                at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
                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.junit.runners.ParentRunner.run(ParentRunner.java:309)
                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:616)
                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: ca.uhn.hl7v2.validation.ValidationException: Message (superstructure 
ADT_AXX) of type ADT_A01 must not have content in MSH
                at 
ca.uhn.hl7v2.validation.builder.support.OnlyAllowableSegmentsInSuperstructureRule.checkStructure(OnlyAllowableSegmentsInSuperstructureRule.java:74)
                at 
ca.uhn.hl7v2.validation.builder.support.OnlyAllowableSegmentsInSuperstructureRule.apply(OnlyAllowableSegmentsInSuperstructureRule.java:55)
                at 
ca.uhn.hl7v2.validation.builder.support.OnlyAllowableSegmentsInSuperstructureRule.apply(OnlyAllowableSegmentsInSuperstructureRule.java:46)
                at 
ca.uhn.hl7v2.validation.AbstractValidator.testMessageRules(AbstractValidator.java:98)
                at 
ca.uhn.hl7v2.validation.AbstractValidator.validate(AbstractValidator.java:82)
                ... 33 more

testParseTwoPidA01(ca.uhn.hl7v2.model.SuperStructureTest)  Time elapsed: 0 sec  
<<< ERROR!
ca.uhn.hl7v2.HL7Exception: Superstructure ADT_AXX does not apply to message 
ADT_A01, can not parse.
                at 
ca.uhn.hl7v2.parser.PipeParser.getStructureDefinition(PipeParser.java:260)
                at ca.uhn.hl7v2.parser.PipeParser.parse(PipeParser.java:1101)
                at 
ca.uhn.hl7v2.model.AbstractMessage.parse(AbstractMessage.java:200)
                at 
ca.uhn.hl7v2.model.SuperStructureTest.testParseTwoPidA01(SuperStructureTest.java:32)
                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:616)
                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.runners.ParentRunner.runLeaf(ParentRunner.java:271)
                at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
                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.junit.runners.ParentRunner.run(ParentRunner.java:309)
                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:616)
                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)

testParseTwoPidA17(ca.uhn.hl7v2.model.SuperStructureTest)  Time elapsed: 0.001 
sec  <<< ERROR!
ca.uhn.hl7v2.HL7Exception: Superstructure ADT_AXX does not apply to message 
ADT_A17, can not parse.
                at 
ca.uhn.hl7v2.parser.PipeParser.getStructureDefinition(PipeParser.java:260)
                at ca.uhn.hl7v2.parser.PipeParser.parse(PipeParser.java:1101)
                at 
ca.uhn.hl7v2.model.AbstractMessage.parse(AbstractMessage.java:200)
                at 
ca.uhn.hl7v2.model.SuperStructureTest.testParseTwoPidA17(SuperStructureTest.java:51)
                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:616)
                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.runners.ParentRunner.runLeaf(ParentRunner.java:271)
                at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
                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.junit.runners.ParentRunner.run(ParentRunner.java:309)
                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:616)
                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)

testVersionsLoadCorrectly(ca.uhn.hl7v2.model.SuperStructureTest)  Time elapsed: 
0.01 sec  <<< ERROR!
ca.uhn.hl7v2.HL7Exception: Superstructure ADT_AXX does not apply to message 
ADT_A01, can not parse.
                at 
ca.uhn.hl7v2.parser.PipeParser.getStructureDefinition(PipeParser.java:260)
                at ca.uhn.hl7v2.parser.PipeParser.parse(PipeParser.java:1101)
                at 
ca.uhn.hl7v2.model.AbstractMessage.parse(AbstractMessage.java:200)
                at 
ca.uhn.hl7v2.model.SuperStructureTest.testVersionsLoadCorrectly(SuperStructureTest.java:160)
                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:616)
                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.runners.ParentRunner.runLeaf(ParentRunner.java:271)
                at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
                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.junit.runners.ParentRunner.run(ParentRunner.java:309)
                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:616)
                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)
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Hl7api-devel mailing list
Hl7api-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hl7api-devel

Reply via email to