incubator-kato-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From monte...@apache.org
Subject svn commit: r883384 [28/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/...
Date Mon, 23 Nov 2009 15:54:15 GMT
Modified: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/javaruntime/TestJavaField_getChar.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_getChar.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_getChar.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/javaruntime/TestJavaField_getChar.java Mon Nov 23 15:53:48 2009
@@ -1,179 +1,179 @@
-/*******************************************************************************
- * 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_getChar;
-
-
-/**
- * Test JavaField.getChar() against various fields and values.
- * 
- */
-public class TestJavaField_getChar extends TCKJavaRuntimeTestcase {
-	
-	SetupJavaField_getChar setup=new SetupJavaField_getChar();
-	
-	static JavaObject thisObject = null;	
-	public JavaObject getScenerioReference() {
-		if (thisObject == null) {
-			thisObject = super.getScenerioReference();
-		}	
-		return thisObject;		
-	}
-	
-	public void testMaxCharValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField maxCharField = getJavaField(thisJavaObject, "maxChar");
-		
-		char maxCharValue = maxCharField.getChar(thisJavaObject);
-		
-		assertEquals(setup.maxChar, maxCharValue);		
-	}
-	
-	public void testMinCharValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField minCharField = getJavaField(thisJavaObject, "minChar");
-		
-		char minCharValue = minCharField.getChar(thisJavaObject);
-		
-		assertEquals(setup.minChar, minCharValue);		
-	}
-
-	public void testStaticMinCharValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField minCharField = getJavaField(thisJavaObject, "staticMinChar");
-		
-		char minCharValue = minCharField.getChar(null);
-		
-		assertEquals(SetupJavaField_getChar.staticMinChar, minCharValue);		
-	}
-	
-	public void testZeroCharValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField zeroCharField = getJavaField(thisJavaObject, "zeroChar");
-		
-		char zeroCharValue = zeroCharField.getChar(thisJavaObject);
-		
-		assertEquals(setup.zeroChar, zeroCharValue);		
-	}
-	
-	public void testPosCharValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField posCharField = getJavaField(thisJavaObject, "posChar");
-		
-		char posCharValue = posCharField.getChar(thisJavaObject);
-		
-		assertEquals(setup.posChar, posCharValue);		
-	}
-
-
-	public void testDoubleValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField doubleValueField = getJavaField(thisJavaObject, "doubleValue");
-
-		try{
-			char aDoubleValue = doubleValueField.getChar(thisJavaObject);
-			fail("Missing illegal argument exception from JavaField.getChar(doubleValue)");
-		} catch (IllegalArgumentException e) {
-			// expected
-		}	
-	}
-	
-	public void testFloatValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField floatValueField = getJavaField(thisJavaObject, "floatValue");
-
-		try{
-			char aFloatValue = floatValueField.getChar(thisJavaObject);
-			fail("Missing illegal argument exception from JavaField.getChar(floatValue)");
-		} catch (IllegalArgumentException e) {
-			// expected
-		}	
-	}
-	
-	public void testLongValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField longValueField = getJavaField(thisJavaObject, "longValue");
-
-		try{
-			char aLongValue = longValueField.getChar(thisJavaObject);
-			fail("Missing illegal argument exception from JavaField.getChar(longValue)");
-		} catch (IllegalArgumentException e) {
-			// expected
-		}	
-	}
-	
-	public void testIntValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField intValueField = getJavaField(thisJavaObject, "intValue");
-
-		try{
-			char aIntValue = intValueField.getChar(thisJavaObject);
-			fail("Missing illegal argument exception from JavaField.getChar(intValue)");
-		} catch (IllegalArgumentException e) {
-			// expected
-		}	
-	}
-	
-	public void testByteValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField byteValueField = getJavaField(thisJavaObject, "byteValue");
-
-		try{
-			char aByteValue = byteValueField.getChar(thisJavaObject);
-			fail("Missing illegal argument exception from JavaField.getChar(byteValue)");
-		} catch (IllegalArgumentException e) {
-			// expected
-		}	
-	}
-	
-	public void testShortValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField shortValueField = getJavaField(thisJavaObject, "shortValue");
-
-		try{
-			char aShortValue = shortValueField.getChar(thisJavaObject);
-			fail("Missing illegal argument exception from JavaField.getChar(shortValue)");
-		} catch (IllegalArgumentException e) {
-			// expected
-		}	
-	}
-	public void testBooleanValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField booleanValueField = getJavaField(thisJavaObject, "booleanValue");
-		
-		try{
-			char aBooleanValue = booleanValueField.getChar(thisJavaObject);
-			fail("Missing illegal argument exception from JavaField.getChar(booleanValue)");
-		} catch (IllegalArgumentException e) {
-			// expected
-		}
-	}
-	
-	public void testObjectReference() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField objectReferenceField = getJavaField(thisJavaObject, "objectReference");
-		
-		try{
-			char anObjectReference = objectReferenceField.getChar(thisJavaObject);
-			fail("Missing illegal argument exception from JavaField.getChar(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_getChar;
+
+
+/**
+ * Test JavaField.getChar() against various fields and values.
+ * 
+ */
+public class TestJavaField_getChar extends TCKJavaRuntimeTestcase {
+	
+	SetupJavaField_getChar setup=new SetupJavaField_getChar();
+	
+	static JavaObject thisObject = null;	
+	public JavaObject getScenerioReference() {
+		if (thisObject == null) {
+			thisObject = super.getScenerioReference();
+		}	
+		return thisObject;		
+	}
+	
+	public void testMaxCharValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField maxCharField = getJavaField(thisJavaObject, "maxChar");
+		
+		char maxCharValue = maxCharField.getChar(thisJavaObject);
+		
+		assertEquals(setup.maxChar, maxCharValue);		
+	}
+	
+	public void testMinCharValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField minCharField = getJavaField(thisJavaObject, "minChar");
+		
+		char minCharValue = minCharField.getChar(thisJavaObject);
+		
+		assertEquals(setup.minChar, minCharValue);		
+	}
+
+	public void testStaticMinCharValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField minCharField = getJavaField(thisJavaObject, "staticMinChar");
+		
+		char minCharValue = minCharField.getChar(null);
+		
+		assertEquals(SetupJavaField_getChar.staticMinChar, minCharValue);		
+	}
+	
+	public void testZeroCharValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField zeroCharField = getJavaField(thisJavaObject, "zeroChar");
+		
+		char zeroCharValue = zeroCharField.getChar(thisJavaObject);
+		
+		assertEquals(setup.zeroChar, zeroCharValue);		
+	}
+	
+	public void testPosCharValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField posCharField = getJavaField(thisJavaObject, "posChar");
+		
+		char posCharValue = posCharField.getChar(thisJavaObject);
+		
+		assertEquals(setup.posChar, posCharValue);		
+	}
+
+
+	public void testDoubleValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField doubleValueField = getJavaField(thisJavaObject, "doubleValue");
+
+		try{
+			char aDoubleValue = doubleValueField.getChar(thisJavaObject);
+			fail("Missing illegal argument exception from JavaField.getChar(doubleValue)");
+		} catch (IllegalArgumentException e) {
+			// expected
+		}	
+	}
+	
+	public void testFloatValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField floatValueField = getJavaField(thisJavaObject, "floatValue");
+
+		try{
+			char aFloatValue = floatValueField.getChar(thisJavaObject);
+			fail("Missing illegal argument exception from JavaField.getChar(floatValue)");
+		} catch (IllegalArgumentException e) {
+			// expected
+		}	
+	}
+	
+	public void testLongValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField longValueField = getJavaField(thisJavaObject, "longValue");
+
+		try{
+			char aLongValue = longValueField.getChar(thisJavaObject);
+			fail("Missing illegal argument exception from JavaField.getChar(longValue)");
+		} catch (IllegalArgumentException e) {
+			// expected
+		}	
+	}
+	
+	public void testIntValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField intValueField = getJavaField(thisJavaObject, "intValue");
+
+		try{
+			char aIntValue = intValueField.getChar(thisJavaObject);
+			fail("Missing illegal argument exception from JavaField.getChar(intValue)");
+		} catch (IllegalArgumentException e) {
+			// expected
+		}	
+	}
+	
+	public void testByteValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField byteValueField = getJavaField(thisJavaObject, "byteValue");
+
+		try{
+			char aByteValue = byteValueField.getChar(thisJavaObject);
+			fail("Missing illegal argument exception from JavaField.getChar(byteValue)");
+		} catch (IllegalArgumentException e) {
+			// expected
+		}	
+	}
+	
+	public void testShortValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField shortValueField = getJavaField(thisJavaObject, "shortValue");
+
+		try{
+			char aShortValue = shortValueField.getChar(thisJavaObject);
+			fail("Missing illegal argument exception from JavaField.getChar(shortValue)");
+		} catch (IllegalArgumentException e) {
+			// expected
+		}	
+	}
+	public void testBooleanValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField booleanValueField = getJavaField(thisJavaObject, "booleanValue");
+		
+		try{
+			char aBooleanValue = booleanValueField.getChar(thisJavaObject);
+			fail("Missing illegal argument exception from JavaField.getChar(booleanValue)");
+		} catch (IllegalArgumentException e) {
+			// expected
+		}
+	}
+	
+	public void testObjectReference() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField objectReferenceField = getJavaField(thisJavaObject, "objectReference");
+		
+		try{
+			char anObjectReference = objectReferenceField.getChar(thisJavaObject);
+			fail("Missing illegal argument exception from JavaField.getChar(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_getChar.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_getDeclaringClass.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_getDeclaringClass.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_getDeclaringClass.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/javaruntime/TestJavaField_getDeclaringClass.java Mon Nov 23 15:53:48 2009
@@ -1,47 +1,47 @@
-/*******************************************************************************
- * 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.JavaClass;
-import javax.tools.diagnostics.runtime.java.JavaField;
-import javax.tools.diagnostics.runtime.java.JavaObject;
-
-import org.apache.kato.tck.harness.TCKJavaRuntimeTestcase;
-
-
-/**
- * Tests that getDeclaringClass is working.
- * 
- */
-public class TestJavaField_getDeclaringClass extends TCKJavaRuntimeTestcase {
-	
-	
-	public void testInstanceField() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaClass thisJavaClass = thisJavaObject.getJavaClass();
-		
-		JavaField instanceFieldField = getJavaField(thisJavaClass, "instanceField");
-		
-		assertEquals(thisJavaClass, instanceFieldField.getDeclaringClass());		
-	}
-	
-	public void testStaticField() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaClass thisJavaClass = thisJavaObject.getJavaClass();
-		
-		JavaField staticFieldField = getJavaField(thisJavaClass, "staticField");
-		
-		assertEquals(thisJavaClass, staticFieldField.getDeclaringClass());
-	}
-}
+/*******************************************************************************
+ * 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.JavaClass;
+import javax.tools.diagnostics.runtime.java.JavaField;
+import javax.tools.diagnostics.runtime.java.JavaObject;
+
+import org.apache.kato.tck.harness.TCKJavaRuntimeTestcase;
+
+
+/**
+ * Tests that getDeclaringClass is working.
+ * 
+ */
+public class TestJavaField_getDeclaringClass extends TCKJavaRuntimeTestcase {
+	
+	
+	public void testInstanceField() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaClass thisJavaClass = thisJavaObject.getJavaClass();
+		
+		JavaField instanceFieldField = getJavaField(thisJavaClass, "instanceField");
+		
+		assertEquals(thisJavaClass, instanceFieldField.getDeclaringClass());		
+	}
+	
+	public void testStaticField() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaClass thisJavaClass = thisJavaObject.getJavaClass();
+		
+		JavaField staticFieldField = getJavaField(thisJavaClass, "staticField");
+		
+		assertEquals(thisJavaClass, staticFieldField.getDeclaringClass());
+	}
+}

