From 2483c905d1a05fa27588cf8fead6b81846a7eb2c Mon Sep 17 00:00:00 2001 From: Seth Locke-Chappel <92889395+locke-chappel@users.noreply.github.com> Date: Wed, 19 Jul 2023 14:06:14 +0000 Subject: [PATCH] Push from SCM (2023-07-19) --- .../lc/oss/commons/jpa/AbstractSearchServiceTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/java/io/github/lc/oss/commons/jpa/AbstractSearchServiceTest.java b/src/test/java/io/github/lc/oss/commons/jpa/AbstractSearchServiceTest.java index efa24f8..a8580a1 100644 --- a/src/test/java/io/github/lc/oss/commons/jpa/AbstractSearchServiceTest.java +++ b/src/test/java/io/github/lc/oss/commons/jpa/AbstractSearchServiceTest.java @@ -58,7 +58,7 @@ public Void answer(InvocationOnMock invocation) throws Throwable { Assertions.assertEquals(0, invocation.getArguments().length); return null; } - }).when(query).orderBy((Order[]) ArgumentMatchers.any()); + }).when(query).orderBy(ArgumentMatchers.any(Order[].class)); this.service.orderBy(query, orders); } @@ -77,7 +77,7 @@ public Void answer(InvocationOnMock invocation) throws Throwable { Assertions.assertEquals(2, invocation.getArguments().length); return null; } - }).when(query).orderBy((Order[]) ArgumentMatchers.any()); + }).when(query).orderBy(ArgumentMatchers.any(Order[].class)); this.service.orderBy(query, orders); } @@ -146,7 +146,7 @@ public Void answer(InvocationOnMock invocation) throws Throwable { Assertions.assertEquals(0, invocation.getArguments().length); return null; } - }).when(query).where((Predicate[]) ArgumentMatchers.any()); + }).when(query).where(ArgumentMatchers.any(Predicate[].class)); this.service.where(query, wheres); } @@ -165,7 +165,7 @@ public Void answer(InvocationOnMock invocation) throws Throwable { Assertions.assertEquals(2, invocation.getArguments().length); return null; } - }).when(query).where((Predicate[]) ArgumentMatchers.any()); + }).when(query).where(ArgumentMatchers.any(Predicate[].class)); this.service.where(query, wheres); }