|
Groovy example source code file (Caller.groovy)
The Groovy Caller.groovy source codepackage groovy.mock.interceptor /** Helper class for testing. @author Dierk Koenig */ class Caller { int collaborateOne() { return new Collaborator().one() } int collaborateOne(int arg) { return new Collaborator().one( arg ) } int collaborateOne(int one, two) { return new Collaborator().one( one, two ) } int collaborateTwo() { return new Collaborator().two() } String collaborateJava() { return 'whatever'.toString() } String callFoo1() { return new Collaborator().foo } String callFoo2() { return new Collaborator().foo } void setBar1() { new Collaborator().bar = "bar1" return } void setBar2() { new Collaborator().setBar("bar2") return } } Other Groovy examples (source code examples)Here is a short list of links related to this Groovy Caller.groovy source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.