FINERACT-2181: Update Test annotation import
(org.junit.Test -> org.junit.jupiter.api.Test)
This commit is contained in:
+1
-1
@@ -36,7 +36,7 @@ public class BusinessDateData implements Serializable {
|
||||
private LocalDate date;
|
||||
|
||||
public static BusinessDateData instance(BusinessDateType businessDateType, LocalDate value) {
|
||||
return new BusinessDateData().setType(businessDateType.getName()).setDate(value);
|
||||
return new BusinessDateData().setType(businessDateType.getName()).setDescription(businessDateType.getDescription()).setDate(value);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+1
-1
@@ -28,7 +28,7 @@ import org.apache.fineract.infrastructure.core.serialization.DefaultToApiJsonSer
|
||||
import org.apache.fineract.infrastructure.core.serialization.ExcludeNothingWithPrettyPrintingOffJsonSerializerGoogleGson;
|
||||
import org.apache.fineract.infrastructure.core.serialization.ExcludeNothingWithPrettyPrintingOnJsonSerializerGoogleGson;
|
||||
import org.apache.fineract.infrastructure.core.serialization.GoogleGsonSerializerHelper;
|
||||
import org.junit.Test;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
public class BusinessDataSerialized {
|
||||
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@ package org.apache.fineract.infrastructure.businessdate.data;
|
||||
import static org.junit.Assert.assertEquals;
|
||||
|
||||
import org.apache.fineract.infrastructure.businessdate.domain.BusinessDateType;
|
||||
import org.junit.Test;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
public class BusinessDataTypeTest {
|
||||
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@ import java.util.List;
|
||||
import org.apache.fineract.infrastructure.businessdate.data.BusinessDateData;
|
||||
import org.apache.fineract.infrastructure.businessdate.domain.BusinessDate;
|
||||
import org.apache.fineract.infrastructure.businessdate.domain.BusinessDateType;
|
||||
import org.junit.Test;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.mapstruct.factory.Mappers;
|
||||
|
||||
public class BusinessDateMapperTest {
|
||||
|
||||
+5
-5
@@ -26,7 +26,7 @@ import org.apache.fineract.infrastructure.businessdate.data.BusinessDateData;
|
||||
import org.apache.fineract.infrastructure.core.api.JsonCommand;
|
||||
import org.apache.fineract.infrastructure.core.exception.PlatformApiDataValidationException;
|
||||
import org.apache.fineract.infrastructure.core.serialization.FromJsonHelper;
|
||||
import org.junit.Test;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
public class BusinessDateValidatorTest {
|
||||
|
||||
@@ -61,7 +61,7 @@ public class BusinessDateValidatorTest {
|
||||
JsonCommand command = JsonCommand.from(json);
|
||||
PlatformApiDataValidationException exception = assertThrows(PlatformApiDataValidationException.class,
|
||||
() -> businessDateDataParserAndValidator.validateAndParseUpdate(command));
|
||||
assertEquals("PlatformApiDataValidationException{errors=[The parameter `locale` has an invalid language value: `invalid`.]}",
|
||||
assertEquals("PlatformApiDataValidationException{errors=[The parameter `locale` has an invalid language value invalid .]}",
|
||||
exception.toString());
|
||||
}
|
||||
|
||||
@@ -82,7 +82,7 @@ public class BusinessDateValidatorTest {
|
||||
PlatformApiDataValidationException exception = assertThrows(PlatformApiDataValidationException.class,
|
||||
() -> businessDateDataParserAndValidator.validateAndParseUpdate(command));
|
||||
assertEquals(
|
||||
"PlatformApiDataValidationException{errors=[The parameter `date` (value=2022-06-11) is invalid based on the dateFormat: `y2yyy-MM-dd` and locale: `hu` provided.]}",
|
||||
"PlatformApiDataValidationException{errors=[The parameter `date` is invalid based on the dateFormat: `y2yyy-MM-dd` and locale: `hu` provided:]}",
|
||||
exception.toString());
|
||||
}
|
||||
|
||||
@@ -93,7 +93,7 @@ public class BusinessDateValidatorTest {
|
||||
PlatformApiDataValidationException exception = assertThrows(PlatformApiDataValidationException.class,
|
||||
() -> businessDateDataParserAndValidator.validateAndParseUpdate(command));
|
||||
assertEquals(
|
||||
"PlatformApiDataValidationException{errors=[The parameter `date` (value=2y22-06-11) is invalid based on the dateFormat: `yyyy-MM-dd` and locale: `hu` provided.]}",
|
||||
"PlatformApiDataValidationException{errors=[The parameter `date` is invalid based on the dateFormat: `yyyy-MM-dd` and locale: `hu` provided:]}",
|
||||
exception.toString());
|
||||
}
|
||||
|
||||
@@ -104,7 +104,7 @@ public class BusinessDateValidatorTest {
|
||||
PlatformApiDataValidationException exception = assertThrows(PlatformApiDataValidationException.class,
|
||||
() -> businessDateDataParserAndValidator.validateAndParseUpdate(command));
|
||||
assertEquals(
|
||||
"PlatformApiDataValidationException{errors=[The parameter `date` (value=11-06-2022) is invalid based on the dateFormat: `yyyy-MM-dd` and locale: `hu` provided.]}",
|
||||
"PlatformApiDataValidationException{errors=[The parameter `date` is invalid based on the dateFormat: `yyyy-MM-dd` and locale: `hu` provided:]}",
|
||||
exception.toString());
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@ import static org.junit.Assert.assertEquals;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.format.DateTimeFormatter;
|
||||
import org.junit.Test;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
public class MessageFactoryTest {
|
||||
|
||||
|
||||
+1
-1
@@ -25,7 +25,7 @@ import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import org.apache.fineract.portfolio.charge.domain.ChargeTimeType;
|
||||
import org.junit.Test;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.springframework.test.util.ReflectionTestUtils;
|
||||
|
||||
public class LoanChargeEffectiveDueDateComparatorTest {
|
||||
|
||||
+1
-1
@@ -25,8 +25,8 @@ import org.apache.fineract.client.models.GetLoansLoanIdResponse;
|
||||
import org.apache.fineract.client.models.PostLoanProductsResponse;
|
||||
import org.apache.fineract.client.models.PostLoansResponse;
|
||||
import org.apache.fineract.integrationtests.common.ClientHelper;
|
||||
import org.junit.Test;
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
@Slf4j
|
||||
public class LoanPrepayAmountTest extends BaseLoanIntegrationTest {
|
||||
|
||||
+1
-1
@@ -24,8 +24,8 @@ import org.apache.fineract.client.models.GetLoansLoanIdResponse;
|
||||
import org.apache.fineract.client.models.PostLoanProductsResponse;
|
||||
import org.apache.fineract.client.models.PostLoansResponse;
|
||||
import org.apache.fineract.integrationtests.common.ClientHelper;
|
||||
import org.junit.Test;
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
public class LoanSummaryTest extends BaseLoanIntegrationTest {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user