Java Code Examples for javax.management.openmbean.ArrayType#getDimension()
The following examples show how to use
javax.management.openmbean.ArrayType#getDimension() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TypeVersionMapper.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
private ArrayType<?> getVersionedArrayType(ArrayType<?> type, String version) throws OpenDataException { if (type.isPrimitiveArray()) { return type; } OpenType<?> ot = getVersionedType( type.getElementOpenType(), version ); if (ot instanceof SimpleType) { return new ArrayType<>((SimpleType<?>)ot, type.isPrimitiveArray()); } else { return new ArrayType<>(type.getDimension(), ot); } }
Example 2
Source File: LazyCompositeData.java From dragonwell8_jdk with GNU General Public License v2.0 | 5 votes |
protected static boolean isTypeMatched(ArrayType<?> type1, ArrayType<?> type2) { if (type1 == type2) return true; int dim1 = type1.getDimension(); int dim2 = type2.getDimension(); // check if the array dimensions are the same if (dim1 != dim2) return false; return isTypeMatched(type1.getElementOpenType(), type2.getElementOpenType()); }
Example 3
Source File: LazyCompositeData.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
protected static boolean isTypeMatched(ArrayType<?> type1, ArrayType<?> type2) { if (type1 == type2) return true; int dim1 = type1.getDimension(); int dim2 = type2.getDimension(); // check if the array dimensions are the same if (dim1 != dim2) return false; return isTypeMatched(type1.getElementOpenType(), type2.getElementOpenType()); }
Example 4
Source File: LazyCompositeData.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
protected static boolean isTypeMatched(ArrayType<?> type1, ArrayType<?> type2) { if (type1 == type2) return true; int dim1 = type1.getDimension(); int dim2 = type2.getDimension(); // check if the array dimensions are the same if (dim1 != dim2) return false; return isTypeMatched(type1.getElementOpenType(), type2.getElementOpenType()); }
Example 5
Source File: LazyCompositeData.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
protected static boolean isTypeMatched(ArrayType<?> type1, ArrayType<?> type2) { if (type1 == type2) return true; int dim1 = type1.getDimension(); int dim2 = type2.getDimension(); // check if the array dimensions are the same if (dim1 != dim2) return false; return isTypeMatched(type1.getElementOpenType(), type2.getElementOpenType()); }
Example 6
Source File: LazyCompositeData.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
protected static boolean isTypeMatched(ArrayType<?> type1, ArrayType<?> type2) { if (type1 == type2) return true; int dim1 = type1.getDimension(); int dim2 = type2.getDimension(); // check if the array dimensions are the same if (dim1 != dim2) return false; return isTypeMatched(type1.getElementOpenType(), type2.getElementOpenType()); }
Example 7
Source File: LazyCompositeData.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
protected static boolean isTypeMatched(ArrayType<?> type1, ArrayType<?> type2) { if (type1 == type2) return true; int dim1 = type1.getDimension(); int dim2 = type2.getDimension(); // check if the array dimensions are the same if (dim1 != dim2) return false; return isTypeMatched(type1.getElementOpenType(), type2.getElementOpenType()); }
Example 8
Source File: LazyCompositeData.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
protected static boolean isTypeMatched(ArrayType<?> type1, ArrayType<?> type2) { if (type1 == type2) return true; int dim1 = type1.getDimension(); int dim2 = type2.getDimension(); // check if the array dimensions are the same if (dim1 != dim2) return false; return isTypeMatched(type1.getElementOpenType(), type2.getElementOpenType()); }
Example 9
Source File: ArrayTypeTest.java From jdk8u-jdk with GNU General Public License v2.0 | 4 votes |
private static int checkGetters(ArrayType a, String className, String description, String typeName, boolean isArray, boolean isPrimitiveArray, int dimension) { int error = 0; if (a.getClassName().equals(className)) { System.out.println("\tArrayType.getClassName() OK!"); } else { System.out.println("\tArrayType.getClassName() KO!"); System.out.println("\t\t---> expecting " + className); error++; } if (a.getDescription().equals(description)) { System.out.println("\tArrayType.getDescription() OK!"); } else { System.out.println("\tArrayType.getDescription() KO!"); System.out.println("\t\t---> expecting " + description); error++; } if (a.getTypeName().equals(typeName)) { System.out.println("\tArrayType.getTypeName() OK!"); } else { System.out.println("\tArrayType.getTypeName() KO!"); System.out.println("\t\t---> expecting " + typeName); error++; } if (a.isArray() == isArray) { System.out.println("\tArrayType.isArray() OK!"); } else { System.out.println("\tArrayType.isArray() KO!"); System.out.println("\t\t---> expecting " + isArray); error++; } if (a.isPrimitiveArray() == isPrimitiveArray) { System.out.println("\tArrayType.isPrimitiveArray() OK!"); } else { System.out.println("\tArrayType.isPrimitiveArray() KO!"); System.out.println("\t\t---> expecting " + isPrimitiveArray); error++; } if (a.getDimension() == dimension) { System.out.println("\tArrayType.getDimension() OK!"); } else { System.out.println("\tArrayType.getDimension() KO!"); System.out.println("\t\t---> expecting " + dimension); error++; } if (error > 0) { System.out.println("Test failed!"); return 1; } else { System.out.println("Test passed!"); return 0; } }
Example 10
Source File: ArrayTypeTest.java From jdk8u_jdk with GNU General Public License v2.0 | 4 votes |
private static int checkGetters(ArrayType a, String className, String description, String typeName, boolean isArray, boolean isPrimitiveArray, int dimension) { int error = 0; if (a.getClassName().equals(className)) { System.out.println("\tArrayType.getClassName() OK!"); } else { System.out.println("\tArrayType.getClassName() KO!"); System.out.println("\t\t---> expecting " + className); error++; } if (a.getDescription().equals(description)) { System.out.println("\tArrayType.getDescription() OK!"); } else { System.out.println("\tArrayType.getDescription() KO!"); System.out.println("\t\t---> expecting " + description); error++; } if (a.getTypeName().equals(typeName)) { System.out.println("\tArrayType.getTypeName() OK!"); } else { System.out.println("\tArrayType.getTypeName() KO!"); System.out.println("\t\t---> expecting " + typeName); error++; } if (a.isArray() == isArray) { System.out.println("\tArrayType.isArray() OK!"); } else { System.out.println("\tArrayType.isArray() KO!"); System.out.println("\t\t---> expecting " + isArray); error++; } if (a.isPrimitiveArray() == isPrimitiveArray) { System.out.println("\tArrayType.isPrimitiveArray() OK!"); } else { System.out.println("\tArrayType.isPrimitiveArray() KO!"); System.out.println("\t\t---> expecting " + isPrimitiveArray); error++; } if (a.getDimension() == dimension) { System.out.println("\tArrayType.getDimension() OK!"); } else { System.out.println("\tArrayType.getDimension() KO!"); System.out.println("\t\t---> expecting " + dimension); error++; } if (error > 0) { System.out.println("Test failed!"); return 1; } else { System.out.println("Test passed!"); return 0; } }
Example 11
Source File: ArrayTypeTest.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
private static int checkGetters(ArrayType a, String className, String description, String typeName, boolean isArray, boolean isPrimitiveArray, int dimension) { int error = 0; if (a.getClassName().equals(className)) { System.out.println("\tArrayType.getClassName() OK!"); } else { System.out.println("\tArrayType.getClassName() KO!"); System.out.println("\t\t---> expecting " + className); error++; } if (a.getDescription().equals(description)) { System.out.println("\tArrayType.getDescription() OK!"); } else { System.out.println("\tArrayType.getDescription() KO!"); System.out.println("\t\t---> expecting " + description); error++; } if (a.getTypeName().equals(typeName)) { System.out.println("\tArrayType.getTypeName() OK!"); } else { System.out.println("\tArrayType.getTypeName() KO!"); System.out.println("\t\t---> expecting " + typeName); error++; } if (a.isArray() == isArray) { System.out.println("\tArrayType.isArray() OK!"); } else { System.out.println("\tArrayType.isArray() KO!"); System.out.println("\t\t---> expecting " + isArray); error++; } if (a.isPrimitiveArray() == isPrimitiveArray) { System.out.println("\tArrayType.isPrimitiveArray() OK!"); } else { System.out.println("\tArrayType.isPrimitiveArray() KO!"); System.out.println("\t\t---> expecting " + isPrimitiveArray); error++; } if (a.getDimension() == dimension) { System.out.println("\tArrayType.getDimension() OK!"); } else { System.out.println("\tArrayType.getDimension() KO!"); System.out.println("\t\t---> expecting " + dimension); error++; } if (error > 0) { System.out.println("Test failed!"); return 1; } else { System.out.println("Test passed!"); return 0; } }
Example 12
Source File: ArrayTypeTest.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 4 votes |
private static int checkGetters(ArrayType a, String className, String description, String typeName, boolean isArray, boolean isPrimitiveArray, int dimension) { int error = 0; if (a.getClassName().equals(className)) { System.out.println("\tArrayType.getClassName() OK!"); } else { System.out.println("\tArrayType.getClassName() KO!"); System.out.println("\t\t---> expecting " + className); error++; } if (a.getDescription().equals(description)) { System.out.println("\tArrayType.getDescription() OK!"); } else { System.out.println("\tArrayType.getDescription() KO!"); System.out.println("\t\t---> expecting " + description); error++; } if (a.getTypeName().equals(typeName)) { System.out.println("\tArrayType.getTypeName() OK!"); } else { System.out.println("\tArrayType.getTypeName() KO!"); System.out.println("\t\t---> expecting " + typeName); error++; } if (a.isArray() == isArray) { System.out.println("\tArrayType.isArray() OK!"); } else { System.out.println("\tArrayType.isArray() KO!"); System.out.println("\t\t---> expecting " + isArray); error++; } if (a.isPrimitiveArray() == isPrimitiveArray) { System.out.println("\tArrayType.isPrimitiveArray() OK!"); } else { System.out.println("\tArrayType.isPrimitiveArray() KO!"); System.out.println("\t\t---> expecting " + isPrimitiveArray); error++; } if (a.getDimension() == dimension) { System.out.println("\tArrayType.getDimension() OK!"); } else { System.out.println("\tArrayType.getDimension() KO!"); System.out.println("\t\t---> expecting " + dimension); error++; } if (error > 0) { System.out.println("Test failed!"); return 1; } else { System.out.println("Test passed!"); return 0; } }
Example 13
Source File: ArrayTypeTest.java From hottub with GNU General Public License v2.0 | 4 votes |
private static int checkGetters(ArrayType a, String className, String description, String typeName, boolean isArray, boolean isPrimitiveArray, int dimension) { int error = 0; if (a.getClassName().equals(className)) { System.out.println("\tArrayType.getClassName() OK!"); } else { System.out.println("\tArrayType.getClassName() KO!"); System.out.println("\t\t---> expecting " + className); error++; } if (a.getDescription().equals(description)) { System.out.println("\tArrayType.getDescription() OK!"); } else { System.out.println("\tArrayType.getDescription() KO!"); System.out.println("\t\t---> expecting " + description); error++; } if (a.getTypeName().equals(typeName)) { System.out.println("\tArrayType.getTypeName() OK!"); } else { System.out.println("\tArrayType.getTypeName() KO!"); System.out.println("\t\t---> expecting " + typeName); error++; } if (a.isArray() == isArray) { System.out.println("\tArrayType.isArray() OK!"); } else { System.out.println("\tArrayType.isArray() KO!"); System.out.println("\t\t---> expecting " + isArray); error++; } if (a.isPrimitiveArray() == isPrimitiveArray) { System.out.println("\tArrayType.isPrimitiveArray() OK!"); } else { System.out.println("\tArrayType.isPrimitiveArray() KO!"); System.out.println("\t\t---> expecting " + isPrimitiveArray); error++; } if (a.getDimension() == dimension) { System.out.println("\tArrayType.getDimension() OK!"); } else { System.out.println("\tArrayType.getDimension() KO!"); System.out.println("\t\t---> expecting " + dimension); error++; } if (error > 0) { System.out.println("Test failed!"); return 1; } else { System.out.println("Test passed!"); return 0; } }
Example 14
Source File: ArrayTypeTest.java From jdk8u-jdk with GNU General Public License v2.0 | 4 votes |
private static int checkGetters(ArrayType a, String className, String description, String typeName, boolean isArray, boolean isPrimitiveArray, int dimension) { int error = 0; if (a.getClassName().equals(className)) { System.out.println("\tArrayType.getClassName() OK!"); } else { System.out.println("\tArrayType.getClassName() KO!"); System.out.println("\t\t---> expecting " + className); error++; } if (a.getDescription().equals(description)) { System.out.println("\tArrayType.getDescription() OK!"); } else { System.out.println("\tArrayType.getDescription() KO!"); System.out.println("\t\t---> expecting " + description); error++; } if (a.getTypeName().equals(typeName)) { System.out.println("\tArrayType.getTypeName() OK!"); } else { System.out.println("\tArrayType.getTypeName() KO!"); System.out.println("\t\t---> expecting " + typeName); error++; } if (a.isArray() == isArray) { System.out.println("\tArrayType.isArray() OK!"); } else { System.out.println("\tArrayType.isArray() KO!"); System.out.println("\t\t---> expecting " + isArray); error++; } if (a.isPrimitiveArray() == isPrimitiveArray) { System.out.println("\tArrayType.isPrimitiveArray() OK!"); } else { System.out.println("\tArrayType.isPrimitiveArray() KO!"); System.out.println("\t\t---> expecting " + isPrimitiveArray); error++; } if (a.getDimension() == dimension) { System.out.println("\tArrayType.getDimension() OK!"); } else { System.out.println("\tArrayType.getDimension() KO!"); System.out.println("\t\t---> expecting " + dimension); error++; } if (error > 0) { System.out.println("Test failed!"); return 1; } else { System.out.println("Test passed!"); return 0; } }
Example 15
Source File: ArrayTypeTest.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
private static int checkGetters(ArrayType a, String className, String description, String typeName, boolean isArray, boolean isPrimitiveArray, int dimension) { int error = 0; if (a.getClassName().equals(className)) { System.out.println("\tArrayType.getClassName() OK!"); } else { System.out.println("\tArrayType.getClassName() KO!"); System.out.println("\t\t---> expecting " + className); error++; } if (a.getDescription().equals(description)) { System.out.println("\tArrayType.getDescription() OK!"); } else { System.out.println("\tArrayType.getDescription() KO!"); System.out.println("\t\t---> expecting " + description); error++; } if (a.getTypeName().equals(typeName)) { System.out.println("\tArrayType.getTypeName() OK!"); } else { System.out.println("\tArrayType.getTypeName() KO!"); System.out.println("\t\t---> expecting " + typeName); error++; } if (a.isArray() == isArray) { System.out.println("\tArrayType.isArray() OK!"); } else { System.out.println("\tArrayType.isArray() KO!"); System.out.println("\t\t---> expecting " + isArray); error++; } if (a.isPrimitiveArray() == isPrimitiveArray) { System.out.println("\tArrayType.isPrimitiveArray() OK!"); } else { System.out.println("\tArrayType.isPrimitiveArray() KO!"); System.out.println("\t\t---> expecting " + isPrimitiveArray); error++; } if (a.getDimension() == dimension) { System.out.println("\tArrayType.getDimension() OK!"); } else { System.out.println("\tArrayType.getDimension() KO!"); System.out.println("\t\t---> expecting " + dimension); error++; } if (error > 0) { System.out.println("Test failed!"); return 1; } else { System.out.println("Test passed!"); return 0; } }
Example 16
Source File: ArrayTypeTest.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
private static int checkGetters(ArrayType a, String className, String description, String typeName, boolean isArray, boolean isPrimitiveArray, int dimension) { int error = 0; if (a.getClassName().equals(className)) { System.out.println("\tArrayType.getClassName() OK!"); } else { System.out.println("\tArrayType.getClassName() KO!"); System.out.println("\t\t---> expecting " + className); error++; } if (a.getDescription().equals(description)) { System.out.println("\tArrayType.getDescription() OK!"); } else { System.out.println("\tArrayType.getDescription() KO!"); System.out.println("\t\t---> expecting " + description); error++; } if (a.getTypeName().equals(typeName)) { System.out.println("\tArrayType.getTypeName() OK!"); } else { System.out.println("\tArrayType.getTypeName() KO!"); System.out.println("\t\t---> expecting " + typeName); error++; } if (a.isArray() == isArray) { System.out.println("\tArrayType.isArray() OK!"); } else { System.out.println("\tArrayType.isArray() KO!"); System.out.println("\t\t---> expecting " + isArray); error++; } if (a.isPrimitiveArray() == isPrimitiveArray) { System.out.println("\tArrayType.isPrimitiveArray() OK!"); } else { System.out.println("\tArrayType.isPrimitiveArray() KO!"); System.out.println("\t\t---> expecting " + isPrimitiveArray); error++; } if (a.getDimension() == dimension) { System.out.println("\tArrayType.getDimension() OK!"); } else { System.out.println("\tArrayType.getDimension() KO!"); System.out.println("\t\t---> expecting " + dimension); error++; } if (error > 0) { System.out.println("Test failed!"); return 1; } else { System.out.println("Test passed!"); return 0; } }
Example 17
Source File: ArrayTypeTest.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
private static int checkGetters(ArrayType a, String className, String description, String typeName, boolean isArray, boolean isPrimitiveArray, int dimension) { int error = 0; if (a.getClassName().equals(className)) { System.out.println("\tArrayType.getClassName() OK!"); } else { System.out.println("\tArrayType.getClassName() KO!"); System.out.println("\t\t---> expecting " + className); error++; } if (a.getDescription().equals(description)) { System.out.println("\tArrayType.getDescription() OK!"); } else { System.out.println("\tArrayType.getDescription() KO!"); System.out.println("\t\t---> expecting " + description); error++; } if (a.getTypeName().equals(typeName)) { System.out.println("\tArrayType.getTypeName() OK!"); } else { System.out.println("\tArrayType.getTypeName() KO!"); System.out.println("\t\t---> expecting " + typeName); error++; } if (a.isArray() == isArray) { System.out.println("\tArrayType.isArray() OK!"); } else { System.out.println("\tArrayType.isArray() KO!"); System.out.println("\t\t---> expecting " + isArray); error++; } if (a.isPrimitiveArray() == isPrimitiveArray) { System.out.println("\tArrayType.isPrimitiveArray() OK!"); } else { System.out.println("\tArrayType.isPrimitiveArray() KO!"); System.out.println("\t\t---> expecting " + isPrimitiveArray); error++; } if (a.getDimension() == dimension) { System.out.println("\tArrayType.getDimension() OK!"); } else { System.out.println("\tArrayType.getDimension() KO!"); System.out.println("\t\t---> expecting " + dimension); error++; } if (error > 0) { System.out.println("Test failed!"); return 1; } else { System.out.println("Test passed!"); return 0; } }
Example 18
Source File: ArrayTypeTest.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
private static int checkGetters(ArrayType a, String className, String description, String typeName, boolean isArray, boolean isPrimitiveArray, int dimension) { int error = 0; if (a.getClassName().equals(className)) { System.out.println("\tArrayType.getClassName() OK!"); } else { System.out.println("\tArrayType.getClassName() KO!"); System.out.println("\t\t---> expecting " + className); error++; } if (a.getDescription().equals(description)) { System.out.println("\tArrayType.getDescription() OK!"); } else { System.out.println("\tArrayType.getDescription() KO!"); System.out.println("\t\t---> expecting " + description); error++; } if (a.getTypeName().equals(typeName)) { System.out.println("\tArrayType.getTypeName() OK!"); } else { System.out.println("\tArrayType.getTypeName() KO!"); System.out.println("\t\t---> expecting " + typeName); error++; } if (a.isArray() == isArray) { System.out.println("\tArrayType.isArray() OK!"); } else { System.out.println("\tArrayType.isArray() KO!"); System.out.println("\t\t---> expecting " + isArray); error++; } if (a.isPrimitiveArray() == isPrimitiveArray) { System.out.println("\tArrayType.isPrimitiveArray() OK!"); } else { System.out.println("\tArrayType.isPrimitiveArray() KO!"); System.out.println("\t\t---> expecting " + isPrimitiveArray); error++; } if (a.getDimension() == dimension) { System.out.println("\tArrayType.getDimension() OK!"); } else { System.out.println("\tArrayType.getDimension() KO!"); System.out.println("\t\t---> expecting " + dimension); error++; } if (error > 0) { System.out.println("Test failed!"); return 1; } else { System.out.println("Test passed!"); return 0; } }
Example 19
Source File: ArrayTypeTest.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
private static int checkGetters(ArrayType a, String className, String description, String typeName, boolean isArray, boolean isPrimitiveArray, int dimension) { int error = 0; if (a.getClassName().equals(className)) { System.out.println("\tArrayType.getClassName() OK!"); } else { System.out.println("\tArrayType.getClassName() KO!"); System.out.println("\t\t---> expecting " + className); error++; } if (a.getDescription().equals(description)) { System.out.println("\tArrayType.getDescription() OK!"); } else { System.out.println("\tArrayType.getDescription() KO!"); System.out.println("\t\t---> expecting " + description); error++; } if (a.getTypeName().equals(typeName)) { System.out.println("\tArrayType.getTypeName() OK!"); } else { System.out.println("\tArrayType.getTypeName() KO!"); System.out.println("\t\t---> expecting " + typeName); error++; } if (a.isArray() == isArray) { System.out.println("\tArrayType.isArray() OK!"); } else { System.out.println("\tArrayType.isArray() KO!"); System.out.println("\t\t---> expecting " + isArray); error++; } if (a.isPrimitiveArray() == isPrimitiveArray) { System.out.println("\tArrayType.isPrimitiveArray() OK!"); } else { System.out.println("\tArrayType.isPrimitiveArray() KO!"); System.out.println("\t\t---> expecting " + isPrimitiveArray); error++; } if (a.getDimension() == dimension) { System.out.println("\tArrayType.getDimension() OK!"); } else { System.out.println("\tArrayType.getDimension() KO!"); System.out.println("\t\t---> expecting " + dimension); error++; } if (error > 0) { System.out.println("Test failed!"); return 1; } else { System.out.println("Test passed!"); return 0; } }
Example 20
Source File: ArrayTypeTest.java From dragonwell8_jdk with GNU General Public License v2.0 | 4 votes |
private static int checkGetters(ArrayType a, String className, String description, String typeName, boolean isArray, boolean isPrimitiveArray, int dimension) { int error = 0; if (a.getClassName().equals(className)) { System.out.println("\tArrayType.getClassName() OK!"); } else { System.out.println("\tArrayType.getClassName() KO!"); System.out.println("\t\t---> expecting " + className); error++; } if (a.getDescription().equals(description)) { System.out.println("\tArrayType.getDescription() OK!"); } else { System.out.println("\tArrayType.getDescription() KO!"); System.out.println("\t\t---> expecting " + description); error++; } if (a.getTypeName().equals(typeName)) { System.out.println("\tArrayType.getTypeName() OK!"); } else { System.out.println("\tArrayType.getTypeName() KO!"); System.out.println("\t\t---> expecting " + typeName); error++; } if (a.isArray() == isArray) { System.out.println("\tArrayType.isArray() OK!"); } else { System.out.println("\tArrayType.isArray() KO!"); System.out.println("\t\t---> expecting " + isArray); error++; } if (a.isPrimitiveArray() == isPrimitiveArray) { System.out.println("\tArrayType.isPrimitiveArray() OK!"); } else { System.out.println("\tArrayType.isPrimitiveArray() KO!"); System.out.println("\t\t---> expecting " + isPrimitiveArray); error++; } if (a.getDimension() == dimension) { System.out.println("\tArrayType.getDimension() OK!"); } else { System.out.println("\tArrayType.getDimension() KO!"); System.out.println("\t\t---> expecting " + dimension); error++; } if (error > 0) { System.out.println("Test failed!"); return 1; } else { System.out.println("Test passed!"); return 0; } }