use of io.crnk.core.mock.repository.ProjectToTaskRepository in project crnk-framework by crnk-project.
the class ResourceFieldContributorTest method setup.
@Before
public void setup() {
MockRepositoryUtil.clear();
contributedRepository = Mockito.spy(new ContributorRelationshipRepository());
SimpleModule testModule = new SimpleModule("test");
testModule.addRepository(new TaskRepository());
testModule.addRepository(new ProjectRepository());
testModule.addRepository(new ProjectToTaskRepository());
testModule.addRepository(contributedRepository);
boot = new CrnkBoot();
boot.setServiceDiscovery(new TestServiceDiscovery());
boot.addModule(testModule);
boot.boot();
}
Aggregations