Propchange: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/javaruntime/TestJavaField_getDeclaringClass.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_getDouble.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_getDouble.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_getDouble.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/javaruntime/TestJavaField_getDouble.java Mon Nov 23 15:53:48 2009
@@ -1,183 +1,183 @@
-/*******************************************************************************
- * 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_getDouble;
-
-
-/**
- * Test JavaField.getDouble() against various fields and values.
- * 
- */
-public class TestJavaField_getDouble extends TCKJavaRuntimeTestcase {
-	
-	SetupJavaField_getDouble setup=new SetupJavaField_getDouble();
-	
-	static JavaObject thisObject = null;	
-	public JavaObject getScenerioReference() {
-		if (thisObject == null) {
-			thisObject = super.getScenerioReference();
-		}	
-		return thisObject;		
-	}
-	
-	public void testMaxDoubleValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField maxDoubleField = getJavaField(thisJavaObject, "maxDouble");
-		
-		double maxDoubleValue = maxDoubleField.getDouble(thisJavaObject);
-		
-		assertEquals(setup.maxDouble, maxDoubleValue, 0.0);		
-	}
-	
-	public void testMinDoubleValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField minDoubleField = getJavaField(thisJavaObject, "minDouble");
-		
-		double minDoubleValue = minDoubleField.getDouble(thisJavaObject);
-		
-		assertEquals(setup.minDouble, minDoubleValue, 0.0);	
-	}
-
-	public void testStaticMinDoubleValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField minDoubleField = getJavaField(thisJavaObject, "staticMinDouble");
-		
-		double minDoubleValue = minDoubleField.getDouble(null);
-		
-		assertEquals(SetupJavaField_getDouble.staticMinDouble, minDoubleValue, 0.0);		
-	}
-	
-	public void testZeroDoubleValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField zeroDoubleField = getJavaField(thisJavaObject, "zeroDouble");
-		
-		double zeroDoubleValue = zeroDoubleField.getDouble(thisJavaObject);
-		
-		assertEquals(setup.zeroDouble, zeroDoubleValue, 0.0);		
-	}
-	
-	public void testNegDoubleValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField negDoubleField = getJavaField(thisJavaObject, "negDouble");
-		
-		double negDoubleValue = negDoubleField.getDouble(thisJavaObject);
-		
-		assertEquals(setup.negDouble, negDoubleValue, 0.0);		
-	}	
-	
-	public void testPosDoubleValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField posDoubleField = getJavaField(thisJavaObject, "posDouble");
-		
-		double posDoubleValue = posDoubleField.getDouble(thisJavaObject);
-		
-		assertEquals(setup.posDouble, posDoubleValue, 0.0);		
-	}
-
-	public void testFloatValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField floatValueField = getJavaField(thisJavaObject, "floatValue");
-
-		try{
-			double aFloatValue = floatValueField.getDouble(thisJavaObject);
-		} catch (IllegalArgumentException e) {
-			fail("Unexpected illegal argument exception from JavaField.getDouble(floatValue)");
-		}	
-	}
-	
-	public void testLongValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField longValueField = getJavaField(thisJavaObject, "longValue");
-
-		try{
-			double aLongValue = longValueField.getDouble(thisJavaObject);
-		} catch (IllegalArgumentException e) {
-			fail("Unexpected illegal argument exception from JavaField.getDouble(longValue)");
-		}	
-	}
-	
-	public void testIntValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField intValueField = getJavaField(thisJavaObject, "intValue");
-
-		try{
-			double aIntValue = intValueField.getDouble(thisJavaObject);
-		} catch (IllegalArgumentException e) {
-			fail("Unexpected illegal argument exception from JavaField.getDouble(intValue)");
-		}	
-	}
-	
-	public void testByteValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField byteValueField = getJavaField(thisJavaObject, "byteValue");
-
-		try{
-			double aByteValue = byteValueField.getDouble(thisJavaObject);
-		} catch (IllegalArgumentException e) {
-			fail("Unexpected illegal argument exception from JavaField.getDouble(byteValue)");
-		}	
-	}
-	
-	public void testCharValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField charValueField = getJavaField(thisJavaObject, "charValue");
-
-		try{
-			double aCharValue = charValueField.getDouble(thisJavaObject);
-		} catch (IllegalArgumentException e) {
-			fail("Unexpected illegal argument exception from JavaField.getDouble(charValue)");
-		}	
-	}
-	
-	public void testShortValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField doubleValueField = getJavaField(thisJavaObject, "shortValue");
-
-		try{
-			double aShortValue = doubleValueField.getDouble(thisJavaObject);
-		} catch (IllegalArgumentException e) {
-			fail("Unexpected illegal argument exception from JavaField.getDouble(shortValue)");
-		}	
-	}
-
-	
-	public void testBooleanValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField booleanValueField = getJavaField(thisJavaObject, "booleanValue");
-		
-		try{
-			double aBooleanValue = booleanValueField.getDouble(thisJavaObject);
-			fail("Missing illegal argument exception from JavaField.getDouble(booleanValue)");
-		} catch (IllegalArgumentException e) {
-			// expected
-		}
-	}
-	
-	public void testObjectReference() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField objectReferenceField = getJavaField(thisJavaObject, "objectReference");
-		
-		try{
-			double anObjectReference = objectReferenceField.getDouble(thisJavaObject);
-			fail("Missing illegal argument exception from JavaField.getDouble(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_getDouble;
+
+
+/**
+ * Test JavaField.getDouble() against various fields and values.
+ * 
+ */
+public class TestJavaField_getDouble extends TCKJavaRuntimeTestcase {
+	
+	SetupJavaField_getDouble setup=new SetupJavaField_getDouble();
+	
+	static JavaObject thisObject = null;	
+	public JavaObject getScenerioReference() {
+		if (thisObject == null) {
+			thisObject = super.getScenerioReference();
+		}	
+		return thisObject;		
+	}
+	
+	public void testMaxDoubleValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField maxDoubleField = getJavaField(thisJavaObject, "maxDouble");
+		
+		double maxDoubleValue = maxDoubleField.getDouble(thisJavaObject);
+		
+		assertEquals(setup.maxDouble, maxDoubleValue, 0.0);		
+	}
+	
+	public void testMinDoubleValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField minDoubleField = getJavaField(thisJavaObject, "minDouble");
+		
+		double minDoubleValue = minDoubleField.getDouble(thisJavaObject);
+		
+		assertEquals(setup.minDouble, minDoubleValue, 0.0);	
+	}
+
+	public void testStaticMinDoubleValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField minDoubleField = getJavaField(thisJavaObject, "staticMinDouble");
+		
+		double minDoubleValue = minDoubleField.getDouble(null);
+		
+		assertEquals(SetupJavaField_getDouble.staticMinDouble, minDoubleValue, 0.0);		
+	}
+	
+	public void testZeroDoubleValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField zeroDoubleField = getJavaField(thisJavaObject, "zeroDouble");
+		
+		double zeroDoubleValue = zeroDoubleField.getDouble(thisJavaObject);
+		
+		assertEquals(setup.zeroDouble, zeroDoubleValue, 0.0);		
+	}
+	
+	public void testNegDoubleValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField negDoubleField = getJavaField(thisJavaObject, "negDouble");
+		
+		double negDoubleValue = negDoubleField.getDouble(thisJavaObject);
+		
+		assertEquals(setup.negDouble, negDoubleValue, 0.0);		
+	}	
+	
+	public void testPosDoubleValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField posDoubleField = getJavaField(thisJavaObject, "posDouble");
+		
+		double posDoubleValue = posDoubleField.getDouble(thisJavaObject);
+		
+		assertEquals(setup.posDouble, posDoubleValue, 0.0);		
+	}
+
+	public void testFloatValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField floatValueField = getJavaField(thisJavaObject, "floatValue");
+
+		try{
+			double aFloatValue = floatValueField.getDouble(thisJavaObject);
+		} catch (IllegalArgumentException e) {
+			fail("Unexpected illegal argument exception from JavaField.getDouble(floatValue)");
+		}	
+	}
+	
+	public void testLongValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField longValueField = getJavaField(thisJavaObject, "longValue");
+
+		try{
+			double aLongValue = longValueField.getDouble(thisJavaObject);
+		} catch (IllegalArgumentException e) {
+			fail("Unexpected illegal argument exception from JavaField.getDouble(longValue)");
+		}	
+	}
+	
+	public void testIntValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField intValueField = getJavaField(thisJavaObject, "intValue");
+
+		try{
+			double aIntValue = intValueField.getDouble(thisJavaObject);
+		} catch (IllegalArgumentException e) {
+			fail("Unexpected illegal argument exception from JavaField.getDouble(intValue)");
+		}	
+	}
+	
+	public void testByteValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField byteValueField = getJavaField(thisJavaObject, "byteValue");
+
+		try{
+			double aByteValue = byteValueField.getDouble(thisJavaObject);
+		} catch (IllegalArgumentException e) {
+			fail("Unexpected illegal argument exception from JavaField.getDouble(byteValue)");
+		}	
+	}
+	
+	public void testCharValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField charValueField = getJavaField(thisJavaObject, "charValue");
+
+		try{
+			double aCharValue = charValueField.getDouble(thisJavaObject);
+		} catch (IllegalArgumentException e) {
+			fail("Unexpected illegal argument exception from JavaField.getDouble(charValue)");
+		}	
+	}
+	
+	public void testShortValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField doubleValueField = getJavaField(thisJavaObject, "shortValue");
+
+		try{
+			double aShortValue = doubleValueField.getDouble(thisJavaObject);
+		} catch (IllegalArgumentException e) {
+			fail("Unexpected illegal argument exception from JavaField.getDouble(shortValue)");
+		}	
+	}
+
+	
+	public void testBooleanValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField booleanValueField = getJavaField(thisJavaObject, "booleanValue");
+		
+		try{
+			double aBooleanValue = booleanValueField.getDouble(thisJavaObject);
+			fail("Missing illegal argument exception from JavaField.getDouble(booleanValue)");
+		} catch (IllegalArgumentException e) {
+			// expected
+		}
+	}
+	
+	public void testObjectReference() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField objectReferenceField = getJavaField(thisJavaObject, "objectReference");
+		
+		try{
+			double anObjectReference = objectReferenceField.getDouble(thisJavaObject);
+			fail("Missing illegal argument exception from JavaField.getDouble(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_getDouble.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_getFloat.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_getFloat.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_getFloat.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/javaruntime/TestJavaField_getFloat.java Mon Nov 23 15:53:48 2009
@@ -1,185 +1,185 @@
-/*******************************************************************************
- * 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_getFloat;
-
-
-/**
- * Test JavaField.getFloat() against various fields and values.
- * 
- */
-public class TestJavaField_getFloat extends TCKJavaRuntimeTestcase {
-	
-	SetupJavaField_getFloat setup=new SetupJavaField_getFloat();
-	
-	static JavaObject thisObject = null;	
-	public JavaObject getScenerioReference() {
-		if (thisObject == null) {
-			thisObject = super.getScenerioReference();
-		}	
-		return thisObject;		
-	}
-	
-	public void testMaxFloatValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField maxFloatField = getJavaField(thisJavaObject, "maxFloat");
-		
-		float maxFloatValue = maxFloatField.getFloat(thisJavaObject);
-		
-		assertEquals(setup.maxFloat, maxFloatValue, 0.0);		
-	}
-	
-	public void testMinFloatValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField minFloatField = getJavaField(thisJavaObject, "minFloat");
-		
-		float minFloatValue = minFloatField.getFloat(thisJavaObject);
-		
-		assertEquals(setup.minFloat, minFloatValue, 0.0);	
-	}
-
-	public void testStaticMinFloatValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField minFloatField = getJavaField(thisJavaObject, "staticMinFloat");
-		
-		float minFloatValue = minFloatField.getFloat(null);
-		
-		assertEquals(SetupJavaField_getFloat.staticMinFloat, minFloatValue, 0.0);		
-	}
-	
-	public void testZeroFloatValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField zeroFloatField = getJavaField(thisJavaObject, "zeroFloat");
-		
-		float zeroFloatValue = zeroFloatField.getFloat(thisJavaObject);
-		
-		assertEquals(setup.zeroFloat, zeroFloatValue, 0.0);		
-	}
-	
-	public void testNegFloatValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField negFloatField = getJavaField(thisJavaObject, "negFloat");
-		
-		float negFloatValue = negFloatField.getFloat(thisJavaObject);
-		
-		assertEquals(setup.negFloat, negFloatValue, 0.0);		
-	}	
-	
-	public void testPosFloatValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField posFloatField = getJavaField(thisJavaObject, "posFloat");
-		
-		float posFloatValue = posFloatField.getFloat(thisJavaObject);
-		
-		assertEquals(setup.posFloat, posFloatValue, 0.0);		
-	}
-
-
-	public void testDoubleValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField doubleValueField = getJavaField(thisJavaObject, "doubleValue");
-
-		try{
-			float aDoubleValue = doubleValueField.getFloat(thisJavaObject);
-			fail("Missing illegal argument exception from JavaField.getFloat(doubleValue)");
-		} catch (IllegalArgumentException e) {
-			// expected
-		}	
-	}
-	
-	public void testLongValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField longValueField = getJavaField(thisJavaObject, "longValue");
-
-		try{
-			float aLongValue = longValueField.getFloat(thisJavaObject);
-		} catch (IllegalArgumentException e) {
-			fail("Unexpected illegal argument exception from JavaField.getFloat(longValue)");
-		}	
-	}
-	
-	public void testIntValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField intValueField = getJavaField(thisJavaObject, "intValue");
-
-		try{
-			float aIntValue = intValueField.getFloat(thisJavaObject);
-		} catch (IllegalArgumentException e) {
-			fail("Unexpected illegal argument exception from JavaField.getFloat(intValue)");
-		}	
-	}
-	
-	public void testByteValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField byteValueField = getJavaField(thisJavaObject, "byteValue");
-
-		try{
-			float aByteValue = byteValueField.getFloat(thisJavaObject);
-		} catch (IllegalArgumentException e) {
-			fail("Unexpected illegal argument exception from JavaField.getFloat(byteValue)");
-		}	
-	}
-	
-	public void testCharValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField charValueField = getJavaField(thisJavaObject, "charValue");
-
-		try{
-			float aCharValue = charValueField.getFloat(thisJavaObject);
-		} catch (IllegalArgumentException e) {
-			fail("Unexpected illegal argument exception from JavaField.getFloat(charValue)");
-		}	
-	}
-	
-	public void testShortValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField floatValueField = getJavaField(thisJavaObject, "floatValue");
-
-		try{
-			float aShortValue = floatValueField.getFloat(thisJavaObject);
-		} catch (IllegalArgumentException e) {
-			fail("Unexpected illegal argument exception from JavaField.getFloat(floatValue)");
-		}	
-	}
-	
-	
-	public void testBooleanValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField booleanValueField = getJavaField(thisJavaObject, "booleanValue");
-		
-		try{
-			float aBooleanValue = booleanValueField.getFloat(thisJavaObject);
-			fail("Missing illegal argument exception from JavaField.getFloat(booleanValue)");
-		} catch (IllegalArgumentException e) {
-			// expected
-		}
-	}
-	
-	public void testObjectReference() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField objectReferenceField = getJavaField(thisJavaObject, "objectReference");
-		
-		try{
-			float anObjectReference = objectReferenceField.getFloat(thisJavaObject);
-			fail("Missing illegal argument exception from JavaField.getFloat(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_getFloat;
+
+
+/**
+ * Test JavaField.getFloat() against various fields and values.
+ * 
+ */
+public class TestJavaField_getFloat extends TCKJavaRuntimeTestcase {
+	
+	SetupJavaField_getFloat setup=new SetupJavaField_getFloat();
+	
+	static JavaObject thisObject = null;	
+	public JavaObject getScenerioReference() {
+		if (thisObject == null) {
+			thisObject = super.getScenerioReference();
+		}	
+		return thisObject;		
+	}
+	
+	public void testMaxFloatValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField maxFloatField = getJavaField(thisJavaObject, "maxFloat");
+		
+		float maxFloatValue = maxFloatField.getFloat(thisJavaObject);
+		
+		assertEquals(setup.maxFloat, maxFloatValue, 0.0);		
+	}
+	
+	public void testMinFloatValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField minFloatField = getJavaField(thisJavaObject, "minFloat");
+		
+		float minFloatValue = minFloatField.getFloat(thisJavaObject);
+		
+		assertEquals(setup.minFloat, minFloatValue, 0.0);	
+	}
+
+	public void testStaticMinFloatValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField minFloatField = getJavaField(thisJavaObject, "staticMinFloat");
+		
+		float minFloatValue = minFloatField.getFloat(null);
+		
+		assertEquals(SetupJavaField_getFloat.staticMinFloat, minFloatValue, 0.0);		
+	}
+	
+	public void testZeroFloatValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField zeroFloatField = getJavaField(thisJavaObject, "zeroFloat");
+		
+		float zeroFloatValue = zeroFloatField.getFloat(thisJavaObject);
+		
+		assertEquals(setup.zeroFloat, zeroFloatValue, 0.0);		
+	}
+	
+	public void testNegFloatValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField negFloatField = getJavaField(thisJavaObject, "negFloat");
+		
+		float negFloatValue = negFloatField.getFloat(thisJavaObject);
+		
+		assertEquals(setup.negFloat, negFloatValue, 0.0);		
+	}	
+	
+	public void testPosFloatValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField posFloatField = getJavaField(thisJavaObject, "posFloat");
+		
+		float posFloatValue = posFloatField.getFloat(thisJavaObject);
+		
+		assertEquals(setup.posFloat, posFloatValue, 0.0);		
+	}
+
+
+	public void testDoubleValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField doubleValueField = getJavaField(thisJavaObject, "doubleValue");
+
+		try{
+			float aDoubleValue = doubleValueField.getFloat(thisJavaObject);
+			fail("Missing illegal argument exception from JavaField.getFloat(doubleValue)");
+		} catch (IllegalArgumentException e) {
+			// expected
+		}	
+	}
+	
+	public void testLongValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField longValueField = getJavaField(thisJavaObject, "longValue");
+
+		try{
+			float aLongValue = longValueField.getFloat(thisJavaObject);
+		} catch (IllegalArgumentException e) {
+			fail("Unexpected illegal argument exception from JavaField.getFloat(longValue)");
+		}	
+	}
+	
+	public void testIntValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField intValueField = getJavaField(thisJavaObject, "intValue");
+
+		try{
+			float aIntValue = intValueField.getFloat(thisJavaObject);
+		} catch (IllegalArgumentException e) {
+			fail("Unexpected illegal argument exception from JavaField.getFloat(intValue)");
+		}	
+	}
+	
+	public void testByteValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField byteValueField = getJavaField(thisJavaObject, "byteValue");
+
+		try{
+			float aByteValue = byteValueField.getFloat(thisJavaObject);
+		} catch (IllegalArgumentException e) {
+			fail("Unexpected illegal argument exception from JavaField.getFloat(byteValue)");
+		}	
+	}
+	
+	public void testCharValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField charValueField = getJavaField(thisJavaObject, "charValue");
+
+		try{
+			float aCharValue = charValueField.getFloat(thisJavaObject);
+		} catch (IllegalArgumentException e) {
+			fail("Unexpected illegal argument exception from JavaField.getFloat(charValue)");
+		}	
+	}
+	
+	public void testShortValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField floatValueField = getJavaField(thisJavaObject, "floatValue");
+
+		try{
+			float aShortValue = floatValueField.getFloat(thisJavaObject);
+		} catch (IllegalArgumentException e) {
+			fail("Unexpected illegal argument exception from JavaField.getFloat(floatValue)");
+		}	
+	}
+	
+	
+	public void testBooleanValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField booleanValueField = getJavaField(thisJavaObject, "booleanValue");
+		
+		try{
+			float aBooleanValue = booleanValueField.getFloat(thisJavaObject);
+			fail("Missing illegal argument exception from JavaField.getFloat(booleanValue)");
+		} catch (IllegalArgumentException e) {
+			// expected
+		}
+	}
+	
+	public void testObjectReference() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField objectReferenceField = getJavaField(thisJavaObject, "objectReference");
+		
+		try{
+			float anObjectReference = objectReferenceField.getFloat(thisJavaObject);
+			fail("Missing illegal argument exception from JavaField.getFloat(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_getFloat.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_getInt.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_getInt.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_getInt.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/javaruntime/TestJavaField_getInt.java Mon Nov 23 15:53:48 2009
@@ -1,186 +1,186 @@
-/*******************************************************************************
- * 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_getInt;
-
-
-/**
- * Test JavaField.getInteger() against various fields and values.
- * 
- */
-public class TestJavaField_getInt extends TCKJavaRuntimeTestcase {
-	
-	SetupJavaField_getInt setup=new SetupJavaField_getInt();
-	
-	static JavaObject thisObject = null;	
-	public JavaObject getScenerioReference() {
-		if (thisObject == null) {
-			thisObject = super.getScenerioReference();
-		}	
-		return thisObject;		
-	}
-	
-	public void testMaxIntegerValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField maxIntegerField = getJavaField(thisJavaObject, "maxInteger");
-		
-		int maxIntegerValue = maxIntegerField.getInt(thisJavaObject);
-		
-		assertEquals(setup.maxInteger, maxIntegerValue);		
-	}
-	
-	public void testMinIntegerValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField minIntegerField = getJavaField(thisJavaObject, "minInteger");
-		
-		int minIntegerValue = minIntegerField.getInt(thisJavaObject);
-		
-		assertEquals(setup.minInteger, minIntegerValue);		
-	}
-
-	public void testStaticMinIntegerValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField minIntegerField = getJavaField(thisJavaObject, "staticMinInteger");
-		
-		int minIntegerValue = minIntegerField.getInt(null);
-		
-		assertEquals(SetupJavaField_getInt.staticMinInteger, minIntegerValue);		
-	}
-	
-	public void testZeroIntegerValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField zeroIntegerField = getJavaField(thisJavaObject, "zeroInteger");
-		
-		int zeroIntegerValue = zeroIntegerField.getInt(thisJavaObject);
-		
-		assertEquals(setup.zeroInteger, zeroIntegerValue);		
-	}
-	
-	public void testNegIntegerValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField negIntegerField = getJavaField(thisJavaObject, "negInteger");
-		
-		int negIntegerValue = negIntegerField.getInt(thisJavaObject);
-		
-		assertEquals(setup.negInteger, negIntegerValue);		
-	}	
-	
-	public void testPosIntegerValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField posIntegerField = getJavaField(thisJavaObject, "posInteger");
-		
-		int posIntegerValue = posIntegerField.getInt(thisJavaObject);
-		
-		assertEquals(setup.posInteger, posIntegerValue);		
-	}
-
-
-	public void testDoubleValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField doubleValueField = getJavaField(thisJavaObject, "doubleValue");
-
-		try{
-			int aDoubleValue = doubleValueField.getInt(thisJavaObject);
-			fail("Missing illegal argument exception from JavaField.getInt(doubleValue)");
-		} catch (IllegalArgumentException e) {
-			// expected
-		}	
-	}
-	
-	public void testFloatValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField floatValueField = getJavaField(thisJavaObject, "floatValue");
-
-		try{
-			int aFloatValue = floatValueField.getInt(thisJavaObject);
-			fail("Missing illegal argument exception from JavaField.getInt(floatValue)");
-		} catch (IllegalArgumentException e) {
-			// expected
-		}	
-	}
-	
-	public void testLongValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField longValueField = getJavaField(thisJavaObject, "longValue");
-
-		try{
-			int aLongValue = longValueField.getInt(thisJavaObject);
-			fail("Missing illegal argument exception from JavaField.getInt(longValue)");
-		} catch (IllegalArgumentException e) {
-			// expected
-		}	
-	}
-	
-	public void testByteValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField byteValueField = getJavaField(thisJavaObject, "byteValue");
-
-		try{
-			int aByteValue = byteValueField.getInt(thisJavaObject);
-		} catch (IllegalArgumentException e) {
-			fail("Unexpected illegal argument exception from JavaField.getInt(byteValue)");
-		}	
-	}
-	
-	public void testCharValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField charValueField = getJavaField(thisJavaObject, "charValue");
-
-		try{
-			int aCharValue = charValueField.getInt(thisJavaObject);
-		} catch (IllegalArgumentException e) {
-			fail("Unexpected illegal argument exception from JavaField.getInt(charValue)");
-		}	
-	}
-	
-	public void testShortValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField shortValueField = getJavaField(thisJavaObject, "shortValue");
-
-		try{
-			int aShortValue = shortValueField.getInt(thisJavaObject);
-		} catch (IllegalArgumentException e) {
-			fail("Unexpected illegal argument exception from JavaField.getInt(shortValue)");
-		}	
-	}
-	
-	public void testBooleanValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField booleanValueField = getJavaField(thisJavaObject, "booleanValue");
-		
-		try{
-			int aBooleanValue = booleanValueField.getInt(thisJavaObject);
-			fail("Missing illegal argument exception from JavaField.getInteger(booleanValue)");
-		} catch (IllegalArgumentException e) {
-			// expected
-		}
-	}
-	
-	public void testObjectReference() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField objectReferenceField = getJavaField(thisJavaObject, "objectReference");
-		
-		try{
-			int anObjectReference = objectReferenceField.getInt(thisJavaObject);
-			fail("Missing illegal argument exception from JavaField.getInteger(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_getInt;
+
+
+/**
+ * Test JavaField.getInteger() against various fields and values.
+ * 
+ */
+public class TestJavaField_getInt extends TCKJavaRuntimeTestcase {
+	
+	SetupJavaField_getInt setup=new SetupJavaField_getInt();
+	
+	static JavaObject thisObject = null;	
+	public JavaObject getScenerioReference() {
+		if (thisObject == null) {
+			thisObject = super.getScenerioReference();
+		}	
+		return thisObject;		
+	}
+	
+	public void testMaxIntegerValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField maxIntegerField = getJavaField(thisJavaObject, "maxInteger");
+		
+		int maxIntegerValue = maxIntegerField.getInt(thisJavaObject);
+		
+		assertEquals(setup.maxInteger, maxIntegerValue);		
+	}
+	
+	public void testMinIntegerValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField minIntegerField = getJavaField(thisJavaObject, "minInteger");
+		
+		int minIntegerValue = minIntegerField.getInt(thisJavaObject);
+		
+		assertEquals(setup.minInteger, minIntegerValue);		
+	}
+
+	public void testStaticMinIntegerValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField minIntegerField = getJavaField(thisJavaObject, "staticMinInteger");
+		
+		int minIntegerValue = minIntegerField.getInt(null);
+		
+		assertEquals(SetupJavaField_getInt.staticMinInteger, minIntegerValue);		
+	}
+	
+	public void testZeroIntegerValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField zeroIntegerField = getJavaField(thisJavaObject, "zeroInteger");
+		
+		int zeroIntegerValue = zeroIntegerField.getInt(thisJavaObject);
+		
+		assertEquals(setup.zeroInteger, zeroIntegerValue);		
+	}
+	
+	public void testNegIntegerValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField negIntegerField = getJavaField(thisJavaObject, "negInteger");
+		
+		int negIntegerValue = negIntegerField.getInt(thisJavaObject);
+		
+		assertEquals(setup.negInteger, negIntegerValue);		
+	}	
+	
+	public void testPosIntegerValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField posIntegerField = getJavaField(thisJavaObject, "posInteger");
+		
+		int posIntegerValue = posIntegerField.getInt(thisJavaObject);
+		
+		assertEquals(setup.posInteger, posIntegerValue);		
+	}
+
+
+	public void testDoubleValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField doubleValueField = getJavaField(thisJavaObject, "doubleValue");
+
+		try{
+			int aDoubleValue = doubleValueField.getInt(thisJavaObject);
+			fail("Missing illegal argument exception from JavaField.getInt(doubleValue)");
+		} catch (IllegalArgumentException e) {
+			// expected
+		}	
+	}
+	
+	public void testFloatValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField floatValueField = getJavaField(thisJavaObject, "floatValue");
+
+		try{
+			int aFloatValue = floatValueField.getInt(thisJavaObject);
+			fail("Missing illegal argument exception from JavaField.getInt(floatValue)");
+		} catch (IllegalArgumentException e) {
+			// expected
+		}	
+	}
+	
+	public void testLongValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField longValueField = getJavaField(thisJavaObject, "longValue");
+
+		try{
+			int aLongValue = longValueField.getInt(thisJavaObject);
+			fail("Missing illegal argument exception from JavaField.getInt(longValue)");
+		} catch (IllegalArgumentException e) {
+			// expected
+		}	
+	}
+	
+	public void testByteValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField byteValueField = getJavaField(thisJavaObject, "byteValue");
+
+		try{
+			int aByteValue = byteValueField.getInt(thisJavaObject);
+		} catch (IllegalArgumentException e) {
+			fail("Unexpected illegal argument exception from JavaField.getInt(byteValue)");
+		}	
+	}
+	
+	public void testCharValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField charValueField = getJavaField(thisJavaObject, "charValue");
+
+		try{
+			int aCharValue = charValueField.getInt(thisJavaObject);
+		} catch (IllegalArgumentException e) {
+			fail("Unexpected illegal argument exception from JavaField.getInt(charValue)");
+		}	
+	}
+	
+	public void testShortValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField shortValueField = getJavaField(thisJavaObject, "shortValue");
+
+		try{
+			int aShortValue = shortValueField.getInt(thisJavaObject);
+		} catch (IllegalArgumentException e) {
+			fail("Unexpected illegal argument exception from JavaField.getInt(shortValue)");
+		}	
+	}
+	
+	public void testBooleanValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField booleanValueField = getJavaField(thisJavaObject, "booleanValue");
+		
+		try{
+			int aBooleanValue = booleanValueField.getInt(thisJavaObject);
+			fail("Missing illegal argument exception from JavaField.getInteger(booleanValue)");
+		} catch (IllegalArgumentException e) {
+			// expected
+		}
+	}
+	
+	public void testObjectReference() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField objectReferenceField = getJavaField(thisJavaObject, "objectReference");
+		
+		try{
+			int anObjectReference = objectReferenceField.getInt(thisJavaObject);
+			fail("Missing illegal argument exception from JavaField.getInteger(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_getInt.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_getLong.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_getLong.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_getLong.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/javaruntime/TestJavaField_getLong.java Mon Nov 23 15:53:48 2009
@@ -1,184 +1,184 @@
-/*******************************************************************************
- * 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_getLong;
-
-
-/**
- * Test JavaField.getLong() against various fields and values.
- *
- */
-public class TestJavaField_getLong extends TCKJavaRuntimeTestcase {
-	
-	SetupJavaField_getLong setup=new SetupJavaField_getLong();
-	
-	static JavaObject thisObject = null;	
-	public JavaObject getScenerioReference() {
-		if (thisObject == null) {
-			thisObject = super.getScenerioReference();
-		}	
-		return thisObject;		
-	}
-	
-	public void testMaxLongValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField maxLongField = getJavaField(thisJavaObject, "maxLong");
-		
-		long maxLongValue = maxLongField.getLong(thisJavaObject);
-		
-		assertEquals(setup.maxLong, maxLongValue);		
-	}
-	
-	public void testMinLongValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField minLongField = getJavaField(thisJavaObject, "minLong");
-		
-		long minLongValue = minLongField.getLong(thisJavaObject);
-		
-		assertEquals(setup.minLong, minLongValue);		
-	}
-
-	public void testStaticMinLongValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField minLongField = getJavaField(thisJavaObject, "staticMinLong");
-		
-		long minLongValue = minLongField.getLong(null);
-		
-		assertEquals(SetupJavaField_getLong.staticMinLong, minLongValue);		
-	}
-	
-	public void testZeroLongValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField zeroLongField = getJavaField(thisJavaObject, "zeroLong");
-		
-		long zeroLongValue = zeroLongField.getLong(thisJavaObject);
-		
-		assertEquals(setup.zeroLong, zeroLongValue);		
-	}
-	
-	public void testNegLongValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField negLongField = getJavaField(thisJavaObject, "negLong");
-		
-		long negLongValue = negLongField.getLong(thisJavaObject);
-		
-		assertEquals(setup.negLong, negLongValue);		
-	}	
-	
-	public void testPosLongValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField posLongField = getJavaField(thisJavaObject, "posLong");
-		
-		long posLongValue = posLongField.getLong(thisJavaObject);
-		
-		assertEquals(setup.posLong, posLongValue);		
-	}
-
-	public void testDoubleValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField doubleValueField = getJavaField(thisJavaObject, "doubleValue");
-
-		try{
-			long aDoubleValue = doubleValueField.getLong(thisJavaObject);
-			fail("Missing illegal argument exception from JavaField.getLong(doubleValue)");
-		} catch (IllegalArgumentException e) {
-			// expected
-		}	
-	}
-	
-	public void testFloatValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField floatValueField = getJavaField(thisJavaObject, "floatValue");
-
-		try{
-			long aFloatValue = floatValueField.getLong(thisJavaObject);
-			fail("Missing illegal argument exception from JavaField.getLong(floatValue)");
-		} catch (IllegalArgumentException e) {
-			// expected
-		}	
-	}
-	
-	public void testIntValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField intValueField = getJavaField(thisJavaObject, "intValue");
-
-		try{
-			long aIntValue = intValueField.getLong(thisJavaObject);
-		} catch (IllegalArgumentException e) {
-			fail("Unexpected illegal argument exception from JavaField.getLong(intValue)");
-		}	
-	}
-	
-	public void testByteValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField byteValueField = getJavaField(thisJavaObject, "byteValue");
-
-		try{
-			long aByteValue = byteValueField.getLong(thisJavaObject);
-		} catch (IllegalArgumentException e) {
-			fail("Unexpected illegal argument exception from JavaField.getLong(byteValue)");
-		}	
-	}
-	
-	public void testCharValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField charValueField = getJavaField(thisJavaObject, "charValue");
-
-		try{
-			long aCharValue = charValueField.getLong(thisJavaObject);
-		} catch (IllegalArgumentException e) {
-			fail("Unexpected illegal argument exception from JavaField.getLong(charValue)");
-		}	
-	}
-	
-	public void testShortValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField shortValueField = getJavaField(thisJavaObject, "shortValue");
-
-		try{
-			long aShortValue = shortValueField.getLong(thisJavaObject);
-		} catch (IllegalArgumentException e) {
-			fail("Unexpected illegal argument exception from JavaField.getLong(shortValue)");
-		}	
-	}
-	
-	public void testBooleanValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField booleanValueField = getJavaField(thisJavaObject, "booleanValue");
-		
-		try{
-			long aBooleanValue = booleanValueField.getLong(thisJavaObject);
-			fail("Missing illegal argument exception from JavaField.getLong(booleanValue)");
-		} catch (IllegalArgumentException e) {
-			// expected
-		}
-	}
-	
-	public void testObjectReference() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField objectReferenceField = getJavaField(thisJavaObject, "objectReference");
-		
-		try{
-			long anObjectReference = objectReferenceField.getLong(thisJavaObject);
-			fail("Missing illegal argument exception from JavaField.getLong(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_getLong;
+
+
+/**
+ * Test JavaField.getLong() against various fields and values.
+ *
+ */
+public class TestJavaField_getLong extends TCKJavaRuntimeTestcase {
+	
+	SetupJavaField_getLong setup=new SetupJavaField_getLong();
+	
+	static JavaObject thisObject = null;	
+	public JavaObject getScenerioReference() {
+		if (thisObject == null) {
+			thisObject = super.getScenerioReference();
+		}	
+		return thisObject;		
+	}
+	
+	public void testMaxLongValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField maxLongField = getJavaField(thisJavaObject, "maxLong");
+		
+		long maxLongValue = maxLongField.getLong(thisJavaObject);
+		
+		assertEquals(setup.maxLong, maxLongValue);		
+	}
+	
+	public void testMinLongValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField minLongField = getJavaField(thisJavaObject, "minLong");
+		
+		long minLongValue = minLongField.getLong(thisJavaObject);
+		
+		assertEquals(setup.minLong, minLongValue);		
+	}
+
+	public void testStaticMinLongValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField minLongField = getJavaField(thisJavaObject, "staticMinLong");
+		
+		long minLongValue = minLongField.getLong(null);
+		
+		assertEquals(SetupJavaField_getLong.staticMinLong, minLongValue);		
+	}
+	
+	public void testZeroLongValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField zeroLongField = getJavaField(thisJavaObject, "zeroLong");
+		
+		long zeroLongValue = zeroLongField.getLong(thisJavaObject);
+		
+		assertEquals(setup.zeroLong, zeroLongValue);		
+	}
+	
+	public void testNegLongValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField negLongField = getJavaField(thisJavaObject, "negLong");
+		
+		long negLongValue = negLongField.getLong(thisJavaObject);
+		
+		assertEquals(setup.negLong, negLongValue);		
+	}	
+	
+	public void testPosLongValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField posLongField = getJavaField(thisJavaObject, "posLong");
+		
+		long posLongValue = posLongField.getLong(thisJavaObject);
+		
+		assertEquals(setup.posLong, posLongValue);		
+	}
+
+	public void testDoubleValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField doubleValueField = getJavaField(thisJavaObject, "doubleValue");
+
+		try{
+			long aDoubleValue = doubleValueField.getLong(thisJavaObject);
+			fail("Missing illegal argument exception from JavaField.getLong(doubleValue)");
+		} catch (IllegalArgumentException e) {
+			// expected
+		}	
+	}
+	
+	public void testFloatValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField floatValueField = getJavaField(thisJavaObject, "floatValue");
+
+		try{
+			long aFloatValue = floatValueField.getLong(thisJavaObject);
+			fail("Missing illegal argument exception from JavaField.getLong(floatValue)");
+		} catch (IllegalArgumentException e) {
+			// expected
+		}	
+	}
+	
+	public void testIntValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField intValueField = getJavaField(thisJavaObject, "intValue");
+
+		try{
+			long aIntValue = intValueField.getLong(thisJavaObject);
+		} catch (IllegalArgumentException e) {
+			fail("Unexpected illegal argument exception from JavaField.getLong(intValue)");
+		}	
+	}
+	
+	public void testByteValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField byteValueField = getJavaField(thisJavaObject, "byteValue");
+
+		try{
+			long aByteValue = byteValueField.getLong(thisJavaObject);
+		} catch (IllegalArgumentException e) {
+			fail("Unexpected illegal argument exception from JavaField.getLong(byteValue)");
+		}	
+	}
+	
+	public void testCharValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField charValueField = getJavaField(thisJavaObject, "charValue");
+
+		try{
+			long aCharValue = charValueField.getLong(thisJavaObject);
+		} catch (IllegalArgumentException e) {
+			fail("Unexpected illegal argument exception from JavaField.getLong(charValue)");
+		}	
+	}
+	
+	public void testShortValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField shortValueField = getJavaField(thisJavaObject, "shortValue");
+
+		try{
+			long aShortValue = shortValueField.getLong(thisJavaObject);
+		} catch (IllegalArgumentException e) {
+			fail("Unexpected illegal argument exception from JavaField.getLong(shortValue)");
+		}	
+	}
+	
+	public void testBooleanValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField booleanValueField = getJavaField(thisJavaObject, "booleanValue");
+		
+		try{
+			long aBooleanValue = booleanValueField.getLong(thisJavaObject);
+			fail("Missing illegal argument exception from JavaField.getLong(booleanValue)");
+		} catch (IllegalArgumentException e) {
+			// expected
+		}
+	}
+	
+	public void testObjectReference() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField objectReferenceField = getJavaField(thisJavaObject, "objectReference");
+		
+		try{
+			long anObjectReference = objectReferenceField.getLong(thisJavaObject);
+			fail("Missing illegal argument exception from JavaField.getLong(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_getLong.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_getModifiers.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_getModifiers.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_getModifiers.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/javaruntime/TestJavaField_getModifiers.java Mon Nov 23 15:53:48 2009
@@ -1,86 +1,86 @@
-/*******************************************************************************
- * 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.lang.reflect.Modifier;
-
-import javax.tools.diagnostics.runtime.java.JavaField;
-import javax.tools.diagnostics.runtime.java.JavaObject;
-
-import org.apache.kato.tck.harness.TCKJavaRuntimeTestcase;
-
-
-public class TestJavaField_getModifiers extends TCKJavaRuntimeTestcase {
-
-
-	static JavaObject thisObject = null;	
-	public JavaObject getScenerioReference() {
-		if (thisObject == null) {
-			thisObject = super.getScenerioReference();
-		}	
-		return thisObject;
-		
-	}
-
-	public void testFinalField() throws Exception {
-		JavaField field = getJavaField(getScenerioReference(), "finalField");
-		assertEquals(Modifier.FINAL, field.getModifiers() & 0xFF);
-	}
-	
-	public void testPrivateField() throws Exception {
-		JavaField field = getJavaField(getScenerioReference(), "privateField");
-		assertEquals(Modifier.PRIVATE, field.getModifiers() & 0xFF);
-	}	
-	
-	public void testProtectedField() throws Exception {
-		JavaField field = getJavaField(getScenerioReference(), "protectedField");
-		assertEquals(Modifier.PROTECTED, field.getModifiers() & 0xFF);
-	}
-	
-	public void testPublicField() throws Exception {
-		JavaField field = getJavaField(getScenerioReference(), "publicField");
-		assertEquals(Modifier.PUBLIC, field.getModifiers() & 0xFF);
-	}
-	
-	public void testStaticField() throws Exception {
-		JavaField field = getJavaField(getScenerioReference(), "staticField");
-		assertEquals(Modifier.STATIC, field.getModifiers() & 0xFF);
-	}
-	
-	public void testTransientField() throws Exception {
-		JavaField field = getJavaField(getScenerioReference(), "transientField");
-		assertEquals(Modifier.TRANSIENT, field.getModifiers() & 0xFF);
-	}
-	
-	public void testVolatileField() throws Exception {
-		JavaField field = getJavaField(getScenerioReference(), "volatileField");
-		assertEquals(Modifier.VOLATILE, field.getModifiers() & 0xFF);
-	}
-	
-	public void testDefaultField() throws Exception {
-		JavaField field = getJavaField(getScenerioReference(), "defaultField");
-		assertEquals(0, field.getModifiers() & 0xFF);
-	}
-	
-	public void testStaticPrivateVolatileTransientField() throws Exception {
-		JavaField field = getJavaField(getScenerioReference(), "staticPrivateVolatileTransientField");
-		assertEquals(Modifier.STATIC| Modifier.PRIVATE| Modifier.VOLATILE| Modifier.TRANSIENT
-				, field.getModifiers() & 0xFF);
-	}
-	public void testFinalProtectedField() throws Exception {
-		JavaField field = getJavaField(getScenerioReference(), "finalProtectedField");
-		assertEquals( Modifier.FINAL | Modifier.PROTECTED, field.getModifiers() & 0xFF);
-	}
-	
-}
+/*******************************************************************************
+ * 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.lang.reflect.Modifier;
+
+import javax.tools.diagnostics.runtime.java.JavaField;
+import javax.tools.diagnostics.runtime.java.JavaObject;
+
+import org.apache.kato.tck.harness.TCKJavaRuntimeTestcase;
+
+
+public class TestJavaField_getModifiers extends TCKJavaRuntimeTestcase {
+
+
+	static JavaObject thisObject = null;	
+	public JavaObject getScenerioReference() {
+		if (thisObject == null) {
+			thisObject = super.getScenerioReference();
+		}	
+		return thisObject;
+		
+	}
+
+	public void testFinalField() throws Exception {
+		JavaField field = getJavaField(getScenerioReference(), "finalField");
+		assertEquals(Modifier.FINAL, field.getModifiers() & 0xFF);
+	}
+	
+	public void testPrivateField() throws Exception {
+		JavaField field = getJavaField(getScenerioReference(), "privateField");
+		assertEquals(Modifier.PRIVATE, field.getModifiers() & 0xFF);
+	}	
+	
+	public void testProtectedField() throws Exception {
+		JavaField field = getJavaField(getScenerioReference(), "protectedField");
+		assertEquals(Modifier.PROTECTED, field.getModifiers() & 0xFF);
+	}
+	
+	public void testPublicField() throws Exception {
+		JavaField field = getJavaField(getScenerioReference(), "publicField");
+		assertEquals(Modifier.PUBLIC, field.getModifiers() & 0xFF);
+	}
+	
+	public void testStaticField() throws Exception {
+		JavaField field = getJavaField(getScenerioReference(), "staticField");
+		assertEquals(Modifier.STATIC, field.getModifiers() & 0xFF);
+	}
+	
+	public void testTransientField() throws Exception {
+		JavaField field = getJavaField(getScenerioReference(), "transientField");
+		assertEquals(Modifier.TRANSIENT, field.getModifiers() & 0xFF);
+	}
+	
+	public void testVolatileField() throws Exception {
+		JavaField field = getJavaField(getScenerioReference(), "volatileField");
+		assertEquals(Modifier.VOLATILE, field.getModifiers() & 0xFF);
+	}
+	
+	public void testDefaultField() throws Exception {
+		JavaField field = getJavaField(getScenerioReference(), "defaultField");
+		assertEquals(0, field.getModifiers() & 0xFF);
+	}
+	
+	public void testStaticPrivateVolatileTransientField() throws Exception {
+		JavaField field = getJavaField(getScenerioReference(), "staticPrivateVolatileTransientField");
+		assertEquals(Modifier.STATIC| Modifier.PRIVATE| Modifier.VOLATILE| Modifier.TRANSIENT
+				, field.getModifiers() & 0xFF);
+	}
+	public void testFinalProtectedField() throws Exception {
+		JavaField field = getJavaField(getScenerioReference(), "finalProtectedField");
+		assertEquals( Modifier.FINAL | Modifier.PROTECTED, field.getModifiers() & 0xFF);
+	}
+	
+}

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



Mime
View raw message