Skip to content

Commit

Permalink
Improve previous TestPreviewChangesCoD fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mederly committed Apr 16, 2024
1 parent 18057f1 commit 22cb18a
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@

import com.evolveum.midpoint.test.TestObject;

import com.evolveum.midpoint.util.exception.CommonException;

import org.springframework.test.annotation.DirtiesContext;
import org.springframework.test.context.ContextConfiguration;
import org.testng.AssertJUnit;
Expand Down Expand Up @@ -449,8 +447,8 @@ private Map<Class<? extends ObjectType>, Integer> collectCounts(Task task, Opera
continue;
}

if (!isNativeRepository() && PolicyType.class.isAssignableFrom(clazz)) {
continue; // FIXME temporary hack to make this test pass on generic repository
if (!repositoryService.supports(clazz)) {
continue;
}

int count = repositoryService.countObjects(clazz, null, null, result);
Expand Down

0 comments on commit 22cb18a

Please sign in to comment.