01: package org.hanseltest.stack;
02:
03: /**
04: * Example methods for stack test.
05: * @author Niklas Mehner.
06: */
07: public class StackExample {
08:
09: /**
10: * Returns a new Integer(5) object.
11: * @return new Integer(5)
12: */
13: public static Object newObject() {
14: return new Integer(5);
15: }
16:
17: public Object[] createObjectArray() {
18: return new Object[2];
19: }
20:
21: public long[] createLongArray() {
22: return new long[2];
23: }
24:
25: public long[][] createMultiLongArray() {
26: return new long[2][3];
27: }
28:
29: public Object[][] createMultiObjectArray() {
30: return new Object[2][3];
31: }
32:
33: public long[][] createPartialLongArray() {
34: return new long[2][];
35: }
36:
37: public Object[][] createPartialObjectArray() {
38: return new Object[2][];
39: }
40:
41: public long[][][] createMultiPartialLongArray() {
42: return new long[2][3][];
43: }
44:
45: public Object[][][] createMultiPartialObjectArray() {
46: return new Object[2][3][];
47: }
48:
49: public long[][][] createPartialMultiLongArray() {
50: return new long[2][][];
51: }
52:
53: public Object[][][] createPartialMultiObjectArray() {
54: return new Object[2][][];
55: }
56: }
|