From 09b3e72884864b090194166966a302fb78416b63 Mon Sep 17 00:00:00 2001 From: tsznaj Date: Tue, 9 Jul 2024 09:10:28 +0200 Subject: [PATCH] OLMIS-7952: Fixed indentations. --- ...dStockOnHandRepositoryIntegrationTest.java | 54 +++++++++---------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/src/integration-test/java/org/openlmis/stockmanagement/repository/CalculatedStockOnHandRepositoryIntegrationTest.java b/src/integration-test/java/org/openlmis/stockmanagement/repository/CalculatedStockOnHandRepositoryIntegrationTest.java index 4c04c299..de20197e 100644 --- a/src/integration-test/java/org/openlmis/stockmanagement/repository/CalculatedStockOnHandRepositoryIntegrationTest.java +++ b/src/integration-test/java/org/openlmis/stockmanagement/repository/CalculatedStockOnHandRepositoryIntegrationTest.java @@ -60,18 +60,18 @@ CalculatedStockOnHand generateInstance() { private CalculatedStockOnHand generateInstance(UUID facility, UUID program, UUID product, UUID lot) { StockEvent event = new StockEventDataBuilder() - .withoutId() - .withFacility(facility) - .withProgram(program) - .build(); + .withoutId() + .withFacility(facility) + .withProgram(program) + .build(); event = stockEventsRepository.save(event); StockCard stockCard = new StockCardDataBuilder(event) - .withoutId() + .withoutId() .withOrderableId(product) .withLotId(lot) - .build(); + .build(); stockCard = stockCardRepository.save(stockCard); @@ -96,42 +96,42 @@ public void shouldReturnCalculatedStockOnHandsWhenNoStartDateProvided() { calculatedStockOnHandRepository.save(calculatedStockOnHand3); List resultList1 = calculatedStockOnHandRepository - .findByStockCardIdInAndOccurredDateLessThanEqual( - asList(calculatedStockOnHand1.getStockCard().getId(), - calculatedStockOnHand2.getStockCard().getId(), - calculatedStockOnHand3.getStockCard().getId()), - LocalDate.of(2010, 11, 1)); + .findByStockCardIdInAndOccurredDateLessThanEqual( + asList(calculatedStockOnHand1.getStockCard().getId(), + calculatedStockOnHand2.getStockCard().getId(), + calculatedStockOnHand3.getStockCard().getId()), + LocalDate.of(2010, 11, 1)); assertThat(resultList1, hasItems(calculatedStockOnHand1, - calculatedStockOnHand2, calculatedStockOnHand3)); + calculatedStockOnHand2, calculatedStockOnHand3)); assertEquals(resultList1.size(), 3); List resultList2 = calculatedStockOnHandRepository - .findByStockCardIdInAndOccurredDateLessThanEqual( - asList(calculatedStockOnHand1.getStockCard().getId(), - calculatedStockOnHand2.getStockCard().getId(), - calculatedStockOnHand3.getStockCard().getId()), - LocalDate.of(2010, 9, 15)); + .findByStockCardIdInAndOccurredDateLessThanEqual( + asList(calculatedStockOnHand1.getStockCard().getId(), + calculatedStockOnHand2.getStockCard().getId(), + calculatedStockOnHand3.getStockCard().getId()), + LocalDate.of(2010, 9, 15)); assertThat(resultList2, hasItems(calculatedStockOnHand1, calculatedStockOnHand2)); assertEquals(resultList2.size(), 2); List resultList3 = calculatedStockOnHandRepository - .findByStockCardIdInAndOccurredDateLessThanEqual( - asList(calculatedStockOnHand1.getStockCard().getId(), - calculatedStockOnHand2.getStockCard().getId(), - calculatedStockOnHand3.getStockCard().getId()), - LocalDate.of(2010, 8, 15)); + .findByStockCardIdInAndOccurredDateLessThanEqual( + asList(calculatedStockOnHand1.getStockCard().getId(), + calculatedStockOnHand2.getStockCard().getId(), + calculatedStockOnHand3.getStockCard().getId()), + LocalDate.of(2010, 8, 15)); assertThat(resultList3, hasItems(calculatedStockOnHand1)); assertEquals(resultList3.size(), 1); List resultList4 = calculatedStockOnHandRepository - .findByStockCardIdInAndOccurredDateLessThanEqual( - asList(calculatedStockOnHand1.getStockCard().getId(), - calculatedStockOnHand2.getStockCard().getId(), - calculatedStockOnHand3.getStockCard().getId()), - LocalDate.of(2010, 4, 15)); + .findByStockCardIdInAndOccurredDateLessThanEqual( + asList(calculatedStockOnHand1.getStockCard().getId(), + calculatedStockOnHand2.getStockCard().getId(), + calculatedStockOnHand3.getStockCard().getId()), + LocalDate.of(2010, 4, 15)); assertTrue(resultList4.isEmpty()); assertEquals(resultList4.size(), 0);