Skip to content

Commit

Permalink
Collection and Community Builder moved fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MarieVerdonck committed Aug 6, 2020
1 parent cff1d0a commit a1c9bc9
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
*/
package org.dspace.app.rest;

import static org.dspace.app.rest.builder.CollectionBuilder.createCollection;
import static org.dspace.app.rest.builder.CommunityBuilder.createCommunity;
import static org.dspace.app.rest.builder.ItemBuilder.createItem;
import static org.dspace.builder.ItemBuilder.createItem;
import static org.junit.Assert.assertTrue;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.content;
Expand All @@ -18,6 +16,8 @@
import javax.servlet.ServletException;

import org.dspace.app.rest.test.AbstractControllerIntegrationTest;
import org.dspace.builder.CollectionBuilder;
import org.dspace.builder.CommunityBuilder;
import org.dspace.content.Collection;
import org.dspace.content.Community;
import org.dspace.content.Item;
Expand Down Expand Up @@ -52,8 +52,8 @@ public void setUp() throws Exception {

context.turnOffAuthorisationSystem();

Community community = createCommunity(context).build();
Collection collection = createCollection(context, community).build();
Community community = CommunityBuilder.createCommunity(context).build();
Collection collection = CollectionBuilder.createCollection(context, community).build();
this.item1 = createItem(context, collection)
.withTitle("Test 1")
.withIssueDate("2010-10-17")
Expand Down

0 comments on commit a1c9bc9

Please sign in to comment.