I'll take a look, how do I run the tests for just the example component?

Thanks
Scott

2008/6/13 Vikas Mayur <[EMAIL PROTECTED]>:

> Hi Scott,
>
> I have seen this problem coming while running a test case.
> For now you can run the test case for example component to see the problem
> and file of interest is ExampleServices.xml,
> method-name="testCreateExampleService".
>
> Thanks,
> Vikas
>
> On Fri, Jun 13, 2008 at 10:27 AM, Scott Gray <[EMAIL PROTECTED]> wrote:
>
> > Hi Vikas
> >
> > I can't see any reason why it would not work, where is the code I can use
> > to
> > replicate the issue?
> >
> > Thanks
> > Scott
> >
> > 2008/6/13 Vikas Mayur <[EMAIL PROTECTED]>:
> >
> > > Hi Scott,
> > >
> > > It is working fine with "field-name" though it gives few errors like
> > >
> > > UtilXml.java:660:ERROR] XmlFileLoader: File
> > >
> > >
> >
> file:/Users/vikas/work/projects/ofbiz/framework/example/script/org/ofbiz/example/example/ExampleServices.xml
> > > process error. Line: 123. Error message: cvc-complex-type.3.2.2:
> > Attribute
> > > 'field-name' is not allowed to appear in element 'if-empty'.
> > >
> > > BTW, I see that its a issue with <if-empty> tag only.
> > >
> > > Vikas
> > >
> > >
> > > On Fri, Jun 13, 2008 at 8:06 AM, Scott Gray <[EMAIL PROTECTED]> wrote:
> > >
> > > > Hi Vikas
> > > >
> > > > The two attributes field-name and field should be interchangeable,
> are
> > > you
> > > > sure that you don't have a problem even if you use field-name?
> > > >
> > > > Regards
> > > > Scott
> > > >
> > > > 2008/6/13 Vikas Mayur <[EMAIL PROTECTED]>:
> > > >
> > > > > Hi,
> > > > >
> > > > > I was testing few patches for test cases posted on Jira and thought
> > to
> > > > > modify <if-empty field-name=""> to use <if-empty field=""> instead.
> > > > > But its giving following error ( This particular log is associated
> > with
> > > > > when
> > > > > test is run on example component )
> > > > >
> > > > > Any thoughts, why this is happening ?
> > > > >
> > > > > Vikas
> > > > >
> > > > >
> > > > > Exception: java.lang.Exception
> > > > > Message: Error in simple-method [test the create example service
> > > > >
> > > > >
> > > >
> > >
> >
> [file:/Users/vikas/work/projects/ofbiz/framework/example/script/org/ofbiz/example/example/ExampleServices.xml#testCreateExampleService]]:
> > > > > ; [Assertion failed: (empty[=null])]
> > > > > ---- stack trace
> > > > > ---------------------------------------------------------------
> > > > > java.lang.Exception: Error in simple-method [test the create
> example
> > > > > service
> > > > >
> > > > >
> > > >
> > >
> >
> [file:/Users/vikas/work/projects/ofbiz/framework/example/script/org/ofbiz/example/example/ExampleServices.xml#testCreateExampleService]]:
> > > > > ; [Assertion failed: (empty[=null])]
> > > > >
> > > > >
> > > >
> > >
> >
> org.ofbiz.entity.transaction.TransactionUtil.setRollbackOnly(TransactionUtil.java:311)
> > > > >
> > > > >
> > > >
> > >
> >
> org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:258)
> > > > > org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:875)
> > > > >
> > org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:134)
> > > > >
> > org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:116)
> > > > >
> > > > >
> > > >
> > >
> >
> org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76)
> > > > >
> > > >
> > >
> >
> org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51)
> > > > >
> > org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384)
> > > > >
> > org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213)
> > > > >
> > org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:149)
> > > > > org.ofbiz.testtools.ServiceTest.run(ServiceTest.java:61)
> > > > > junit.framework.TestSuite.runTest(TestSuite.java:208)
> > > > > junit.framework.TestSuite.run(TestSuite.java:203)
> > > > >
> org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:134)
> > > > >
> > >
> org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:101)
> > > > > org.ofbiz.base.start.Start.startStartLoaders(Start.java:263)
> > > > > org.ofbiz.base.start.Start.startServer(Start.java:312)
> > > > > org.ofbiz.base.start.Start.start(Start.java:316)
> > > > > org.ofbiz.base.start.Start.main(Start.java:399)
> > > > >
> > > >
> > >
> >
>

Reply via email to