Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package org.folio.dataexp.service;

import static org.assertj.core.api.Assertions.assertThat;

import org.folio.dataexp.TestMate;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.CsvSource;

class CommonExportStatisticTest {

@ParameterizedTest
@TestMate(name = "TestMate-087664f415be35b9612c6652f53b9515")
@CsvSource({"0, 5, 5", "5, 10, 15", "10, 0, 10"})
void incrementDuplicatedUuidWithCountShouldIncreaseAmountByGivenValue(
int initialAmount, int inputCount, int expectedFinalAmount) {
// Given
var commonExportStatistic = new CommonExportStatistic();
if (initialAmount > 0) {
commonExportStatistic.incrementDuplicatedUuid(initialAmount);
}
// When
commonExportStatistic.incrementDuplicatedUuid(inputCount);
// Then
assertThat(commonExportStatistic.getDuplicatedUuidAmount()).isEqualTo(expectedFinalAmount);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,7 @@ void testGetReferenceDataForTransformationFieldsShouldReturnPopulatedWrapper() {

@Test
@TestMate(name = "TestMate-4ab841877ce35b1af0e52bb7e5d978db")
void
testGetRefDataForTransformFieldsWhenServiceReturnsEmptyShouldReturnEmptyMapsInWrapper() {
void testGetRefDataForTransformFieldsWhenServiceReturnsEmptyShouldReturnEmptyMapsInWrapper() {
// Given
var tenantId = "member_tenant";
Map<String, JsonObjectWrapper> emptyMap = Collections.emptyMap();
Expand Down
Loading