Hi all,

while testing how adding the CXF libs influences the syncope tests I
found a problem with the current rest tests.

The problem is that at least some of the tests can not simply be rerun.
For example org.apache.syncope.core.rest.RoleTestITCase.create() only
seems to succeed once.
When I start the server and rerun the test from eclipse it fails as the
role is already there.

So one way to solve this would be to make each test method clean up
after itself. So at least after a successful test the db should be ready
for another run.

One other way would be to create some additional tests that work with a
mocked persistence layer. These tests would then always be able to rerun
as they do not need or change the db.

I think it makes sense to follow both of these approaches. So what do
you think?

Christian

Reply via email to