OFBiz Testing with jUnit and Annotations

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

OFBiz Testing with jUnit and Annotations

Oliver Michalke
Hello Community,


I was trying to create some test cases with OFBiz and encountered a problem. Some of my tests were not found by OFBiz. Only methods starting with "test" were found by the OFBiz TestRunContainer.
Could it be that OFBiz is not up to date with the "new" jUnit features, like @Test and @RunWith? May this be the reason why I can't load my tests via spring with @RunWith(SpringJUnit4ClassRunner.class)? May i have to write my own TestContainer to be able to use the new functions? Or am I missing something here?

Thank you in advance,


Oliver Michalke

smime.p7s (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: OFBiz Testing with jUnit and Annotations

Adrian Crum-3
OFBiz abstracts unit tests to its own testing API. That enables us to
switch to other testing frameworks easily. So, no - there are no
JUnit-specific features used by OFBiz.

Adrian Crum
Sandglass Software
www.sandglass-software.com

On 10/28/2014 9:42 AM, Oliver Michalke wrote:

> Hello Community,
>
>
> I was trying to create some test cases with OFBiz and encountered a
> problem. Some of my tests were not found by OFBiz. Only methods starting
> with "test" were found by the OFBiz TestRunContainer.
> Could it be that OFBiz is not up to date with the "new" jUnit features,
> like |@Test and ||@RunWith? May this be the reason why I can't load my
> tests via spring with @RunWith(SpringJUnit4ClassRunner.class)? May i
> have to write my own TestContainer to be able to use the new functions?
> Or am I missing something here?
>
> Thank you in advance,
>
>
> Oliver Michalke
> |