Skip to content

Commit

Permalink
chore: Reformat code
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveGT96 committed Nov 13, 2024
1 parent abec922 commit a21fcc6
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions src/test/java/org/isf/medicalstock/Tests.java
Original file line number Diff line number Diff line change
Expand Up @@ -153,12 +153,6 @@ static void setUpClass() {
testSupplier = new TestSupplier();
testMedicalStock = new TestMedicalStock();
}

@BeforeEach
void setUp() throws OHException {
cleanH2InMemoryDb();
}

@AfterAll
static void tearDownClass() {
testLot = null;
Expand All @@ -170,7 +164,10 @@ static void tearDownClass() {
testSupplier = null;
testMedicalStock = null;
}

@BeforeEach
void setUp() throws OHException {
cleanH2InMemoryDb();
}
@ParameterizedTest(name = "Test with AUTOMATICLOT_IN={0}, AUTOMATICLOT_OUT={1}, AUTOMATICLOTWARD_TOWARD={2}")
@MethodSource("automaticlot")
void testLotGets(boolean in, boolean out, boolean toward) throws Exception {
Expand Down Expand Up @@ -1107,7 +1104,7 @@ void testMgrValidateLotWithCostZero() {
Movement movement = movementIoOperationRepository.findById(code).orElse(null);
assertThat(movement).isNotNull();
Lot lot = movement.getLot();
lot.setCost(new BigDecimal(0.0));
lot.setCost(new BigDecimal("0.0"));
lotIoOperationRepository.saveAndFlush(lot);
List<Movement> movements = new ArrayList<>(1);
movements.add(movement);
Expand Down Expand Up @@ -1521,7 +1518,7 @@ void testIoUpdateMedicalStockTableEmptyTableWithNegativeQuantity() throws Except
method.invoke(medicalStockIoOperation, medical, newDate, quantity);
} catch (InvocationTargetException e) {
if (e.getCause() instanceof OHServiceException) {
throw (OHServiceException) e.getCause();
throw e.getCause();
} else {
throw e;
}
Expand Down

0 comments on commit a21fcc6

Please sign in to comment.