File tree Expand file tree Collapse file tree
orcid-web/src/test/java/org/orcid/frontend/web/controllers Expand file tree Collapse file tree Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments