[jira] [Created] (OFBIZ-5906) The <delete> action in <entity-engine-xml> definitions throw an error in tests

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (OFBIZ-5906) The <delete> action in <entity-engine-xml> definitions throw an error in tests

Nicolas Malin (Jira)
Jacques Le Roux created OFBIZ-5906:
--------------------------------------

             Summary: 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: Trunk, Release Branch 13.07, Release Branch 12.04
            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)