From 85859b8654c9fb21ad3c97e00d47caea35a25db0 Mon Sep 17 00:00:00 2001 From: Koboo <14143908+Koboo@users.noreply.github.com> Date: Tue, 24 Dec 2024 12:04:23 +0100 Subject: [PATCH] Fix wrong method name --- .../java/eu/koboo/en2do/test/customer/CustomerRepository.java | 2 +- ....java => CustomerFindFirstByTransformedFieldNameTest.java} | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename src/test/java/eu/koboo/en2do/test/customer/dynamic/{CustomerFindFirstByStatusTest.java => CustomerFindFirstByTransformedFieldNameTest.java} (86%) diff --git a/src/test/java/eu/koboo/en2do/test/customer/CustomerRepository.java b/src/test/java/eu/koboo/en2do/test/customer/CustomerRepository.java index febdb131..82191a24 100644 --- a/src/test/java/eu/koboo/en2do/test/customer/CustomerRepository.java +++ b/src/test/java/eu/koboo/en2do/test/customer/CustomerRepository.java @@ -93,7 +93,7 @@ public interface CustomerRepository extends Repository, AsyncRep boolean updateFieldsByFirstName(String firstName, UpdateBatch updateBatch); - Customer findFirstByStatus(String status); + Customer findFirstByTransformedFieldName(String status); @NestedField(key = "KeyToIdentify", query = "order.orderText") Customer findFirstByUniqueIdAndKeyToIdentify(UUID uniqueId, String orderText); diff --git a/src/test/java/eu/koboo/en2do/test/customer/dynamic/CustomerFindFirstByStatusTest.java b/src/test/java/eu/koboo/en2do/test/customer/dynamic/CustomerFindFirstByTransformedFieldNameTest.java similarity index 86% rename from src/test/java/eu/koboo/en2do/test/customer/dynamic/CustomerFindFirstByStatusTest.java rename to src/test/java/eu/koboo/en2do/test/customer/dynamic/CustomerFindFirstByTransformedFieldNameTest.java index 1c52bbc8..d0a8fdae 100644 --- a/src/test/java/eu/koboo/en2do/test/customer/dynamic/CustomerFindFirstByStatusTest.java +++ b/src/test/java/eu/koboo/en2do/test/customer/dynamic/CustomerFindFirstByTransformedFieldNameTest.java @@ -10,7 +10,7 @@ import static org.junit.jupiter.api.Assertions.*; -public class CustomerFindFirstByStatusTest extends CustomerRepositoryTest { +public class CustomerFindFirstByTransformedFieldNameTest extends CustomerRepositoryTest { @Test @Order(1) @@ -33,7 +33,7 @@ public void saveCustomer() { @Test @Order(3) public void operationTest() { - Customer customer = repository.findFirstByStatus("StatusName"); + Customer customer = repository.findFirstByTransformedFieldName("StatusName"); assertNotNull(customer); assertEquals(Const.CUSTOMER_ID, customer.getCustomerId()); assertEquals("StatusName", customer.getTransformedFieldName());