You are viewing a plain text version of this content. The canonical link for it is here.
Posted to kato-commits@incubator.apache.org by mo...@apache.org on 2009/11/23 15:54:15 UTC

svn commit: r883384 [27/47] - in /incubator/kato/trunk/org.apache.kato: ./ kato.anttasks/src/main/java/org/apache/kato/anttasks/ kato.anttasks/src/main/java/org/apache/kato/anttasks/sitebuilder/ kato.anttasks/src/main/java/org/apache/kato/anttasks/tck/...

Modified: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/javaruntime/TestJavaClass_getName.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/javaruntime/TestJavaClass_getName.java?rev=883384&r1=883383&r2=883384&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/javaruntime/TestJavaClass_getName.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/javaruntime/TestJavaClass_getName.java Mon Nov 23 15:53:48 2009
@@ -1,84 +1,84 @@
-/*******************************************************************************
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * 
- *   http://www.apache.org/licenses/LICENSE-2.0
- * 
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- ******************************************************************************/
-package org.apache.kato.tck.tests.javaruntime;
-
-import java.util.Iterator;
-
-import javax.tools.diagnostics.image.CorruptData;
-import javax.tools.diagnostics.image.CorruptDataException;
-import javax.tools.diagnostics.runtime.java.JavaClass;
-import javax.tools.diagnostics.runtime.java.JavaHeap;
-import javax.tools.diagnostics.runtime.java.JavaObject;
-import javax.tools.diagnostics.runtime.java.JavaRuntime;
-
-import org.apache.kato.tck.harness.TCKJavaRuntimeTestcase;
-import org.apache.kato.tck.scenario142.javaruntime.SetupJavaClass_getName;
-
-
-public class TestJavaClass_getName extends TCKJavaRuntimeTestcase {
-
-	
-	
-	/**
-	 * 
-	 */
-	public void testJavaClass_getName()
-	{
-		boolean foundClassName = false;
-
-		JavaRuntime runtime=getJavaRuntime();
-
-		Iterator heaps = runtime.getHeaps().iterator();
-
-		while (heaps.hasNext()) {
-			Object nextHeap = heaps.next();
-			if (nextHeap instanceof CorruptData) {
-				System.err.println("returned CorruptData `" + nextHeap + "'");
-				break;
-			}
-
-			JavaHeap aJavaHeap = (JavaHeap) nextHeap;
-			Iterator objects = aJavaHeap.getObjects().iterator();
-
-			while (objects.hasNext()) {
-				Object nextObject = objects.next();
-				if (nextObject instanceof CorruptData) {
-					System.err.println("returned CorruptData `" + nextObject + "'");
-					break;
-				}
-
-				JavaObject aJavaObject = (JavaObject) nextObject;
-				try {
-					JavaClass theJavaClass = aJavaObject.getJavaClass();
-					String theClassName = (theJavaClass).getName();
-					if (SetupJavaClass_getName.TestObjectClassName.equals(theClassName)) {
-						System.out.println("theClassName "+theClassName);
-						foundClassName=true;
-					}
-
-				} catch (CorruptDataException e) {
-					assertNotNull(e.getCorruptData());
-					e.printStackTrace();
-				}
-			}
-		}
-		assertTrue(foundClassName);
-	}
-	
-	public void testUnicodeClassName() throws Exception {
-		JavaObject obj = getJavaObjectByClassname(SetupJavaClass_getName.unicodeClassname);
-		
-		assertNotNull("Couldn't find object of instance " + SetupJavaClass_getName.unicodeClassname, obj);
-	}
-}
+/*******************************************************************************
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ ******************************************************************************/
+package org.apache.kato.tck.tests.javaruntime;
+
+import java.util.Iterator;
+
+import javax.tools.diagnostics.image.CorruptData;
+import javax.tools.diagnostics.image.CorruptDataException;
+import javax.tools.diagnostics.runtime.java.JavaClass;
+import javax.tools.diagnostics.runtime.java.JavaHeap;
+import javax.tools.diagnostics.runtime.java.JavaObject;
+import javax.tools.diagnostics.runtime.java.JavaRuntime;
+
+import org.apache.kato.tck.harness.TCKJavaRuntimeTestcase;
+import org.apache.kato.tck.scenario142.javaruntime.SetupJavaClass_getName;
+
+
+public class TestJavaClass_getName extends TCKJavaRuntimeTestcase {
+
+	
+	
+	/**
+	 * 
+	 */
+	public void testJavaClass_getName()
+	{
+		boolean foundClassName = false;
+
+		JavaRuntime runtime=getJavaRuntime();
+
+		Iterator heaps = runtime.getHeaps().iterator();
+
+		while (heaps.hasNext()) {
+			Object nextHeap = heaps.next();
+			if (nextHeap instanceof CorruptData) {
+				System.err.println("returned CorruptData `" + nextHeap + "'");
+				break;
+			}
+
+			JavaHeap aJavaHeap = (JavaHeap) nextHeap;
+			Iterator objects = aJavaHeap.getObjects().iterator();
+
+			while (objects.hasNext()) {
+				Object nextObject = objects.next();
+				if (nextObject instanceof CorruptData) {
+					System.err.println("returned CorruptData `" + nextObject + "'");
+					break;
+				}
+
+				JavaObject aJavaObject = (JavaObject) nextObject;
+				try {
+					JavaClass theJavaClass = aJavaObject.getJavaClass();
+					String theClassName = (theJavaClass).getName();
+					if (SetupJavaClass_getName.TestObjectClassName.equals(theClassName)) {
+						System.out.println("theClassName "+theClassName);
+						foundClassName=true;
+					}
+
+				} catch (CorruptDataException e) {
+					assertNotNull(e.getCorruptData());
+					e.printStackTrace();
+				}
+			}
+		}
+		assertTrue(foundClassName);
+	}
+	
+	public void testUnicodeClassName() throws Exception {
+		JavaObject obj = getJavaObjectByClassname(SetupJavaClass_getName.unicodeClassname);
+		
+		assertNotNull("Couldn't find object of instance " + SetupJavaClass_getName.unicodeClassname, obj);
+	}
+}

