001: /*
002: * JBoss, Home of Professional Open Source.
003: * Copyright 2006, Red Hat Middleware LLC, and individual contributors
004: * as indicated by the @author tags. See the copyright.txt file in the
005: * distribution for a full listing of individual contributors.
006: *
007: * This is free software; you can redistribute it and/or modify it
008: * under the terms of the GNU Lesser General Public License as
009: * published by the Free Software Foundation; either version 2.1 of
010: * the License, or (at your option) any later version.
011: *
012: * This software is distributed in the hope that it will be useful,
013: * but WITHOUT ANY WARRANTY; without even the implied warranty of
014: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
015: * Lesser General Public License for more details.
016: *
017: * You should have received a copy of the GNU Lesser General Public
018: * License along with this software; if not, write to the Free
019: * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
020: * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
021: */
022: package test.compliance.standard.support;
023:
024: /**
025: * @author <a href="mailto:trevor@protocool.com">Trevor Squires</a>.
026: */
027:
028: public class Torture implements TortureMBean {
029: public Torture() {
030: }
031:
032: public Torture(String[][] something) {
033: }
034:
035: Torture(int foo) {
036: }
037:
038: protected Torture(String wibble) {
039: }
040:
041: private Torture(double trouble) {
042: }
043:
044: public String getNiceString() {
045: return null;
046: }
047:
048: public void setNiceString(String nice) {
049: }
050:
051: public boolean isNiceBoolean() {
052: return false;
053: }
054:
055: public void setNiceBoolean(boolean nice) {
056: }
057:
058: public void setInt(int foo) {
059: }
060:
061: public void setIntArray(int[] foo) {
062: }
063:
064: public void setNestedIntArray(int[][][] foo) {
065: }
066:
067: public void setInteger(Integer foo) {
068: }
069:
070: public void setIntegerArray(Integer[] foo) {
071: }
072:
073: public void setNestedIntegerArray(Integer[][][] foo) {
074: }
075:
076: public int getMyinteger() {
077: return 0;
078: }
079:
080: public int[] getMyintegerArray() {
081: return new int[0];
082: }
083:
084: public int[][][] getMyNestedintegerArray() {
085: return new int[0][][];
086: }
087:
088: public Integer getMyInteger() {
089: return null;
090: }
091:
092: public Integer[] getMyIntegerArray() {
093: return new Integer[0];
094: }
095:
096: public Integer[][][] getMyNestedIntegerArray() {
097: return new Integer[0][][];
098: }
099:
100: // these should give an isIs right?
101: public boolean isready() {
102: return false;
103: }
104:
105: public Boolean isReady() {
106: return null;
107: }
108:
109: // these should be operations
110: public boolean ispeachy(int peachy) {
111: return false;
112: }
113:
114: public Boolean isPeachy(int peachy) {
115: return null;
116: }
117:
118: public String issuer() {
119: return null;
120: }
121:
122: public int settlement(String thing) {
123: return 0;
124: }
125:
126: public void setMulti(String foo, Integer bar) {
127: }
128:
129: public String getResult(String source) {
130: return null;
131: }
132:
133: public void setNothing() {
134: }
135:
136: public void getNothing() {
137: }
138:
139: // ok, we have an attribute called Something
140: // and an operation called getSomething...
141: public void setSomething(String something) {
142: }
143:
144: public void getSomething() {
145: }
146:
147: // ooh yesssss
148: public String[][] doSomethingCrazy(Object[] args, String[] foo,
149: int[][][] goMental) {
150: return new String[0][];
151: }
152: }
|