cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to run unittests without shutting down hybris server?

Former Member
0 Kudos
1,050

I am trying to run unit tests with ant unittests when server is not running --> everything is OK. But when I try to run unit tests when hybris server is running I get: [yunitint] Caused by: org.springframework.beans.FatalBeanException: Context hybris Global Context Factory couldn't be created correctly due to, Error creating bean with name 'defaultRmiRegistryService' defined in class path resource [mediaconversion-global-context.xml]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: Failed to create Registry at port '2198'.

So my question is whether it is possible to run unittests without shutting down hybris server?

View Entire Topic
imeleshkov
Discoverer
0 Kudos

We've created localjunit.properties from local.properties, but append

 os.rmiregistry.port=2199

then use additional "-Duseconfig=junit" VM argument for running ant junittests

Former Member
0 Kudos

Can you please share the contents of localjunit.properties file.
Also, where did you use the arguments -Duseconfig=junit. Thanks.