Skip to content

Commit

Permalink
Fix wrong method name
Browse files Browse the repository at this point in the history
  • Loading branch information
Koboo committed Dec 24, 2024
1 parent 45d79be commit 85859b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public interface CustomerRepository extends Repository<Customer, UUID>, 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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

import static org.junit.jupiter.api.Assertions.*;

public class CustomerFindFirstByStatusTest extends CustomerRepositoryTest {
public class CustomerFindFirstByTransformedFieldNameTest extends CustomerRepositoryTest {

@Test
@Order(1)
Expand All @@ -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());
Expand Down

0 comments on commit 85859b8

Please sign in to comment.