diff --git a/data-processor/src/test/groovy/io/micronaut/data/processor/sql/BuildQuerySpec.groovy b/data-processor/src/test/groovy/io/micronaut/data/processor/sql/BuildQuerySpec.groovy index 12cbe588275..d7dcdfb9a93 100644 --- a/data-processor/src/test/groovy/io/micronaut/data/processor/sql/BuildQuerySpec.groovy +++ b/data-processor/src/test/groovy/io/micronaut/data/processor/sql/BuildQuerySpec.groovy @@ -1365,9 +1365,9 @@ interface AccountRepository extends GenericRepository { } """) def findOneByNameMethod = repository.getRequiredMethod("findOneByName", String) - def findAll__withAllTenantsMethod = repository.findPossibleMethods("findAll__withAllTenants").findFirst().get() - def findAll__withTenantBar = repository.findPossibleMethods("findAll__withTenantBar").findFirst().get() - def findAll__withTenantFoo = repository.findPossibleMethods("findAll__withTenantFoo").findFirst().get() + def findAll__withAllTenantsMethod = repository.findPossibleMethods("findAll\$withAllTenants").findFirst().get() + def findAll__withTenantBar = repository.findPossibleMethods("findAll\$withTenantBar").findFirst().get() + def findAll__withTenantFoo = repository.findPossibleMethods("findAll\$withTenantFoo").findFirst().get() expect: getQuery(repository.getRequiredMethod("findAll")) == 'SELECT account_.`id`,account_.`name`,account_.`tenancy` FROM `account` account_ WHERE (account_.`tenancy` = ?)' getQuery(findOneByNameMethod) == 'SELECT account_.`id`,account_.`name`,account_.`tenancy` FROM `account` account_ WHERE (account_.`name` = ? AND account_.`tenancy` = ?)'