Skip to content

Commit 16fff7e

Browse files
committed
Fix unit tests
1 parent 1b58ee1 commit 16fff7e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

orcid-web/src/test/java/org/orcid/frontend/web/controllers/WorksControllerTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ public void testAddWork() throws Exception {
318318
work.getCitation().setCitationType(Text.valueOf("formatted-unspecified"));
319319
}
320320

321-
work = worksController.postWork(null, work);
321+
work = worksController.postWork(null, work, false);
322322
assertNotNull(work);
323323
assertFalse(PojoUtil.isEmpty(work.getPutCode()));
324324
assertEquals(1, work.getWorkExternalIdentifiers().size());
@@ -336,7 +336,7 @@ public void testEditOtherSourceThrowsError() throws Exception {
336336
WorkForm work = worksController.getWorkInfo(Long.valueOf("7"));
337337
boolean throwsError = false;
338338
try {
339-
worksController.postWork(null, work);
339+
worksController.postWork(null, work, false);
340340
} catch (Exception e) {
341341
throwsError = true;
342342
}
@@ -383,7 +383,7 @@ public void testUpdateWork() throws Exception {
383383
work.getErrors().forEach(n -> System.out.println(n));
384384
fail("invalid work update");
385385
}
386-
worksController.postWork(null, work);
386+
worksController.postWork(null, work, false);
387387

388388
WorkForm updatedWork = worksController.getWorkInfo(Long.valueOf("6"));
389389
assertNotNull(updatedWork);

0 commit comments

Comments
 (0)