Propchange: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/javaruntime/TestJavaClass_getName.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/javaruntime/TestJavaField_equals.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/javaruntime/TestJavaField_equals.java?rev=883384&r1=883383&r2=883384&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/javaruntime/TestJavaField_equals.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/javaruntime/TestJavaField_equals.java Mon Nov 23 15:53:48 2009
@@ -1,112 +1,112 @@
-/*******************************************************************************
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * 
- *   http://www.apache.org/licenses/LICENSE-2.0
- * 
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- ******************************************************************************/
-package org.apache.kato.tck.tests.javaruntime;
-
-import javax.tools.diagnostics.runtime.java.JavaField;
-import javax.tools.diagnostics.runtime.java.JavaObject;
-
-import org.apache.kato.tck.harness.TCKJavaRuntimeTestcase;
-import org.apache.kato.tck.scenario142.javaruntime.SetupJavaField_equals;
-
-
-public class TestJavaField_equals extends TCKJavaRuntimeTestcase {
-
-	
-	
-	static SetupJavaField_equals.DifferentClass differentObject = new SetupJavaField_equals.DifferentClass();
-	
-	String differentClassName = SetupJavaField_equals.DifferentClass.class.getName().replace('.', '/');
-	
-	static JavaObject thisObject = null;	
-	public JavaObject getScenerioReference() {
-		if (thisObject == null) {
-			thisObject = super.getScenerioReference();
-		}	
-		return thisObject;		
-	}
-	
-	static JavaObject differentClassObject = null;
-	public void setUp() {
-		if (differentClassObject == null) {
-			differentClassObject = getJavaObjectByClassname(differentClassName);
-		}
-		
-		assertNotNull("Unable to find class "+differentClassName, differentClassObject);
-	}
-	
-	public void testToString() throws Exception {
-		JavaField fieldAField = getJavaField(getScenerioReference(), "fieldA");
-		String theString=fieldAField.toString();
-		assertNotNull(theString);
-		assertTrue(theString.length() >= 0 );
-	}
-
-	public void testHashCode() throws Exception {
-		JavaField fieldAField = getJavaField(getScenerioReference(), "fieldA");
-		JavaField fieldAField2 = getJavaField(getScenerioReference(), "fieldA");
-		
-		assertTrue(fieldAField.hashCode()==fieldAField2.hashCode());
-	}
-	
-	
-	public void testNullFalse() throws Exception {
-		JavaField fieldAField = getJavaField(getScenerioReference(), "fieldA");
-		
-		assertFalse(fieldAField.equals(null));
-	}
-	
-	public void testNullFalseStatic() throws Exception {
-		JavaField staticField = getJavaField(getScenerioReference(), "staticField");
-		
-		assertFalse(staticField.equals(null));
-	}
-	
-	public void testDifferentFalse() throws Exception {
-		JavaField fieldAField = getJavaField(getScenerioReference(), "fieldA");
-		JavaField fieldBField = getJavaField(getScenerioReference(), "fieldB");
-		
-		assertFalse(fieldAField.equals(fieldBField));
-		assertFalse(fieldBField.equals(fieldAField));		
-	}
-	
-	public void testDifferentFalseStatic() throws Exception {
-		JavaField staticField = getJavaField(getScenerioReference(), "staticField");
-		JavaField fieldBField = getJavaField(getScenerioReference(), "fieldB");
-		
-		assertFalse(staticField.equals(fieldBField));
-		assertFalse(fieldBField.equals(staticField));		
-	}
-	
-	public void testEqualsSelf() throws Exception {
-		JavaField fieldAField = getJavaField(getScenerioReference(), "fieldA");
-		assertTrue(fieldAField.equals(fieldAField));
-	}
-	
-	public void testNotEqualsDiffClass() throws Exception {
-		JavaField differentFieldAField = getJavaField(differentClassObject, "fieldA");
-		JavaField fieldAField = getJavaField(getScenerioReference(), "fieldA");
-		
-		assertFalse(fieldAField.equals(differentFieldAField));
-		assertFalse(differentFieldAField.equals(fieldAField));
-	}
-	
-	public void testNotEqualsDiffClassStatic() throws Exception {
-		JavaField differentStaticField = getJavaField(differentClassObject, "staticField");
-		JavaField staticField = getJavaField(getScenerioReference(), "staticField");
-		
-		assertFalse(staticField.equals(differentStaticField));
-		assertFalse(differentStaticField.equals(staticField));
-	}
-
-}
+/*******************************************************************************
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ ******************************************************************************/
+package org.apache.kato.tck.tests.javaruntime;
+
+import javax.tools.diagnostics.runtime.java.JavaField;
+import javax.tools.diagnostics.runtime.java.JavaObject;
+
+import org.apache.kato.tck.harness.TCKJavaRuntimeTestcase;
+import org.apache.kato.tck.scenario142.javaruntime.SetupJavaField_equals;
+
+
+public class TestJavaField_equals extends TCKJavaRuntimeTestcase {
+
+	
+	
+	static SetupJavaField_equals.DifferentClass differentObject = new SetupJavaField_equals.DifferentClass();
+	
+	String differentClassName = SetupJavaField_equals.DifferentClass.class.getName().replace('.', '/');
+	
+	static JavaObject thisObject = null;	
+	public JavaObject getScenerioReference() {
+		if (thisObject == null) {
+			thisObject = super.getScenerioReference();
+		}	
+		return thisObject;		
+	}
+	
+	static JavaObject differentClassObject = null;
+	public void setUp() {
+		if (differentClassObject == null) {
+			differentClassObject = getJavaObjectByClassname(differentClassName);
+		}
+		
+		assertNotNull("Unable to find class "+differentClassName, differentClassObject);
+	}
+	
+	public void testToString() throws Exception {
+		JavaField fieldAField = getJavaField(getScenerioReference(), "fieldA");
+		String theString=fieldAField.toString();
+		assertNotNull(theString);
+		assertTrue(theString.length() >= 0 );
+	}
+
+	public void testHashCode() throws Exception {
+		JavaField fieldAField = getJavaField(getScenerioReference(), "fieldA");
+		JavaField fieldAField2 = getJavaField(getScenerioReference(), "fieldA");
+		
+		assertTrue(fieldAField.hashCode()==fieldAField2.hashCode());
+	}
+	
+	
+	public void testNullFalse() throws Exception {
+		JavaField fieldAField = getJavaField(getScenerioReference(), "fieldA");
+		
+		assertFalse(fieldAField.equals(null));
+	}
+	
+	public void testNullFalseStatic() throws Exception {
+		JavaField staticField = getJavaField(getScenerioReference(), "staticField");
+		
+		assertFalse(staticField.equals(null));
+	}
+	
+	public void testDifferentFalse() throws Exception {
+		JavaField fieldAField = getJavaField(getScenerioReference(), "fieldA");
+		JavaField fieldBField = getJavaField(getScenerioReference(), "fieldB");
+		
+		assertFalse(fieldAField.equals(fieldBField));
+		assertFalse(fieldBField.equals(fieldAField));		
+	}
+	
+	public void testDifferentFalseStatic() throws Exception {
+		JavaField staticField = getJavaField(getScenerioReference(), "staticField");
+		JavaField fieldBField = getJavaField(getScenerioReference(), "fieldB");
+		
+		assertFalse(staticField.equals(fieldBField));
+		assertFalse(fieldBField.equals(staticField));		
+	}
+	
+	public void testEqualsSelf() throws Exception {
+		JavaField fieldAField = getJavaField(getScenerioReference(), "fieldA");
+		assertTrue(fieldAField.equals(fieldAField));
+	}
+	
+	public void testNotEqualsDiffClass() throws Exception {
+		JavaField differentFieldAField = getJavaField(differentClassObject, "fieldA");
+		JavaField fieldAField = getJavaField(getScenerioReference(), "fieldA");
+		
+		assertFalse(fieldAField.equals(differentFieldAField));
+		assertFalse(differentFieldAField.equals(fieldAField));
+	}
+	
+	public void testNotEqualsDiffClassStatic() throws Exception {
+		JavaField differentStaticField = getJavaField(differentClassObject, "staticField");
+		JavaField staticField = getJavaField(getScenerioReference(), "staticField");
+		
+		assertFalse(staticField.equals(differentStaticField));
+		assertFalse(differentStaticField.equals(staticField));
+	}
+
+}

