@@ -557,28 +557,31 @@ public void testCreateNonVersionedDIVirus() throws IOException {
557557 }
558558
559559 @ Test
560- void testCopyAttachments_invalidFacetFormat () {
560+ void testCopyAttachments_invalidFacetFormat () {
561561 SDMAttachmentsService service = new SDMAttachmentsService ();
562562 CopyAttachmentInput input = mock (CopyAttachmentInput .class );
563563 when (input .facet ()).thenReturn ("invalidfacet" );
564564 when (input .upId ()).thenReturn ("upId" );
565565 when (input .objectIds ()).thenReturn (List .of ("obj1" ));
566- Exception ex = assertThrows (IllegalArgumentException .class , () -> {
567- service .copyAttachments (input , false );
568- });
566+ Exception ex =
567+ assertThrows (
568+ IllegalArgumentException .class ,
569+ () -> {
570+ service .copyAttachments (input , false );
571+ });
569572 assertTrue (ex .getMessage ().contains ("Invalid facet format" ));
570- }
573+ }
571574
572- @ Test
573- void testReadAttachment_emitsContext () {
575+ @ Test
576+ void testReadAttachment_emitsContext () {
574577 SDMAttachmentsService service = spy (new SDMAttachmentsService ());
575578 doNothing ().when (service ).emit (any ());
576579 InputStream result = service .readAttachment ("docId" );
577580 assertNull (result );
578- }
581+ }
579582
580- @ Test
581- void testCreateAttachment_emitsContextAndReturnsResult () {
583+ @ Test
584+ void testCreateAttachment_emitsContextAndReturnsResult () {
582585 SDMAttachmentsService service = spy (new SDMAttachmentsService ());
583586 doNothing ().when (service ).emit (any ());
584587 CreateAttachmentInput input = mock (CreateAttachmentInput .class );
@@ -590,10 +593,10 @@ void testCreateAttachment_emitsContextAndReturnsResult() {
590593 when (input .content ()).thenReturn (new ByteArrayInputStream (new byte [0 ]));
591594 AttachmentModificationResult result = service .createAttachment (input );
592595 assertNotNull (result );
593- }
596+ }
594597
595- @ Test
596- void testMarkAttachmentAsDeleted_emitsContext () {
598+ @ Test
599+ void testMarkAttachmentAsDeleted_emitsContext () {
597600 SDMAttachmentsService service = spy (new SDMAttachmentsService ());
598601 doNothing ().when (service ).emit (any ());
599602 MarkAsDeletedInput input = mock (MarkAsDeletedInput .class );
@@ -602,14 +605,14 @@ void testMarkAttachmentAsDeleted_emitsContext() {
602605 when (userInfo .getName ()).thenReturn ("user" );
603606 when (input .userInfo ()).thenReturn (userInfo );
604607 service .markAttachmentAsDeleted (input );
605- }
608+ }
606609
607- @ Test
608- void testRestoreAttachment_emitsContext () {
610+ @ Test
611+ void testRestoreAttachment_emitsContext () {
609612 SDMAttachmentsService service = spy (new SDMAttachmentsService ());
610613 doNothing ().when (service ).emit (any ());
611614 service .restoreAttachment (Instant .now ());
612- }
615+ }
613616
614617 @ Test
615618 public void testCreateNonVersionedDIOther () throws IOException {
0 commit comments