Skip to content

Instantly share code, notes, and snippets.

View nhajratw's full-sized avatar

Nayan Hajratwala nhajratw

View GitHub Profile
Please excuse my embarrassing Groovy code. This is a simplified cuke4duke Step definition.
GroceryService is a java class that makes a call to repository.findByNamedQueryAndNamedParam("Store.by_zip_code_with_active_promotions", "zip", "48176")
The error i'm getting is:
org.codehaus.groovy.runtime.InvokerInvocationException: groovy.lang.MissingMethodException: No signature of method: groovy.mock.interceptor.MockFor.findByNamedQueryAndNamedParam() is applicable for argument types: (java.lang.String, java.lang.String, java.lang.String) values: [Store.by_zip_code_with_active_promotions, zip, 48176] (NativeException)
When(~"the service is invoked") {
store = new Store()
SICP 1.2
Fork me. Solve me.
====
-71/300 <=
(/ (+ 5 4 (- 2 (- 3 (+ 6 (/ 1 5)))))
(* 3 (- 6 2) (- 2 7)))