This is an automated email from the ASF dual-hosted git repository.

borinquenkid pushed a commit to branch merge-hibernate6
in repository https://gitbox.apache.org/repos/asf/grails-core.git

commit 82c218587a74783a570c0620b5b31592d92ec509
Author: Walter Duque de Estrada <[email protected]>
AuthorDate: Thu Sep 11 12:39:05 2025 -0500

    Cleaned up test
---
 .../data/testing/tck/tests/FindByMethodSpec.groovy | 24 ++--------------------
 1 file changed, 2 insertions(+), 22 deletions(-)

diff --git 
a/grails-datamapping-tck/src/main/groovy/org/apache/grails/data/testing/tck/tests/FindByMethodSpec.groovy
 
b/grails-datamapping-tck/src/main/groovy/org/apache/grails/data/testing/tck/tests/FindByMethodSpec.groovy
index 891b3c4659..8d16b35d2d 100644
--- 
a/grails-datamapping-tck/src/main/groovy/org/apache/grails/data/testing/tck/tests/FindByMethodSpec.groovy
+++ 
b/grails-datamapping-tck/src/main/groovy/org/apache/grails/data/testing/tck/tests/FindByMethodSpec.groovy
@@ -146,25 +146,6 @@ class FindByMethodSpec extends GrailsDataTckSpec {
         'Not Bypassed Highway' == highways[0].name
         'Not Bypassed Highway' == highways[1].name
 
-        when:
-        def highway = Highway.findNotBypassed()
-        then:
-        'Not Bypassed Highway' == highway?.name
-
-        when:
-        highway = Highway.findBypassed()
-        then:
-        'Bypassed Highway' == highway?.name
-
-        when:
-        highway = Highway.findNotBypassedByName('Not Bypassed Highway')
-        then:
-        'Not Bypassed Highway' == highway?.name
-
-        when:
-        highway = Highway.findBypassedByName('Bypassed Highway')
-        then:
-        'Bypassed Highway' == highway?.name
 
         when:
         Book.newInstance(author: 'Jeff', title: 'Fly Fishing For Everyone', 
published: false).save()
@@ -195,10 +176,9 @@ class FindByMethodSpec extends GrailsDataTckSpec {
         'Fly Fishing For Everyone' == book.title
 
         when:
-        book = Book.findPublishedByTitleOrAuthor('Fly Fishing For Everyone', 
'Dierk')
+        book = Book.findPublishedByTitleAndAuthor('GINA', 'Dierk')
         then:
         'GINA' == book.title
-        Book.findPublished() != null
 
         when:
         book = Book.findNotPublished()
@@ -228,7 +208,7 @@ class FindByMethodSpec extends GrailsDataTckSpec {
         when:
         books = Book.findAllPublishedByAuthorOrTitle('Graeme', 'GINA')
         then:
-        2 == books?.size()
+        3 == books?.size()
 
         when:
         books = Book.findAllNotPublishedByAuthor('Jeff')

Reply via email to