ofbiz-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scott Gray (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (OFBIZ-5906) The <delete> action in <entity-engine-xml> definitions throw an error in tests
Date Mon, 15 Dec 2014 05:43:14 GMT

    [ https://issues.apache.org/jira/browse/OFBIZ-5906?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14246341#comment-14246341
] 

Scott Gray commented on OFBIZ-5906:
-----------------------------------

Ah okay, I didn't realize the loading is done as a test as well.  

> The <delete> action in <entity-engine-xml> definitions throw an error in
tests
> ------------------------------------------------------------------------------
>
>                 Key: OFBIZ-5906
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-5906
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: Release Branch 12.04, Release Branch 13.07, Trunk
>            Reporter: Jacques Le Roux
>            Priority: Minor
>
> While running a test with test data defined with a <delete> inside I got thses
errors:
> {code}
> 2014-10-28 15:21:22,155 |main                 |GenericDelegator              |E| Error
getting entity definition from model
> org.ofbiz.entity.GenericModelException: Could not find definition for entity name delete
> 	at org.ofbiz.entity.model.ModelReader.getModelEntity(ModelReader.java:489) ~[ofbiz-entity.jar:?]
> 	at org.ofbiz.entity.GenericDelegator.getModelEntity(GenericDelegator.java:405) [ofbiz-entity.jar:?]
> 	at org.ofbiz.entity.GenericDelegator.makeValue(GenericDelegator.java:600) [ofbiz-entity.jar:?]
> 	at org.ofbiz.entity.GenericDelegator.makeValue(GenericDelegator.java:2397) [ofbiz-entity.jar:?]
> 	at org.ofbiz.entity.GenericDelegator.makeValues(GenericDelegator.java:2356) [ofbiz-entity.jar:?]
> 	at org.ofbiz.entity.GenericDelegator.readXmlDocument(GenericDelegator.java:2327) [ofbiz-entity.jar:?]
> 	at org.ofbiz.testtools.EntityXmlAssertTest.countTestCases(EntityXmlAssertTest.java:61)
[ofbiz-testtools.jar:?]
> 	at junit.framework.TestResult.startTest(TestResult.java:150) [junit-dep-4.10.jar:?]
> 	at org.ofbiz.testtools.EntityXmlAssertTest.run(EntityXmlAssertTest.java:71) [ofbiz-testtools.jar:?]
> 	at junit.framework.TestSuite.runTest(TestSuite.java:243) [junit-dep-4.10.jar:?]
> 	at junit.framework.TestSuite.run(TestSuite.java:238) [junit-dep-4.10.jar:?]
> 	at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:147) [ofbiz-testtools.jar:?]
> 	at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:237) [ofbiz-base.jar:?]
> 	at org.ofbiz.base.start.Start.startStartLoaders(Start.java:341) [ofbiz.jar:?]
> 	at org.ofbiz.base.start.Start.start(Start.java:367) [ofbiz.jar:?]
> 	at org.ofbiz.base.start.Start.main(Start.java:135) [ofbiz.jar:?]
> 2014-10-28 15:21:22,156 |main                 |ServiceTest                   |E| Error
getting test case count
> java.lang.IllegalArgumentException: [GenericDelegator.makeValue] could not find entity
for entityName: delete
> 	at org.ofbiz.entity.GenericDelegator.makeValue(GenericDelegator.java:602) ~[ofbiz-entity.jar:?]
> 	at org.ofbiz.entity.GenericDelegator.makeValue(GenericDelegator.java:2397) ~[ofbiz-entity.jar:?]
> 	at org.ofbiz.entity.GenericDelegator.makeValues(GenericDelegator.java:2356) ~[ofbiz-entity.jar:?]
> 	at org.ofbiz.entity.GenericDelegator.readXmlDocument(GenericDelegator.java:2327) ~[ofbiz-entity.jar:?]
> 	at org.ofbiz.testtools.EntityXmlAssertTest.countTestCases(EntityXmlAssertTest.java:61)
[ofbiz-testtools.jar:?]
> 	at junit.framework.TestResult.startTest(TestResult.java:150) [junit-dep-4.10.jar:?]
> 	at org.ofbiz.testtools.EntityXmlAssertTest.run(EntityXmlAssertTest.java:71) [ofbiz-testtools.jar:?]
> 	at junit.framework.TestSuite.runTest(TestSuite.java:243) [junit-dep-4.10.jar:?]
> 	at junit.framework.TestSuite.run(TestSuite.java:238) [junit-dep-4.10.jar:?]
> 	at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:147) [ofbiz-testtools.jar:?]
> 	at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:237) [ofbiz-base.jar:?]
> 	at org.ofbiz.base.start.Start.startStartLoaders(Start.java:341) [ofbiz.jar:?]
> 	at org.ofbiz.base.start.Start.start(Start.java:367) [ofbiz.jar:?]
> 	at org.ofbiz.base.start.Start.main(Start.java:135) [ofbiz.jar:?]
> {code}
> This has no consequences AFAIK, but is a bit annoying...



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message