KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > compliance > standard > support > Torture


1 /*
2  * JBoss, the OpenSource J2EE webOS
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7
8 package test.compliance.standard.support;
9
10 /**
11  * @author <a HREF="mailto:trevor@protocool.com">Trevor Squires</a>.
12  */

13
14 public class Torture implements TortureMBean
15 {
16    public Torture()
17    {
18    }
19
20    public Torture(String[][] something)
21    {
22    }
23
24    Torture(int foo)
25    {
26    }
27
28    protected Torture(String wibble)
29    {
30    }
31
32    private Torture(double trouble)
33    {
34    }
35
36    public String getNiceString()
37    {
38       return null;
39    }
40
41    public void setNiceString(String nice)
42    {
43    }
44
45    public boolean isNiceBoolean()
46    {
47       return false;
48    }
49
50    public void setNiceBoolean(boolean nice)
51    {
52    }
53
54    public void setInt(int foo)
55    {
56    }
57
58    public void setIntArray(int[] foo)
59    {
60    }
61
62    public void setNestedIntArray(int[][][] foo)
63    {
64    }
65
66    public void setInteger(Integer foo)
67    {
68    }
69
70    public void setIntegerArray(Integer[] foo)
71    {
72    }
73
74    public void setNestedIntegerArray(Integer[][][] foo)
75    {
76    }
77
78    public int getMyinteger()
79    {
80       return 0;
81    }
82
83    public int[] getMyintegerArray()
84    {
85       return new int[0];
86    }
87
88    public int[][][] getMyNestedintegerArray()
89    {
90       return new int[0][][];
91    }
92
93    public Integer getMyInteger()
94    {
95       return null;
96    }
97
98    public Integer[] getMyIntegerArray()
99    {
100       return new Integer[0];
101    }
102
103    public Integer[][][] getMyNestedIntegerArray()
104    {
105       return new Integer[0][][];
106    }
107
108    // these should give an isIs right?
109
public boolean isready()
110    {
111       return false;
112    }
113
114    public Boolean isReady()
115    {
116       return null;
117    }
118
119    // these should be operations
120
public boolean ispeachy(int peachy)
121    {
122       return false;
123    }
124
125    public Boolean isPeachy(int peachy)
126    {
127       return null;
128    }
129
130    public String issuer()
131    {
132       return null;
133    }
134
135    public int settlement(String thing)
136    {
137       return 0;
138    }
139
140    public void setMulti(String foo, Integer bar)
141    {
142    }
143
144    public String getResult(String source)
145    {
146       return null;
147    }
148
149    public void setNothing()
150    {
151    }
152
153    public void getNothing()
154    {
155    }
156
157    // ok, we have an attribute called Something
158
// and an operation called getSomething...
159
public void setSomething(String something)
160    {
161    }
162
163    public void getSomething()
164    {
165    }
166
167    // ooh yesssss
168
public String[][] doSomethingCrazy(Object[] args, String[] foo, int[][][] goMental)
169    {
170       return new String[0][];
171    }
172 }
173
Popular Tags