Skip to content

Commit

Permalink
#225 - Clear repo's before tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mitch2na committed Nov 19, 2016
1 parent d1abdaf commit 2a8b980
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@
import io.katharsis.resource.include.IncludeLookupSetter;
import io.katharsis.resource.information.AnnotationResourceInformationBuilder;
import io.katharsis.resource.information.ResourceInformationBuilder;
import io.katharsis.resource.mock.repository.ProjectRepository;
import io.katharsis.resource.mock.repository.ProjectToTaskRepository;
import io.katharsis.resource.mock.repository.TaskRepository;
import io.katharsis.resource.mock.repository.TaskToProjectRepository;
import io.katharsis.resource.mock.repository.UserRepository;
import io.katharsis.resource.mock.repository.UserToProjectRepository;
import io.katharsis.resource.registry.ConstantServiceUrlProvider;
import io.katharsis.resource.registry.ResourceRegistry;
Expand Down Expand Up @@ -57,6 +60,9 @@ public void prepare() {
includeFieldSetter = new IncludeLookupSetter(resourceRegistry, new EmptyPropertiesProvider());
objectMapper = new ObjectMapper();
objectMapper.registerModule(new JsonApiModuleBuilder().build(resourceRegistry, false));
UserRepository.clear();
ProjectRepository.clear();
TaskRepository.clear();
UserToProjectRepository.clear();
TaskToProjectRepository.clear();
ProjectToTaskRepository.clear();
Expand Down

0 comments on commit 2a8b980

Please sign in to comment.