From 037711d902754031248e27d9b5bb8bf78678a0d9 Mon Sep 17 00:00:00 2001 From: BKadirkhodjaev Date: Thu, 19 Dec 2024 15:54:25 +0500 Subject: [PATCH] [MODORDERS-1209-2]. Add missing PieceUtilTestNested --- src/test/java/org/folio/ApiTestSuite.java | 5 +++++ src/test/java/org/folio/CopilotGenerated.java | 2 +- src/test/java/org/folio/service/pieces/PieceUtilTest.java | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/test/java/org/folio/ApiTestSuite.java b/src/test/java/org/folio/ApiTestSuite.java index 8f1d9f8da..62a9acd20 100644 --- a/src/test/java/org/folio/ApiTestSuite.java +++ b/src/test/java/org/folio/ApiTestSuite.java @@ -97,6 +97,7 @@ import org.folio.service.pieces.PieceServiceTest; import org.folio.service.pieces.PieceStorageServiceTest; import org.folio.service.pieces.PieceUpdateInventoryServiceTest; +import org.folio.service.pieces.PieceUtilTest; import org.folio.service.pieces.PiecesClaimingServiceTest; import org.folio.service.pieces.flows.BasePieceFlowHolderBuilderTest; import org.folio.service.pieces.flows.DefaultPieceFlowsValidatorTest; @@ -555,4 +556,8 @@ class PiecesClaimingApiTestNested extends PiecesClaimingApiTest { @Nested class PiecesClaimingServiceNested extends PiecesClaimingServiceTest { } + + @Nested + class PieceUtilTestNested extends PieceUtilTest { + } } diff --git a/src/test/java/org/folio/CopilotGenerated.java b/src/test/java/org/folio/CopilotGenerated.java index e9dc2e86e..fe9bcc860 100644 --- a/src/test/java/org/folio/CopilotGenerated.java +++ b/src/test/java/org/folio/CopilotGenerated.java @@ -13,7 +13,7 @@ * Set value or partiallyGenerated attribute to true * if the generated test(s) were significantly modified/altered by the developer. */ -@Target(ElementType.TYPE) +@Target({ElementType.TYPE, ElementType.METHOD}) @Retention(RetentionPolicy.SOURCE) public @interface CopilotGenerated { diff --git a/src/test/java/org/folio/service/pieces/PieceUtilTest.java b/src/test/java/org/folio/service/pieces/PieceUtilTest.java index c73dd6578..1dbe27b0a 100644 --- a/src/test/java/org/folio/service/pieces/PieceUtilTest.java +++ b/src/test/java/org/folio/service/pieces/PieceUtilTest.java @@ -11,7 +11,7 @@ import static org.junit.jupiter.api.Assertions.*; @CopilotGenerated(partiallyGenerated = true) -class PieceUtilTest { +public class PieceUtilTest { @Test void testUpdatePieceStatusWithOldAndNewStatus() {