From 7cbdcbe87f9304152c4775ca394be5e613719540 Mon Sep 17 00:00:00 2001 From: mwithi Date: Tue, 15 Oct 2024 13:33:15 +0200 Subject: [PATCH] Apply Junit 5 standard --- src/test/java/org/isf/medicalstock/Tests.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/test/java/org/isf/medicalstock/Tests.java b/src/test/java/org/isf/medicalstock/Tests.java index 23b03069f..0a7296325 100644 --- a/src/test/java/org/isf/medicalstock/Tests.java +++ b/src/test/java/org/isf/medicalstock/Tests.java @@ -75,6 +75,7 @@ import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.Arguments; import org.junit.jupiter.params.provider.MethodSource; @@ -202,11 +203,13 @@ void testMovementSets(boolean in, boolean out, boolean toward) throws Exception checkMovementIntoDb(code); } + @Test void testMedicalStockGets() throws Exception { int code = setupTestMedicalStock(false); checkMedicalStockIntoDb(code); } + @Test void testMedicalStockSets() throws Exception { int code = setupTestMedicalStock(true); checkMedicalStockIntoDb(code); @@ -785,7 +788,7 @@ void testMgrGetLotsByMedicalNull(boolean in, boolean out, boolean toward) throws @ParameterizedTest(name = "Test with AUTOMATICLOT_IN={0}, AUTOMATICLOT_OUT={1}, AUTOMATICLOTWARD_TOWARD={2}") @MethodSource("automaticlot") - public void testMgrUpdateLots() throws Exception { + void testMgrUpdateLots() throws Exception { String code1 = setupTestLot(false); Lot lot1 = lotIoOperationRepository.findById(code1).orElse(null);