Skip to content

Commit

Permalink
Apply Junit 5 standard
Browse files Browse the repository at this point in the history
  • Loading branch information
mwithi committed Oct 15, 2024
1 parent 7dbf34d commit 7cbdcbe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/test/java/org/isf/medicalstock/Tests.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit 7cbdcbe

Please sign in to comment.