1 package com.mockobjects.visualage; 2 import com.ibm.ivj.util.base.*; 3 import com.ibm.ivj.util.builders.*; 4 import junit.framework.*; 5 import java.util.*;public class MockMethodBuilder implements MethodBuilder { 6 private SourceVerifier mySourceVerifier; 7 private String myBuilderName; 8 String myExistingSource; 9 10 11 12 public MockMethodBuilder(SourceVerifier verfier, String builderName) { 13 super(); 14 15 mySourceVerifier = verfier; 16 myBuilderName = builderName; 17 } 18 19 20 21 public MockMethodBuilder(String source) { 22 myExistingSource = source; 23 } 24 25 26 27 30 public void addMethodBuilder(MethodBuilder arg1) {} 31 32 33 34 37 public boolean checkMethodExists(MethodBuilder arg1) throws IvjException { 38 return false; 39 } 40 41 42 43 46 public String getBuilderName() { 47 return myBuilderName; 48 } 49 50 51 52 55 public com.ibm.ivj.util.builders.MethodBuilder[] getExistingMethods() throws IvjException { 56 return null; 57 } 58 59 60 61 64 public String getExistingMethodSource(MethodBuilder builder) throws IvjException { 65 return ((MockMethodBuilder)builder).myExistingSource; 66 } 67 68 69 70 73 public String getExistingSource() throws IvjException { 74 return null; 75 } 76 77 78 79 82 public java.util.Enumeration getMethodBuilders() { 83 return null; 84 } 85 86 87 88 91 public String getSource() { 92 return null; 93 } 94 95 96 97 100 public boolean isMarkedForDeletion() { 101 return false; 102 } 103 104 105 106 109 public void markForDeletion(boolean arg1) {} 110 111 112 113 116 public void removeAllMethodBuilders() {} 117 118 119 120 123 public void removeMethodBuilder(MethodBuilder arg1) {} 124 125 126 127 130 public void saveMerge() throws IvjException {} 131 132 133 134 137 public void setSource(String source) { 138 mySourceVerifier.setSource(myBuilderName,source); 139 } 140 } | Popular Tags |