1 46 47 package groovy.bugs; 48 49 import java.util.Arrays ; 50 import java.util.Iterator ; 51 52 import groovy.util.GroovyTestCase; 53 54 60 public class TestSupport extends GroovyTestCase { 61 62 public String [] getMockArguments() { 63 return new String [] { "a", "b", "c" }; 64 } 65 66 public static String mockStaticMethod() { 67 return "cheese"; 68 } 69 70 public static String getMockStaticProperty() { 71 return "cheese"; 72 } 73 74 public static int[] getIntArray() { 75 return new int[] { 1, 2, 3, 4, 5 }; 76 } 77 78 public Iterator iterator() { 79 System.out.println("Calling custom iterator() method for " + this); 80 81 return Arrays.asList(getMockArguments()).iterator(); 82 } 83 } 84 | Popular Tags |