Propchange: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/javaruntime/TestJavaField_equals.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/javaruntime/TestJavaField_get.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/javaruntime/TestJavaField_get.java?rev=883384&r1=883383&r2=883384&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/javaruntime/TestJavaField_get.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/javaruntime/TestJavaField_get.java Mon Nov 23 15:53:48 2009
@@ -1,461 +1,461 @@
-/*******************************************************************************
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * 
- *   http://www.apache.org/licenses/LICENSE-2.0
- * 
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- ******************************************************************************/
-package org.apache.kato.tck.tests.javaruntime;
-
-import javax.tools.diagnostics.runtime.java.JavaField;
-import javax.tools.diagnostics.runtime.java.JavaObject;
-
-import org.apache.kato.tck.harness.TCKJavaRuntimeTestcase;
-import org.apache.kato.tck.scenario142.javaruntime.SetupJavaField_get;
-
-
-public class TestJavaField_get extends TCKJavaRuntimeTestcase {
-		
-	
-	static JavaObject thisObject = null;	
-	static SetupJavaField_get setup=new SetupJavaField_get();
-	
-	public JavaObject getScenerioReference() {
-		if (thisObject == null) {
-			thisObject = super.getScenerioReference();
-		}	
-		return thisObject;		
-	}
-
-	static String wrongClassName = SetupJavaField_get.WrongClass.class.getName().replace('.', '/');
-	
-	static JavaObject wrongClassObject = null;
-	public void setUp() {
-		if (wrongClassObject == null) {
-			wrongClassObject = getJavaObjectByClassname(wrongClassName);
-		}
-	}
-	
-	public void testByteValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField byteField = getJavaField(thisJavaObject, "byteValue");
-		
-		Byte byteObj = (Byte) byteField.get(thisJavaObject);
-		
-		assertEquals(byteObj.byteValue(), setup.byteValue);		
-	}
-	
-	public void testMaxByteValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField byteField = getJavaField(thisJavaObject, "maxByteValue");
-		
-		Byte byteObj = (Byte) byteField.get(thisJavaObject);
-		
-		assertEquals(byteObj.byteValue(), setup.maxByteValue);		
-	}
-	
-	public void testMinByteValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField byteField = getJavaField(thisJavaObject, "minByteValue");
-		
-		Byte byteObj = (Byte) byteField.get(thisJavaObject);
-		
-		assertEquals(byteObj.byteValue(), setup.minByteValue);		
-	}
-	
-	public void testShortValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField shortField = getJavaField(thisJavaObject, "shortValue");
-		
-		Short shortObj = (Short) shortField.get(thisJavaObject);
-		
-		assertEquals(shortObj.shortValue(), setup.shortValue);		
-	}
-	
-	public void testMaxShortValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField shortField = getJavaField(thisJavaObject, "maxShortValue");
-		
-		Short shortObj = (Short) shortField.get(thisJavaObject);
-		
-		assertEquals(shortObj.shortValue(), setup.maxShortValue);		
-	}
-	
-	public void testMinShortValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField shortField = getJavaField(thisJavaObject, "minShortValue");
-		
-		Short shortObj = (Short) shortField.get(thisJavaObject);
-		
-		assertEquals(shortObj.shortValue(), setup.minShortValue);		
-	}
-	
-	public void testCharValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField charField = getJavaField(thisJavaObject, "charValue");
-		
-		Character charObj = (Character) charField.get(thisJavaObject);
-		
-		assertEquals(charObj.charValue(), setup.charValue);		
-	}
-	
-	public void testMaxCharValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField charField = getJavaField(thisJavaObject, "maxCharValue");
-		
-		Character charObj = (Character) charField.get(thisJavaObject);
-		
-		assertEquals(charObj.charValue(), setup.maxCharValue);		
-	}
-	
-	public void testMinCharValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField charField = getJavaField(thisJavaObject, "minCharValue");
-		
-		Character charObj = (Character) charField.get(thisJavaObject);
-		
-		assertEquals(charObj.charValue(), setup.minCharValue);		
-	}
-	
-	public void testIntValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField intField = getJavaField(thisJavaObject, "intValue");
-		
-		Integer intObj = (Integer) intField.get(thisJavaObject);
-		
-		assertEquals(intObj.intValue(), setup.intValue);		
-	}
-	
-	public void testMaxIntValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField intField = getJavaField(thisJavaObject, "maxIntValue");
-		
-		Integer intObj = (Integer) intField.get(thisJavaObject);
-		
-		assertEquals(intObj.intValue(), setup.maxIntValue);		
-	}
-	
-	public void testMinIntValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField intField = getJavaField(thisJavaObject, "minIntValue");
-		
-		Integer intObj = (Integer) intField.get(thisJavaObject);
-		
-		assertEquals(intObj.intValue(), setup.minIntValue);		
-	}
-	
-	public void testFloatValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField floatField = getJavaField(thisJavaObject, "floatValue");
-		
-		Float floatObj = (Float) floatField.get(thisJavaObject);
-		
-		assertEquals(floatObj.floatValue(), setup.floatValue, 0.0);		
-	}
-	
-	public void testMaxFloatValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField floatField = getJavaField(thisJavaObject, "maxFloatValue");
-		
-		Float floatObj = (Float) floatField.get(thisJavaObject);
-		
-		assertEquals(floatObj.floatValue(), setup.maxFloatValue, 0.0);		
-	}
-	
-	public void testMinFloatValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField floatField = getJavaField(thisJavaObject, "minFloatValue");
-		
-		Float floatObj = (Float) floatField.get(thisJavaObject);
-		
-		assertEquals(floatObj.floatValue(), setup.minFloatValue, 0.0);		
-	}
-	
-	public void testDoubleValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField doubleField = getJavaField(thisJavaObject, "doubleValue");
-		
-		Double doubleObj = (Double) doubleField.get(thisJavaObject);
-		
-		assertEquals(doubleObj.doubleValue(), setup.doubleValue, 0.0);		
-	}
-	
-	public void testMaxDoubleValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField doubleField = getJavaField(thisJavaObject, "maxDoubleValue");
-		
-		Double doubleObj = (Double) doubleField.get(thisJavaObject);
-		
-		assertEquals(doubleObj.doubleValue(), setup.maxDoubleValue, 0.0);		
-	}
-	
-	public void testMinDoubleValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField doubleField = getJavaField(thisJavaObject, "minDoubleValue");
-		
-		Double doubleObj = (Double) doubleField.get(thisJavaObject);
-		
-		assertEquals(doubleObj.doubleValue(), setup.minDoubleValue, 0.0);		
-	}
-	
-	public void testStringValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField stringField = getJavaField(thisJavaObject, "stringValue");
-		
-		JavaObject stringObject = (JavaObject) stringField.get(thisJavaObject);
-		
-		assertEquals(String.class.getName().replace('.','/'), stringObject.getJavaClass().getName());		
-	}
-	
-	public void testObjectValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField objectField = getJavaField(thisJavaObject, "objectValue");
-		
-		JavaObject objectObject = (JavaObject) objectField.get(thisJavaObject);
-		
-		assertEquals(Object.class.getName().replace('.','/'), objectObject.getJavaClass().getName());		
-	}
-	
-	public void testNullValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField objectField = getJavaField(thisJavaObject, "nullValue");
-		
-		JavaObject objectObject = (JavaObject) objectField.get(thisJavaObject);
-		
-		assertNull(objectObject);		
-	}
-	
-	public void testNullObjectInstance() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField objectField = getJavaField(thisJavaObject, "objectValue");
-		
-		try{
-			JavaObject objectObject = (JavaObject) objectField.get(null);
-			fail("Didn't get expected NullPointerException");
-		}catch(NullPointerException e) {
-			// expected - should get NPE with no object when passed to instance JavaField
-		}
-		
-	}
-	
-	public void testByteStaticValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField byteField = getJavaField(thisJavaObject, "byteStaticValue");
-		
-		Byte byteObj = (Byte) byteField.get(null);
-		
-		assertEquals(byteObj.byteValue(), SetupJavaField_get.byteStaticValue);		
-	}
-
-	public void testMaxByteStaticValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField byteField = getJavaField(thisJavaObject, "maxByteStaticValue");
-		
-		Byte byteObj = (Byte) byteField.get(null);
-		
-		assertEquals(byteObj.byteValue(), SetupJavaField_get.maxByteStaticValue);		
-	}
-
-	public void testMinByteStaticValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField byteField = getJavaField(thisJavaObject, "minByteStaticValue");
-		
-		Byte byteObj = (Byte) byteField.get(null);
-		
-		assertEquals(byteObj.byteValue(), SetupJavaField_get.minByteStaticValue);		
-	}
-
-	
-	public void testShortStaticValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField shortField = getJavaField(thisJavaObject, "shortStaticValue");
-		
-		Short shortObj = (Short) shortField.get(null);
-		
-		assertEquals(shortObj.shortValue(), SetupJavaField_get.shortStaticValue);		
-	}
-	
-	public void testMaxShortStaticValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField shortField = getJavaField(thisJavaObject, "maxShortStaticValue");
-		
-		Short shortObj = (Short) shortField.get(null);
-		
-		assertEquals(shortObj.shortValue(), SetupJavaField_get.maxShortStaticValue);		
-	}
-	
-	public void testMinShortStaticValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField shortField = getJavaField(thisJavaObject, "minShortStaticValue");
-		
-		Short shortObj = (Short) shortField.get(null);
-		
-		assertEquals(shortObj.shortValue(), SetupJavaField_get.minShortStaticValue);		
-	}
-
-	
-	public void testCharStaticValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField charField = getJavaField(thisJavaObject, "charStaticValue");
-		
-		Character charObj = (Character) charField.get(null);
-		
-		assertEquals(charObj.charValue(), SetupJavaField_get.charStaticValue);		
-	}
-	
-	public void testMaxCharStaticValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField charField = getJavaField(thisJavaObject, "maxCharStaticValue");
-		
-		Character charObj = (Character) charField.get(null);
-		
-		assertEquals(charObj.charValue(), SetupJavaField_get.maxCharStaticValue);		
-	}
-	
-	public void testMinCharStaticValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField charField = getJavaField(thisJavaObject, "minCharStaticValue");
-		
-		Character charObj = (Character) charField.get(null);
-		
-		assertEquals(charObj.charValue(), SetupJavaField_get.minCharStaticValue);		
-	}
-	
-	public void testIntStaticValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField intField = getJavaField(thisJavaObject, "intStaticValue");
-		
-		Integer intObj = (Integer) intField.get(null);
-		
-		assertEquals(intObj.intValue(), SetupJavaField_get.intStaticValue);		
-	}
-	
-	public void testMaxIntStaticValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField intField = getJavaField(thisJavaObject, "maxIntStaticValue");
-		
-		Integer intObj = (Integer) intField.get(null);
-		
-		assertEquals(intObj.intValue(), SetupJavaField_get.maxIntStaticValue);		
-	}
-	
-	public void testMinIntStaticValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField intField = getJavaField(thisJavaObject, "minIntStaticValue");
-		
-		Integer intObj = (Integer) intField.get(null);
-		
-		assertEquals(intObj.intValue(), SetupJavaField_get.minIntStaticValue);		
-	}
-	
-	public void testFloatStaticValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField floatField = getJavaField(thisJavaObject, "floatStaticValue");
-		
-		Float floatObj = (Float) floatField.get(null);
-		
-		assertEquals(floatObj.floatValue(), SetupJavaField_get.floatStaticValue, 0.0);		
-	}
-	
-	public void testMaxFloatStaticValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField floatField = getJavaField(thisJavaObject, "maxFloatStaticValue");
-		
-		Float floatObj = (Float) floatField.get(null);
-		
-		assertEquals(floatObj.floatValue(), SetupJavaField_get.maxFloatStaticValue, 0.0);		
-	}
-	
-	public void testMinFloatStaticValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField floatField = getJavaField(thisJavaObject, "minFloatStaticValue");
-		
-		Float floatObj = (Float) floatField.get(null);
-		
-		assertEquals(floatObj.floatValue(), SetupJavaField_get.minFloatStaticValue, 0.0);		
-	}
-	
-	public void testDoubleStaticValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField doubleField = getJavaField(thisJavaObject, "doubleStaticValue");
-		
-		Double doubleObj = (Double) doubleField.get(null);
-		
-		assertEquals(doubleObj.doubleValue(), SetupJavaField_get.doubleStaticValue, 0.0);		
-	}
-	
-	public void testMaxDoubleStaticValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField doubleField = getJavaField(thisJavaObject, "maxDoubleStaticValue");
-		
-		Double doubleObj = (Double) doubleField.get(null);
-		
-		assertEquals(doubleObj.doubleValue(), SetupJavaField_get.maxDoubleStaticValue, 0.0);		
-	}
-	public void testMinDoubleStaticValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField doubleField = getJavaField(thisJavaObject, "minDoubleStaticValue");
-		
-		Double doubleObj = (Double) doubleField.get(null);
-		
-		assertEquals(doubleObj.doubleValue(), SetupJavaField_get.minDoubleStaticValue, 0.0);		
-	}
-	public void testStringStaticValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField stringField = getJavaField(thisJavaObject, "stringStaticValue");
-		
-		JavaObject stringObject = (JavaObject) stringField.get(null);
-		
-		assertEquals(String.class.getName().replace('.','/'), stringObject.getJavaClass().getName());		
-	}
-	
-	public void testObjectStaticValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField objectField = getJavaField(thisJavaObject, "objectStaticValue");
-		
-		JavaObject objectObject = (JavaObject) objectField.get(null);
-		
-		assertEquals(Object.class.getName().replace('.','/'), objectObject.getJavaClass().getName());		
-	}
-	
-	public void testNullStaticValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField objectField = getJavaField(thisJavaObject, "nullStaticValue");
-		
-		JavaObject objectObject = (JavaObject) objectField.get(null);
-		
-		assertNull(objectObject);		
-	}
-
-	public void testWrongByteValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField objectField = getJavaField(thisJavaObject, "byteValue");
-		
-		try{
-			Byte byteObj = (Byte) objectField.get(wrongClassObject);
-			fail("JavaField.get() should have thrown IllegalArgumentException as passed wrong object.");
-		}catch (IllegalArgumentException e) {
-			// expected
-		}
-		
-	}
-	
-	public void testWrongObjectValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField objectField = getJavaField(thisJavaObject, "objectValue");
-		
-		try{
-			JavaObject objectObj = (JavaObject) objectField.get(wrongClassObject);
-			fail("JavaField.get() should have thrown IllegalArgumentException as passed wrong object.");
-		}catch (IllegalArgumentException e) {
-			// expected
-		}
-		
-	}
-}
+/*******************************************************************************
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ ******************************************************************************/
+package org.apache.kato.tck.tests.javaruntime;
+
+import javax.tools.diagnostics.runtime.java.JavaField;
+import javax.tools.diagnostics.runtime.java.JavaObject;
+
+import org.apache.kato.tck.harness.TCKJavaRuntimeTestcase;
+import org.apache.kato.tck.scenario142.javaruntime.SetupJavaField_get;
+
+
+public class TestJavaField_get extends TCKJavaRuntimeTestcase {
+		
+	
+	static JavaObject thisObject = null;	
+	static SetupJavaField_get setup=new SetupJavaField_get();
+	
+	public JavaObject getScenerioReference() {
+		if (thisObject == null) {
+			thisObject = super.getScenerioReference();
+		}	
+		return thisObject;		
+	}
+
+	static String wrongClassName = SetupJavaField_get.WrongClass.class.getName().replace('.', '/');
+	
+	static JavaObject wrongClassObject = null;
+	public void setUp() {
+		if (wrongClassObject == null) {
+			wrongClassObject = getJavaObjectByClassname(wrongClassName);
+		}
+	}
+	
+	public void testByteValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField byteField = getJavaField(thisJavaObject, "byteValue");
+		
+		Byte byteObj = (Byte) byteField.get(thisJavaObject);
+		
+		assertEquals(byteObj.byteValue(), setup.byteValue);		
+	}
+	
+	public void testMaxByteValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField byteField = getJavaField(thisJavaObject, "maxByteValue");
+		
+		Byte byteObj = (Byte) byteField.get(thisJavaObject);
+		
+		assertEquals(byteObj.byteValue(), setup.maxByteValue);		
+	}
+	
+	public void testMinByteValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField byteField = getJavaField(thisJavaObject, "minByteValue");
+		
+		Byte byteObj = (Byte) byteField.get(thisJavaObject);
+		
+		assertEquals(byteObj.byteValue(), setup.minByteValue);		
+	}
+	
+	public void testShortValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField shortField = getJavaField(thisJavaObject, "shortValue");
+		
+		Short shortObj = (Short) shortField.get(thisJavaObject);
+		
+		assertEquals(shortObj.shortValue(), setup.shortValue);		
+	}
+	
+	public void testMaxShortValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField shortField = getJavaField(thisJavaObject, "maxShortValue");
+		
+		Short shortObj = (Short) shortField.get(thisJavaObject);
+		
+		assertEquals(shortObj.shortValue(), setup.maxShortValue);		
+	}
+	
+	public void testMinShortValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField shortField = getJavaField(thisJavaObject, "minShortValue");
+		
+		Short shortObj = (Short) shortField.get(thisJavaObject);
+		
+		assertEquals(shortObj.shortValue(), setup.minShortValue);		
+	}
+	
+	public void testCharValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField charField = getJavaField(thisJavaObject, "charValue");
+		
+		Character charObj = (Character) charField.get(thisJavaObject);
+		
+		assertEquals(charObj.charValue(), setup.charValue);		
+	}
+	
+	public void testMaxCharValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField charField = getJavaField(thisJavaObject, "maxCharValue");
+		
+		Character charObj = (Character) charField.get(thisJavaObject);
+		
+		assertEquals(charObj.charValue(), setup.maxCharValue);		
+	}
+	
+	public void testMinCharValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField charField = getJavaField(thisJavaObject, "minCharValue");
+		
+		Character charObj = (Character) charField.get(thisJavaObject);
+		
+		assertEquals(charObj.charValue(), setup.minCharValue);		
+	}
+	
+	public void testIntValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField intField = getJavaField(thisJavaObject, "intValue");
+		
+		Integer intObj = (Integer) intField.get(thisJavaObject);
+		
+		assertEquals(intObj.intValue(), setup.intValue);		
+	}
+	
+	public void testMaxIntValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField intField = getJavaField(thisJavaObject, "maxIntValue");
+		
+		Integer intObj = (Integer) intField.get(thisJavaObject);
+		
+		assertEquals(intObj.intValue(), setup.maxIntValue);		
+	}
+	
+	public void testMinIntValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField intField = getJavaField(thisJavaObject, "minIntValue");
+		
+		Integer intObj = (Integer) intField.get(thisJavaObject);
+		
+		assertEquals(intObj.intValue(), setup.minIntValue);		
+	}
+	
+	public void testFloatValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField floatField = getJavaField(thisJavaObject, "floatValue");
+		
+		Float floatObj = (Float) floatField.get(thisJavaObject);
+		
+		assertEquals(floatObj.floatValue(), setup.floatValue, 0.0);		
+	}
+	
+	public void testMaxFloatValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField floatField = getJavaField(thisJavaObject, "maxFloatValue");
+		
+		Float floatObj = (Float) floatField.get(thisJavaObject);
+		
+		assertEquals(floatObj.floatValue(), setup.maxFloatValue, 0.0);		
+	}
+	
+	public void testMinFloatValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField floatField = getJavaField(thisJavaObject, "minFloatValue");
+		
+		Float floatObj = (Float) floatField.get(thisJavaObject);
+		
+		assertEquals(floatObj.floatValue(), setup.minFloatValue, 0.0);		
+	}
+	
+	public void testDoubleValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField doubleField = getJavaField(thisJavaObject, "doubleValue");
+		
+		Double doubleObj = (Double) doubleField.get(thisJavaObject);
+		
+		assertEquals(doubleObj.doubleValue(), setup.doubleValue, 0.0);		
+	}
+	
+	public void testMaxDoubleValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField doubleField = getJavaField(thisJavaObject, "maxDoubleValue");
+		
+		Double doubleObj = (Double) doubleField.get(thisJavaObject);
+		
+		assertEquals(doubleObj.doubleValue(), setup.maxDoubleValue, 0.0);		
+	}
+	
+	public void testMinDoubleValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField doubleField = getJavaField(thisJavaObject, "minDoubleValue");
+		
+		Double doubleObj = (Double) doubleField.get(thisJavaObject);
+		
+		assertEquals(doubleObj.doubleValue(), setup.minDoubleValue, 0.0);		
+	}
+	
+	public void testStringValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField stringField = getJavaField(thisJavaObject, "stringValue");
+		
+		JavaObject stringObject = (JavaObject) stringField.get(thisJavaObject);
+		
+		assertEquals(String.class.getName().replace('.','/'), stringObject.getJavaClass().getName());		
+	}
+	
+	public void testObjectValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField objectField = getJavaField(thisJavaObject, "objectValue");
+		
+		JavaObject objectObject = (JavaObject) objectField.get(thisJavaObject);
+		
+		assertEquals(Object.class.getName().replace('.','/'), objectObject.getJavaClass().getName());		
+	}
+	
+	public void testNullValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField objectField = getJavaField(thisJavaObject, "nullValue");
+		
+		JavaObject objectObject = (JavaObject) objectField.get(thisJavaObject);
+		
+		assertNull(objectObject);		
+	}
+	
+	public void testNullObjectInstance() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField objectField = getJavaField(thisJavaObject, "objectValue");
+		
+		try{
+			JavaObject objectObject = (JavaObject) objectField.get(null);
+			fail("Didn't get expected NullPointerException");
+		}catch(NullPointerException e) {
+			// expected - should get NPE with no object when passed to instance JavaField
+		}
+		
+	}
+	
+	public void testByteStaticValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField byteField = getJavaField(thisJavaObject, "byteStaticValue");
+		
+		Byte byteObj = (Byte) byteField.get(null);
+		
+		assertEquals(byteObj.byteValue(), SetupJavaField_get.byteStaticValue);		
+	}
+
+	public void testMaxByteStaticValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField byteField = getJavaField(thisJavaObject, "maxByteStaticValue");
+		
+		Byte byteObj = (Byte) byteField.get(null);
+		
+		assertEquals(byteObj.byteValue(), SetupJavaField_get.maxByteStaticValue);		
+	}
+
+	public void testMinByteStaticValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField byteField = getJavaField(thisJavaObject, "minByteStaticValue");
+		
+		Byte byteObj = (Byte) byteField.get(null);
+		
+		assertEquals(byteObj.byteValue(), SetupJavaField_get.minByteStaticValue);		
+	}
+
+	
+	public void testShortStaticValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField shortField = getJavaField(thisJavaObject, "shortStaticValue");
+		
+		Short shortObj = (Short) shortField.get(null);
+		
+		assertEquals(shortObj.shortValue(), SetupJavaField_get.shortStaticValue);		
+	}
+	
+	public void testMaxShortStaticValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField shortField = getJavaField(thisJavaObject, "maxShortStaticValue");
+		
+		Short shortObj = (Short) shortField.get(null);
+		
+		assertEquals(shortObj.shortValue(), SetupJavaField_get.maxShortStaticValue);		
+	}
+	
+	public void testMinShortStaticValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField shortField = getJavaField(thisJavaObject, "minShortStaticValue");
+		
+		Short shortObj = (Short) shortField.get(null);
+		
+		assertEquals(shortObj.shortValue(), SetupJavaField_get.minShortStaticValue);		
+	}
+
+	
+	public void testCharStaticValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField charField = getJavaField(thisJavaObject, "charStaticValue");
+		
+		Character charObj = (Character) charField.get(null);
+		
+		assertEquals(charObj.charValue(), SetupJavaField_get.charStaticValue);		
+	}
+	
+	public void testMaxCharStaticValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField charField = getJavaField(thisJavaObject, "maxCharStaticValue");
+		
+		Character charObj = (Character) charField.get(null);
+		
+		assertEquals(charObj.charValue(), SetupJavaField_get.maxCharStaticValue);		
+	}
+	
+	public void testMinCharStaticValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField charField = getJavaField(thisJavaObject, "minCharStaticValue");
+		
+		Character charObj = (Character) charField.get(null);
+		
+		assertEquals(charObj.charValue(), SetupJavaField_get.minCharStaticValue);		
+	}
+	
+	public void testIntStaticValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField intField = getJavaField(thisJavaObject, "intStaticValue");
+		
+		Integer intObj = (Integer) intField.get(null);
+		
+		assertEquals(intObj.intValue(), SetupJavaField_get.intStaticValue);		
+	}
+	
+	public void testMaxIntStaticValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField intField = getJavaField(thisJavaObject, "maxIntStaticValue");
+		
+		Integer intObj = (Integer) intField.get(null);
+		
+		assertEquals(intObj.intValue(), SetupJavaField_get.maxIntStaticValue);		
+	}
+	
+	public void testMinIntStaticValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField intField = getJavaField(thisJavaObject, "minIntStaticValue");
+		
+		Integer intObj = (Integer) intField.get(null);
+		
+		assertEquals(intObj.intValue(), SetupJavaField_get.minIntStaticValue);		
+	}
+	
+	public void testFloatStaticValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField floatField = getJavaField(thisJavaObject, "floatStaticValue");
+		
+		Float floatObj = (Float) floatField.get(null);
+		
+		assertEquals(floatObj.floatValue(), SetupJavaField_get.floatStaticValue, 0.0);		
+	}
+	
+	public void testMaxFloatStaticValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField floatField = getJavaField(thisJavaObject, "maxFloatStaticValue");
+		
+		Float floatObj = (Float) floatField.get(null);
+		
+		assertEquals(floatObj.floatValue(), SetupJavaField_get.maxFloatStaticValue, 0.0);		
+	}
+	
+	public void testMinFloatStaticValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField floatField = getJavaField(thisJavaObject, "minFloatStaticValue");
+		
+		Float floatObj = (Float) floatField.get(null);
+		
+		assertEquals(floatObj.floatValue(), SetupJavaField_get.minFloatStaticValue, 0.0);		
+	}
+	
+	public void testDoubleStaticValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField doubleField = getJavaField(thisJavaObject, "doubleStaticValue");
+		
+		Double doubleObj = (Double) doubleField.get(null);
+		
+		assertEquals(doubleObj.doubleValue(), SetupJavaField_get.doubleStaticValue, 0.0);		
+	}
+	
+	public void testMaxDoubleStaticValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField doubleField = getJavaField(thisJavaObject, "maxDoubleStaticValue");
+		
+		Double doubleObj = (Double) doubleField.get(null);
+		
+		assertEquals(doubleObj.doubleValue(), SetupJavaField_get.maxDoubleStaticValue, 0.0);		
+	}
+	public void testMinDoubleStaticValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField doubleField = getJavaField(thisJavaObject, "minDoubleStaticValue");
+		
+		Double doubleObj = (Double) doubleField.get(null);
+		
+		assertEquals(doubleObj.doubleValue(), SetupJavaField_get.minDoubleStaticValue, 0.0);		
+	}
+	public void testStringStaticValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField stringField = getJavaField(thisJavaObject, "stringStaticValue");
+		
+		JavaObject stringObject = (JavaObject) stringField.get(null);
+		
+		assertEquals(String.class.getName().replace('.','/'), stringObject.getJavaClass().getName());		
+	}
+	
+	public void testObjectStaticValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField objectField = getJavaField(thisJavaObject, "objectStaticValue");
+		
+		JavaObject objectObject = (JavaObject) objectField.get(null);
+		
+		assertEquals(Object.class.getName().replace('.','/'), objectObject.getJavaClass().getName());		
+	}
+	
+	public void testNullStaticValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField objectField = getJavaField(thisJavaObject, "nullStaticValue");
+		
+		JavaObject objectObject = (JavaObject) objectField.get(null);
+		
+		assertNull(objectObject);		
+	}
+
+	public void testWrongByteValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField objectField = getJavaField(thisJavaObject, "byteValue");
+		
+		try{
+			Byte byteObj = (Byte) objectField.get(wrongClassObject);
+			fail("JavaField.get() should have thrown IllegalArgumentException as passed wrong object.");
+		}catch (IllegalArgumentException e) {
+			// expected
+		}
+		
+	}
+	
+	public void testWrongObjectValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField objectField = getJavaField(thisJavaObject, "objectValue");
+		
+		try{
+			JavaObject objectObj = (JavaObject) objectField.get(wrongClassObject);
+			fail("JavaField.get() should have thrown IllegalArgumentException as passed wrong object.");
+		}catch (IllegalArgumentException e) {
+			// expected
+		}
+		
+	}
+}

