I have two integration tests. I'm trying to use a dynamic finder in both on a class called RoutingLane. The second test fails with the MissingMethodException.
Failure: testMockRouteLane2(compliance.processor.services.CalculationServiceTests)
groovy.lang.MissingMethodException: No signature of method: RoutingLane.methodMissing() is applicable for argument types: () values: []
The mock functions are:
void testMockRouteLane() {
def routingLaneMock = RoutingLane.findAllByMot('TL')
assert routingLaneMock != null
assert routingLaneMock.size() >= 1
}
void testMockRouteLane2() {
def routingLaneMock = RoutingLane.findAllByMot('TL')
assert routingLaneMock != null
assert routingLaneMock.size() >= 1
}
What could be the cause?