Skip to content

Commit

Permalink
set constant id
Browse files Browse the repository at this point in the history
  • Loading branch information
PBobylev committed Nov 28, 2024
1 parent a35988b commit 15c030a
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import static org.folio.linked.data.test.TestUtil.awaitAndAssert;
import static org.folio.linked.data.test.TestUtil.cleanResourceTables;
import static org.folio.linked.data.test.TestUtil.defaultHeaders;
import static org.folio.linked.data.test.TestUtil.randomLong;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.springframework.http.MediaType.APPLICATION_JSON;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.put;
Expand Down Expand Up @@ -75,10 +74,10 @@ public void afterEach() {
@Test
void indexResourceWithNoIndexDate_andNotFullIndexRequest() throws Exception {
// given
var work = resourceRepo.save(getSampleWork(null));
var work = resourceRepo.save(getSampleWork(null)).setId(1L);
var instance = resourceRepo.save(getSampleInstanceResource(null, work));
var anotherWork = getSampleWork(instance);
anotherWork.setId(randomLong());
anotherWork.setId(2L);
resourceRepo.save(anotherWork);
var resourceEdge = work.getIncomingEdges().iterator().next();
resourceEdge.computeId();
Expand Down

0 comments on commit 15c030a

Please sign in to comment.