Propchange: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/javaruntime/TestJavaField_get.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/javaruntime/TestJavaField_getBoolean.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/javaruntime/TestJavaField_getBoolean.java?rev=883384&r1=883383&r2=883384&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/javaruntime/TestJavaField_getBoolean.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/javaruntime/TestJavaField_getBoolean.java Mon Nov 23 15:53:48 2009
@@ -1,138 +1,138 @@
-/*******************************************************************************
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * 
- *   http://www.apache.org/licenses/LICENSE-2.0
- * 
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- ******************************************************************************/
-package org.apache.kato.tck.tests.javaruntime;
-
-import javax.tools.diagnostics.runtime.java.JavaField;
-import javax.tools.diagnostics.runtime.java.JavaObject;
-
-import org.apache.kato.tck.harness.TCKJavaRuntimeTestcase;
-import org.apache.kato.tck.scenario142.javaruntime.SetupJavaField_getBoolean;
-
-
-/**
- * Tests that JavaField.getBoolean works as expected.
- *
- */
-public class TestJavaField_getBoolean extends TCKJavaRuntimeTestcase {
-	
-	SetupJavaField_getBoolean setup=new SetupJavaField_getBoolean();
-	
-	static JavaObject thisObject = null;	
-	public JavaObject getScenerioReference() {
-		if (thisObject == null) {
-			thisObject = super.getScenerioReference();
-		}	
-		return thisObject;		
-	}
-	
-	public void testIncompatibleClass() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField trueBooleanField = getJavaField(thisJavaObject, "trueBoolean");
-		JavaObject incompatibleClass = getJavaObjectByClassname(setup.incompatibleClassName);
-		
-		assertNotNull("Couldn't find "+setup.incompatibleClassName,incompatibleClass);
-		try{
-			boolean trueBooleanValue = trueBooleanField.getBoolean(incompatibleClass);
-			fail("JavaField.getBoolean() didn't fail when passed Object of wrong class");
-		}catch (IllegalArgumentException e) {
-			// expected
-		}
-	}
-	
-	
-	public void testNullObjectInstanceField() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField trueBooleanField = getJavaField(thisJavaObject, "trueBoolean");
-		
-		try{
-			boolean trueBooleanValue = trueBooleanField.getBoolean(null);
-			fail("JavaField.getBoolean(null) on instance field didn't throw null pointer exception.");
-		}catch(NullPointerException e) {
-			// expected.
-		}
-				
-	}
-
-	public void testNonNullObjectInstanceStaticField() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField trueBooleanField = getJavaField(thisJavaObject, "trueStaticBoolean");
-		
-		boolean trueBooleanValue = trueBooleanField.getBoolean(thisJavaObject);
-		
-		assertEquals(SetupJavaField_getBoolean.trueStaticBoolean, trueBooleanValue);		
-	}
-	
-	
-	public void testTrueBoolean() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField trueBooleanField = getJavaField(thisJavaObject, "trueBoolean");
-		
-		boolean trueBooleanValue = trueBooleanField.getBoolean(thisJavaObject);
-		
-		assertEquals(setup.trueBoolean, trueBooleanValue);		
-	}
-	
-	public void testFalseBoolean() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField falseBooleanField = getJavaField(thisJavaObject, "falseBoolean");
-		
-		boolean falseBooleanValue = falseBooleanField.getBoolean(thisJavaObject);
-		
-		assertEquals(SetupJavaField_getBoolean.falseStaticBoolean, falseBooleanValue);		
-	}
-	
-	public void testTrueStaticBoolean() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField trueBooleanField = getJavaField(thisJavaObject, "trueStaticBoolean");
-		
-		boolean trueBooleanValue = trueBooleanField.getBoolean(null);
-		
-		assertEquals(SetupJavaField_getBoolean.trueStaticBoolean, trueBooleanValue);		
-	}
-	
-	public void testFalseStaticBoolean() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField falseBooleanField = getJavaField(thisJavaObject, "falseStaticBoolean");
-		
-		boolean falseBooleanValue = falseBooleanField.getBoolean(null);
-		
-		assertEquals(SetupJavaField_getBoolean.falseStaticBoolean, falseBooleanValue);		
-	}
-	
-	public void testNotBoolean() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField notBooleanField = getJavaField(thisJavaObject, "notBoolean");
-		
-		try{
-			boolean notBooleanValue = notBooleanField.getBoolean(thisJavaObject);
-			fail("getBoolean did't throw IllegalArgumentException when passed int field");
-		} catch (IllegalArgumentException e) {
-			// ok.
-		}
-				
-	}
-	
-	public void testNotBoolean2() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField notBooleanField = getJavaField(thisJavaObject, "notBoolean2");
-		
-		try{
-			boolean notBooleanValue = notBooleanField.getBoolean(thisJavaObject);
-			fail("getBoolean did't throw IllegalArgumentException when passed Object field");
-		} catch (IllegalArgumentException e) {
-			// ok.
-		}
-				
-	}
-}
+/*******************************************************************************
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ ******************************************************************************/
+package org.apache.kato.tck.tests.javaruntime;
+
+import javax.tools.diagnostics.runtime.java.JavaField;
+import javax.tools.diagnostics.runtime.java.JavaObject;
+
+import org.apache.kato.tck.harness.TCKJavaRuntimeTestcase;
+import org.apache.kato.tck.scenario142.javaruntime.SetupJavaField_getBoolean;
+
+
+/**
+ * Tests that JavaField.getBoolean works as expected.
+ *
+ */
+public class TestJavaField_getBoolean extends TCKJavaRuntimeTestcase {
+	
+	SetupJavaField_getBoolean setup=new SetupJavaField_getBoolean();
+	
+	static JavaObject thisObject = null;	
+	public JavaObject getScenerioReference() {
+		if (thisObject == null) {
+			thisObject = super.getScenerioReference();
+		}	
+		return thisObject;		
+	}
+	
+	public void testIncompatibleClass() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField trueBooleanField = getJavaField(thisJavaObject, "trueBoolean");
+		JavaObject incompatibleClass = getJavaObjectByClassname(setup.incompatibleClassName);
+		
+		assertNotNull("Couldn't find "+setup.incompatibleClassName,incompatibleClass);
+		try{
+			boolean trueBooleanValue = trueBooleanField.getBoolean(incompatibleClass);
+			fail("JavaField.getBoolean() didn't fail when passed Object of wrong class");
+		}catch (IllegalArgumentException e) {
+			// expected
+		}
+	}
+	
+	
+	public void testNullObjectInstanceField() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField trueBooleanField = getJavaField(thisJavaObject, "trueBoolean");
+		
+		try{
+			boolean trueBooleanValue = trueBooleanField.getBoolean(null);
+			fail("JavaField.getBoolean(null) on instance field didn't throw null pointer exception.");
+		}catch(NullPointerException e) {
+			// expected.
+		}
+				
+	}
+
+	public void testNonNullObjectInstanceStaticField() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField trueBooleanField = getJavaField(thisJavaObject, "trueStaticBoolean");
+		
+		boolean trueBooleanValue = trueBooleanField.getBoolean(thisJavaObject);
+		
+		assertEquals(SetupJavaField_getBoolean.trueStaticBoolean, trueBooleanValue);		
+	}
+	
+	
+	public void testTrueBoolean() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField trueBooleanField = getJavaField(thisJavaObject, "trueBoolean");
+		
+		boolean trueBooleanValue = trueBooleanField.getBoolean(thisJavaObject);
+		
+		assertEquals(setup.trueBoolean, trueBooleanValue);		
+	}
+	
+	public void testFalseBoolean() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField falseBooleanField = getJavaField(thisJavaObject, "falseBoolean");
+		
+		boolean falseBooleanValue = falseBooleanField.getBoolean(thisJavaObject);
+		
+		assertEquals(SetupJavaField_getBoolean.falseStaticBoolean, falseBooleanValue);		
+	}
+	
+	public void testTrueStaticBoolean() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField trueBooleanField = getJavaField(thisJavaObject, "trueStaticBoolean");
+		
+		boolean trueBooleanValue = trueBooleanField.getBoolean(null);
+		
+		assertEquals(SetupJavaField_getBoolean.trueStaticBoolean, trueBooleanValue);		
+	}
+	
+	public void testFalseStaticBoolean() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField falseBooleanField = getJavaField(thisJavaObject, "falseStaticBoolean");
+		
+		boolean falseBooleanValue = falseBooleanField.getBoolean(null);
+		
+		assertEquals(SetupJavaField_getBoolean.falseStaticBoolean, falseBooleanValue);		
+	}
+	
+	public void testNotBoolean() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField notBooleanField = getJavaField(thisJavaObject, "notBoolean");
+		
+		try{
+			boolean notBooleanValue = notBooleanField.getBoolean(thisJavaObject);
+			fail("getBoolean did't throw IllegalArgumentException when passed int field");
+		} catch (IllegalArgumentException e) {
+			// ok.
+		}
+				
+	}
+	
+	public void testNotBoolean2() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField notBooleanField = getJavaField(thisJavaObject, "notBoolean2");
+		
+		try{
+			boolean notBooleanValue = notBooleanField.getBoolean(thisJavaObject);
+			fail("getBoolean did't throw IllegalArgumentException when passed Object field");
+		} catch (IllegalArgumentException e) {
+			// ok.
+		}
+				
+	}
+}

Propchange: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/javaruntime/TestJavaField_getBoolean.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/javaruntime/TestJavaField_getByte.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/javaruntime/TestJavaField_getByte.java?rev=883384&r1=883383&r2=883384&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/javaruntime/TestJavaField_getByte.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/javaruntime/TestJavaField_getByte.java Mon Nov 23 15:53:48 2009
@@ -1,189 +1,189 @@
-/*******************************************************************************
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * 
- *   http://www.apache.org/licenses/LICENSE-2.0
- * 
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- ******************************************************************************/
-package org.apache.kato.tck.tests.javaruntime;
-
-import javax.tools.diagnostics.runtime.java.JavaField;
-import javax.tools.diagnostics.runtime.java.JavaObject;
-
-import org.apache.kato.tck.harness.TCKJavaRuntimeTestcase;
-import org.apache.kato.tck.scenario142.javaruntime.SetupJavaField_getByte;
-
-
-/**
- * Test JavaField.getByte() against various fields and values.
- *
- */
-public class TestJavaField_getByte extends TCKJavaRuntimeTestcase {
-	
-	SetupJavaField_getByte setup=new SetupJavaField_getByte();
-	
-	static JavaObject thisObject = null;	
-	public JavaObject getScenerioReference() {
-		if (thisObject == null) {
-			thisObject = super.getScenerioReference();
-		}	
-		return thisObject;		
-	}
-	
-	public void testMaxByteValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField maxByteField = getJavaField(thisJavaObject, "maxByte");
-		
-		byte maxByteValue = maxByteField.getByte(thisJavaObject);
-		
-		assertEquals(setup.maxByte, maxByteValue);		
-	}
-	
-	public void testMinByteValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField minByteField = getJavaField(thisJavaObject, "minByte");
-		
-		byte minByteValue = minByteField.getByte(thisJavaObject);
-		
-		assertEquals(setup.minByte, minByteValue);		
-	}
-
-	
-	public void testStaticMinByteValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField minByteField = getJavaField(thisJavaObject, "staticMinByte");
-		
-		byte minByteValue = minByteField.getByte(null);
-		
-		assertEquals(SetupJavaField_getByte.staticMinByte, minByteValue);		
-	}
-	
-	public void testZeroByteValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField zeroByteField = getJavaField(thisJavaObject, "zeroByte");
-		
-		byte zeroByteValue = zeroByteField.getByte(thisJavaObject);
-		
-		assertEquals(setup.zeroByte, zeroByteValue);		
-	}
-	
-	public void testNegByteValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField negByteField = getJavaField(thisJavaObject, "negByte");
-		
-		byte negByteValue = negByteField.getByte(thisJavaObject);
-		
-		assertEquals(setup.negByte, negByteValue);		
-	}	
-	
-	public void testPosByteValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField posByteField = getJavaField(thisJavaObject, "posByte");
-		
-		byte posByteValue = posByteField.getByte(thisJavaObject);
-		
-		assertEquals(setup.posByte, posByteValue);		
-	}
-	
-	public void testDoubleValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField doubleValueField = getJavaField(thisJavaObject, "doubleValue");
-
-		try{
-			byte aDoubleValue = doubleValueField.getByte(thisJavaObject);
-			fail("Missing illegal argument exception from JavaField.getByte(doubleValue)");
-		} catch (IllegalArgumentException e) {
-			// expected
-		}	
-	}
-	
-	public void testFloatValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField floatValueField = getJavaField(thisJavaObject, "floatValue");
-
-		try{
-			byte aFloatValue = floatValueField.getByte(thisJavaObject);
-			fail("Missing illegal argument exception from JavaField.getByte(floatValue)");
-		} catch (IllegalArgumentException e) {
-			// expected
-		}	
-	}
-	
-	public void testLongValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField longValueField = getJavaField(thisJavaObject, "longValue");
-
-		try{
-			byte aLongValue = longValueField.getByte(thisJavaObject);
-			fail("Missing illegal argument exception from JavaField.getByte(longValue)");
-		} catch (IllegalArgumentException e) {
-			// expected
-		}	
-	}
-	
-	public void testIntValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField intValueField = getJavaField(thisJavaObject, "intValue");
-
-		try{
-			byte aIntValue = intValueField.getByte(thisJavaObject);
-			fail("Missing illegal argument exception from JavaField.getByte(intValue)");
-		} catch (IllegalArgumentException e) {
-			// expected
-		}	
-	}
-	
-	public void testCharValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField charValueField = getJavaField(thisJavaObject, "charValue");
-
-		try{
-			byte aCharValue = charValueField.getByte(thisJavaObject);
-			fail("Missing illegal argument exception from JavaField.getByte(charValue)");
-		} catch (IllegalArgumentException e) {
-			// expected
-		}	
-	}
-	
-	public void testShortValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField shortValueField = getJavaField(thisJavaObject, "shortValue");
-
-		try{
-			byte aShortValue = shortValueField.getByte(thisJavaObject);
-			fail("Missing illegal argument exception from JavaField.getByte(shortValue)");
-		} catch (IllegalArgumentException e) {
-			// expected
-		}	
-	}
-	
-	public void testBooleanValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField booleanValueField = getJavaField(thisJavaObject, "booleanValue");
-		
-		try{
-			byte aBooleanValue = booleanValueField.getByte(thisJavaObject);
-			fail("Missing illegal argument exception from JavaField.getByte(booleanValue)");
-		} catch (IllegalArgumentException e) {
-			// expected
-		}
-	}
-	
-	public void testObjectReference() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField objectReferenceField = getJavaField(thisJavaObject, "objectReference");
-		
-		try{
-			byte anObjectReference = objectReferenceField.getByte(thisJavaObject);
-			fail("Missing illegal argument exception from JavaField.getByte(objectReference)");
-		} catch (IllegalArgumentException e) {
-			// expected
-		}
-	}
-}
+/*******************************************************************************
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ ******************************************************************************/
+package org.apache.kato.tck.tests.javaruntime;
+
+import javax.tools.diagnostics.runtime.java.JavaField;
+import javax.tools.diagnostics.runtime.java.JavaObject;
+
+import org.apache.kato.tck.harness.TCKJavaRuntimeTestcase;
+import org.apache.kato.tck.scenario142.javaruntime.SetupJavaField_getByte;
+
+
+/**
+ * Test JavaField.getByte() against various fields and values.
+ *
+ */
+public class TestJavaField_getByte extends TCKJavaRuntimeTestcase {
+	
+	SetupJavaField_getByte setup=new SetupJavaField_getByte();
+	
+	static JavaObject thisObject = null;	
+	public JavaObject getScenerioReference() {
+		if (thisObject == null) {
+			thisObject = super.getScenerioReference();
+		}	
+		return thisObject;		
+	}
+	
+	public void testMaxByteValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField maxByteField = getJavaField(thisJavaObject, "maxByte");
+		
+		byte maxByteValue = maxByteField.getByte(thisJavaObject);
+		
+		assertEquals(setup.maxByte, maxByteValue);		
+	}
+	
+	public void testMinByteValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField minByteField = getJavaField(thisJavaObject, "minByte");
+		
+		byte minByteValue = minByteField.getByte(thisJavaObject);
+		
+		assertEquals(setup.minByte, minByteValue);		
+	}
+
+	
+	public void testStaticMinByteValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField minByteField = getJavaField(thisJavaObject, "staticMinByte");
+		
+		byte minByteValue = minByteField.getByte(null);
+		
+		assertEquals(SetupJavaField_getByte.staticMinByte, minByteValue);		
+	}
+	
+	public void testZeroByteValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField zeroByteField = getJavaField(thisJavaObject, "zeroByte");
+		
+		byte zeroByteValue = zeroByteField.getByte(thisJavaObject);
+		
+		assertEquals(setup.zeroByte, zeroByteValue);		
+	}
+	
+	public void testNegByteValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField negByteField = getJavaField(thisJavaObject, "negByte");
+		
+		byte negByteValue = negByteField.getByte(thisJavaObject);
+		
+		assertEquals(setup.negByte, negByteValue);		
+	}	
+	
+	public void testPosByteValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField posByteField = getJavaField(thisJavaObject, "posByte");
+		
+		byte posByteValue = posByteField.getByte(thisJavaObject);
+		
+		assertEquals(setup.posByte, posByteValue);		
+	}
+	
+	public void testDoubleValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField doubleValueField = getJavaField(thisJavaObject, "doubleValue");
+
+		try{
+			byte aDoubleValue = doubleValueField.getByte(thisJavaObject);
+			fail("Missing illegal argument exception from JavaField.getByte(doubleValue)");
+		} catch (IllegalArgumentException e) {
+			// expected
+		}	
+	}
+	
+	public void testFloatValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField floatValueField = getJavaField(thisJavaObject, "floatValue");
+
+		try{
+			byte aFloatValue = floatValueField.getByte(thisJavaObject);
+			fail("Missing illegal argument exception from JavaField.getByte(floatValue)");
+		} catch (IllegalArgumentException e) {
+			// expected
+		}	
+	}
+	
+	public void testLongValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField longValueField = getJavaField(thisJavaObject, "longValue");
+
+		try{
+			byte aLongValue = longValueField.getByte(thisJavaObject);
+			fail("Missing illegal argument exception from JavaField.getByte(longValue)");
+		} catch (IllegalArgumentException e) {
+			// expected
+		}	
+	}
+	
+	public void testIntValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField intValueField = getJavaField(thisJavaObject, "intValue");
+
+		try{
+			byte aIntValue = intValueField.getByte(thisJavaObject);
+			fail("Missing illegal argument exception from JavaField.getByte(intValue)");
+		} catch (IllegalArgumentException e) {
+			// expected
+		}	
+	}
+	
+	public void testCharValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField charValueField = getJavaField(thisJavaObject, "charValue");
+
+		try{
+			byte aCharValue = charValueField.getByte(thisJavaObject);
+			fail("Missing illegal argument exception from JavaField.getByte(charValue)");
+		} catch (IllegalArgumentException e) {
+			// expected
+		}	
+	}
+	
+	public void testShortValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField shortValueField = getJavaField(thisJavaObject, "shortValue");
+
+		try{
+			byte aShortValue = shortValueField.getByte(thisJavaObject);
+			fail("Missing illegal argument exception from JavaField.getByte(shortValue)");
+		} catch (IllegalArgumentException e) {
+			// expected
+		}	
+	}
+	
+	public void testBooleanValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField booleanValueField = getJavaField(thisJavaObject, "booleanValue");
+		
+		try{
+			byte aBooleanValue = booleanValueField.getByte(thisJavaObject);
+			fail("Missing illegal argument exception from JavaField.getByte(booleanValue)");
+		} catch (IllegalArgumentException e) {
+			// expected
+		}
+	}
+	
+	public void testObjectReference() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField objectReferenceField = getJavaField(thisJavaObject, "objectReference");
+		
+		try{
+			byte anObjectReference = objectReferenceField.getByte(thisJavaObject);
+			fail("Missing illegal argument exception from JavaField.getByte(objectReference)");
+		} catch (IllegalArgumentException e) {
+			// expected
+		}
+	}
+}

Propchange: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/javaruntime/TestJavaField_getByte.java
------------------------------------------------------------------------------
    svn:eol-style = native