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 [29/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_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/TestJavaField_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/TestJavaField_getName.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/javaruntime/TestJavaField_getName.java Mon Nov 23 15:53:48 2009
@@ -1,78 +1,78 @@
-/*******************************************************************************
- * 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_getName;
-
-
-public class TestJavaField_getName extends TCKJavaRuntimeTestcase {
-	
-	SetupJavaField_getName setup=new SetupJavaField_getName();
-	
-	static JavaObject thisObject = null;	
-	public JavaObject getScenerioReference() {
-		if (thisObject == null) {
-			thisObject = super.getScenerioReference();
-		}	
-		return thisObject;		
-	}
-	
-	public void testUnicodeName() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField unicodeField = getJavaField(thisJavaObject, "\u0412\u043e\u0434\u043a\u0430");
-		
-		assertNotNull("Unable to find the field \u0412\u043e\u0434\u043a\u0430", unicodeField);
-		
-		int intValue = unicodeField.getInt(thisJavaObject);
-		
-		assertEquals(setup.\u0412\u043e\u0434\u043a\u0430, intValue);		
-	}
-	
-	public void testStaticUnicodeName() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField unicodeField = getJavaField(thisJavaObject, "\u0412\u043e\u0434\u043a\u0430_static");
-		
-		assertNotNull("Unable to find the field \u0412\u043e\u0434\u043a\u0430_static", unicodeField);
-		
-		int intValue = unicodeField.getInt(null);
-		
-		assertEquals(SetupJavaField_getName.\u0412\u043e\u0434\u043a\u0430_static, intValue);		
-	}
-	
-	public void testLongName() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField longField = getJavaField(thisJavaObject, "thisIsAnIncrediblyLongNameBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlah");
-		
-		assertNotNull("Unable to find the field thisIsAnIncrediblyLongNameBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlah", longField);
-		
-		byte byteValue = longField.getByte(thisJavaObject);
-		
-		assertEquals(setup.thisIsAnIncrediblyLongNameBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlah, byteValue);
-	}
-	
-	public void testLongStaticName() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField longField = getJavaField(thisJavaObject, "thisIsAnIncrediblyLongNameBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlah_static");
-		
-		assertNotNull("Unable to find the field thisIsAnIncrediblyLongNameBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlah_static", longField);
-		
-		byte byteValue = longField.getByte(thisJavaObject);
-		
-		assertEquals(SetupJavaField_getName.thisIsAnIncrediblyLongNameBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlah_static, byteValue);
-	}
-}
+/*******************************************************************************
+ * 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_getName;
+
+
+public class TestJavaField_getName extends TCKJavaRuntimeTestcase {
+	
+	SetupJavaField_getName setup=new SetupJavaField_getName();
+	
+	static JavaObject thisObject = null;	
+	public JavaObject getScenerioReference() {
+		if (thisObject == null) {
+			thisObject = super.getScenerioReference();
+		}	
+		return thisObject;		
+	}
+	
+	public void testUnicodeName() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField unicodeField = getJavaField(thisJavaObject, "\u0412\u043e\u0434\u043a\u0430");
+		
+		assertNotNull("Unable to find the field \u0412\u043e\u0434\u043a\u0430", unicodeField);
+		
+		int intValue = unicodeField.getInt(thisJavaObject);
+		
+		assertEquals(setup.\u0412\u043e\u0434\u043a\u0430, intValue);		
+	}
+	
+	public void testStaticUnicodeName() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField unicodeField = getJavaField(thisJavaObject, "\u0412\u043e\u0434\u043a\u0430_static");
+		
+		assertNotNull("Unable to find the field \u0412\u043e\u0434\u043a\u0430_static", unicodeField);
+		
+		int intValue = unicodeField.getInt(null);
+		
+		assertEquals(SetupJavaField_getName.\u0412\u043e\u0434\u043a\u0430_static, intValue);		
+	}
+	
+	public void testLongName() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField longField = getJavaField(thisJavaObject, "thisIsAnIncrediblyLongNameBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlah");
+		
+		assertNotNull("Unable to find the field thisIsAnIncrediblyLongNameBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlah", longField);
+		
+		byte byteValue = longField.getByte(thisJavaObject);
+		
+		assertEquals(setup.thisIsAnIncrediblyLongNameBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlah, byteValue);
+	}
+	
+	public void testLongStaticName() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField longField = getJavaField(thisJavaObject, "thisIsAnIncrediblyLongNameBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlah_static");
+		
+		assertNotNull("Unable to find the field thisIsAnIncrediblyLongNameBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlah_static", longField);
+		
+		byte byteValue = longField.getByte(thisJavaObject);
+		
+		assertEquals(SetupJavaField_getName.thisIsAnIncrediblyLongNameBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlah_static, byteValue);
+	}
+}

Propchange: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/javaruntime/TestJavaField_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_getShort.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_getShort.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_getShort.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/javaruntime/TestJavaField_getShort.java Mon Nov 23 15:53:48 2009
@@ -1,188 +1,188 @@
-/*******************************************************************************
- * 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_getShort;
-
-
-/**
- * Test JavaField.getShort() against various fields and values.
- * 
- */
-public class TestJavaField_getShort extends TCKJavaRuntimeTestcase {
-	
-	SetupJavaField_getShort setup=new SetupJavaField_getShort();
-	
-	static JavaObject thisObject = null;	
-	public JavaObject getScenerioReference() {
-		if (thisObject == null) {
-			thisObject = super.getScenerioReference();
-		}	
-		return thisObject;		
-	}
-	
-	public void testMaxShortValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField maxShortField = getJavaField(thisJavaObject, "maxShort");
-		
-		short maxShortValue = maxShortField.getShort(thisJavaObject);
-		
-		assertEquals(setup.maxShort, maxShortValue);		
-	}
-	
-	public void testMinShortValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField minShortField = getJavaField(thisJavaObject, "minShort");
-		
-		short minShortValue = minShortField.getShort(thisJavaObject);
-		
-		assertEquals(setup.minShort, minShortValue);		
-	}
-
-	public void testStaticMinShortValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField minShortField = getJavaField(thisJavaObject, "staticMinShort");
-		
-		short minShortValue = minShortField.getShort(null);
-		
-		assertEquals(SetupJavaField_getShort.staticMinShort, minShortValue);		
-	}
-	
-	public void testZeroShortValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField zeroShortField = getJavaField(thisJavaObject, "zeroShort");
-		
-		short zeroShortValue = zeroShortField.getShort(thisJavaObject);
-		
-		assertEquals(setup.zeroShort, zeroShortValue);		
-	}
-	
-	public void testNegShortValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField negShortField = getJavaField(thisJavaObject, "negShort");
-		
-		short negShortValue = negShortField.getShort(thisJavaObject);
-		
-		assertEquals(setup.negShort, negShortValue);		
-	}	
-	
-	public void testPosShortValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField posShortField = getJavaField(thisJavaObject, "posShort");
-		
-		short posShortValue = posShortField.getShort(thisJavaObject);
-		
-		assertEquals(setup.posShort, posShortValue);		
-	}
-
-
-	public void testDoubleValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField doubleValueField = getJavaField(thisJavaObject, "doubleValue");
-
-		try{
-			short aDoubleValue = doubleValueField.getShort(thisJavaObject);
-			fail("Missing illegal argument exception from JavaField.getShort(doubleValue)");
-		} catch (IllegalArgumentException e) {
-			// expected
-		}	
-	}
-	
-	public void testFloatValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField floatValueField = getJavaField(thisJavaObject, "floatValue");
-
-		try{
-			short aFloatValue = floatValueField.getShort(thisJavaObject);
-			fail("Missing illegal argument exception from JavaField.getShort(floatValue)");
-		} catch (IllegalArgumentException e) {
-			// expected
-		}	
-	}
-	
-	public void testLongValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField longValueField = getJavaField(thisJavaObject, "longValue");
-
-		try{
-			short aLongValue = longValueField.getShort(thisJavaObject);
-			fail("Missing illegal argument exception from JavaField.getShort(longValue)");
-		} catch (IllegalArgumentException e) {
-			// expected
-		}	
-	}
-	
-	public void testIntValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField intValueField = getJavaField(thisJavaObject, "intValue");
-
-		try{
-			short aIntValue = intValueField.getShort(thisJavaObject);
-			fail("Missing illegal argument exception from JavaField.getShort(intValue)");
-		} catch (IllegalArgumentException e) {
-			// expected
-		}	
-	}
-	
-	public void testByteValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField byteValueField = getJavaField(thisJavaObject, "byteValue");
-
-		try{
-			short aByteValue = byteValueField.getShort(thisJavaObject);
-		} catch (IllegalArgumentException e) {
-			fail("Unexpected illegal argument exception from JavaField.getShort(byteValue)");
-		}	
-	}
-	
-	public void testCharValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField charValueField = getJavaField(thisJavaObject, "charValue");
-
-		try{
-			short aShortValue = charValueField.getShort(thisJavaObject);
-			fail("Missing illegal argument exception from JavaField.getShort(charValue)");
-		} catch (IllegalArgumentException e) {
-			// expected
-		}	
-	}
-	
-	public void testBooleanValue() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField booleanValueField = getJavaField(thisJavaObject, "booleanValue");
-		
-		try{
-			short aBooleanValue = booleanValueField.getShort(thisJavaObject);
-			fail("Missing illegal argument exception from JavaField.getShort(booleanValue)");
-		} catch (IllegalArgumentException e) {
-			// expected
-		}
-	}
-	
-	public void testObjectReference() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		JavaField objectReferenceField = getJavaField(thisJavaObject, "objectReference");
-		
-		try{
-			short anObjectReference = objectReferenceField.getShort(thisJavaObject);
-			fail("Missing illegal argument exception from JavaField.getShort(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_getShort;
+
+
+/**
+ * Test JavaField.getShort() against various fields and values.
+ * 
+ */
+public class TestJavaField_getShort extends TCKJavaRuntimeTestcase {
+	
+	SetupJavaField_getShort setup=new SetupJavaField_getShort();
+	
+	static JavaObject thisObject = null;	
+	public JavaObject getScenerioReference() {
+		if (thisObject == null) {
+			thisObject = super.getScenerioReference();
+		}	
+		return thisObject;		
+	}
+	
+	public void testMaxShortValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField maxShortField = getJavaField(thisJavaObject, "maxShort");
+		
+		short maxShortValue = maxShortField.getShort(thisJavaObject);
+		
+		assertEquals(setup.maxShort, maxShortValue);		
+	}
+	
+	public void testMinShortValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField minShortField = getJavaField(thisJavaObject, "minShort");
+		
+		short minShortValue = minShortField.getShort(thisJavaObject);
+		
+		assertEquals(setup.minShort, minShortValue);		
+	}
+
+	public void testStaticMinShortValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField minShortField = getJavaField(thisJavaObject, "staticMinShort");
+		
+		short minShortValue = minShortField.getShort(null);
+		
+		assertEquals(SetupJavaField_getShort.staticMinShort, minShortValue);		
+	}
+	
+	public void testZeroShortValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField zeroShortField = getJavaField(thisJavaObject, "zeroShort");
+		
+		short zeroShortValue = zeroShortField.getShort(thisJavaObject);
+		
+		assertEquals(setup.zeroShort, zeroShortValue);		
+	}
+	
+	public void testNegShortValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField negShortField = getJavaField(thisJavaObject, "negShort");
+		
+		short negShortValue = negShortField.getShort(thisJavaObject);
+		
+		assertEquals(setup.negShort, negShortValue);		
+	}	
+	
+	public void testPosShortValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField posShortField = getJavaField(thisJavaObject, "posShort");
+		
+		short posShortValue = posShortField.getShort(thisJavaObject);
+		
+		assertEquals(setup.posShort, posShortValue);		
+	}
+
+
+	public void testDoubleValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField doubleValueField = getJavaField(thisJavaObject, "doubleValue");
+
+		try{
+			short aDoubleValue = doubleValueField.getShort(thisJavaObject);
+			fail("Missing illegal argument exception from JavaField.getShort(doubleValue)");
+		} catch (IllegalArgumentException e) {
+			// expected
+		}	
+	}
+	
+	public void testFloatValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField floatValueField = getJavaField(thisJavaObject, "floatValue");
+
+		try{
+			short aFloatValue = floatValueField.getShort(thisJavaObject);
+			fail("Missing illegal argument exception from JavaField.getShort(floatValue)");
+		} catch (IllegalArgumentException e) {
+			// expected
+		}	
+	}
+	
+	public void testLongValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField longValueField = getJavaField(thisJavaObject, "longValue");
+
+		try{
+			short aLongValue = longValueField.getShort(thisJavaObject);
+			fail("Missing illegal argument exception from JavaField.getShort(longValue)");
+		} catch (IllegalArgumentException e) {
+			// expected
+		}	
+	}
+	
+	public void testIntValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField intValueField = getJavaField(thisJavaObject, "intValue");
+
+		try{
+			short aIntValue = intValueField.getShort(thisJavaObject);
+			fail("Missing illegal argument exception from JavaField.getShort(intValue)");
+		} catch (IllegalArgumentException e) {
+			// expected
+		}	
+	}
+	
+	public void testByteValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField byteValueField = getJavaField(thisJavaObject, "byteValue");
+
+		try{
+			short aByteValue = byteValueField.getShort(thisJavaObject);
+		} catch (IllegalArgumentException e) {
+			fail("Unexpected illegal argument exception from JavaField.getShort(byteValue)");
+		}	
+	}
+	
+	public void testCharValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField charValueField = getJavaField(thisJavaObject, "charValue");
+
+		try{
+			short aShortValue = charValueField.getShort(thisJavaObject);
+			fail("Missing illegal argument exception from JavaField.getShort(charValue)");
+		} catch (IllegalArgumentException e) {
+			// expected
+		}	
+	}
+	
+	public void testBooleanValue() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField booleanValueField = getJavaField(thisJavaObject, "booleanValue");
+		
+		try{
+			short aBooleanValue = booleanValueField.getShort(thisJavaObject);
+			fail("Missing illegal argument exception from JavaField.getShort(booleanValue)");
+		} catch (IllegalArgumentException e) {
+			// expected
+		}
+	}
+	
+	public void testObjectReference() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		JavaField objectReferenceField = getJavaField(thisJavaObject, "objectReference");
+		
+		try{
+			short anObjectReference = objectReferenceField.getShort(thisJavaObject);
+			fail("Missing illegal argument exception from JavaField.getShort(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_getShort.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_getSignature.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_getSignature.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_getSignature.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/javaruntime/TestJavaField_getSignature.java Mon Nov 23 15:53:48 2009
@@ -1,188 +1,188 @@
-/*******************************************************************************
- * 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_getSignature;
-
-
-public class TestJavaField_getSignature extends TCKJavaRuntimeTestcase {
-	
-	static JavaObject thisObject = null;	
-	public JavaObject getScenerioReference() {
-		if (thisObject == null) {
-			thisObject = super.getScenerioReference();
-		}	
-		return thisObject;
-		
-	}
-
-	
-	public void testByteFieldSignature() throws Exception {
-		JavaField field = getJavaField(getScenerioReference(), "byteField");
-		
-		assertEquals("B", field.getSignature());
-	}
-	
-	public void testShortFieldSignature() throws Exception {
-		JavaField field = getJavaField(getScenerioReference(), "shortField");
-		
-		assertEquals("S", field.getSignature());
-	}
-	
-	public void testCharFieldSignature() throws Exception {
-		JavaField field = getJavaField(getScenerioReference(), "charField");
-		
-		assertEquals("C", field.getSignature());
-	}
-	
-	public void testIntFieldSignature() throws Exception {
-		JavaField field = getJavaField(getScenerioReference(), "intField");
-		
-		assertEquals("I", field.getSignature());
-	}
-	
-	public void testLongFieldSignature() throws Exception {
-		JavaField field = getJavaField(getScenerioReference(), "longField");
-		
-		assertEquals("J", field.getSignature());
-	}
-	
-	public void testFloatFieldSignature() throws Exception {
-		JavaField field = getJavaField(getScenerioReference(), "floatField");
-		
-		assertEquals("F", field.getSignature());
-	}
-	
-	public void testDoubleFieldSignature() throws Exception {
-		JavaField field = getJavaField(getScenerioReference(), "doubleField");
-		
-		assertEquals("D", field.getSignature());
-	}
-	
-	public void testObjectFieldSignature() throws Exception {
-		JavaField field = getJavaField(getScenerioReference(), "objectField");
-		
-		assertEquals("Ljava/lang/String;", field.getSignature());
-	}
-	
-	public void testByteArrayArrayFieldSignature() throws Exception {
-		JavaField field = getJavaField(getScenerioReference(), "byteArrayArrayField");
-		
-		assertEquals("[[B", field.getSignature());
-	}
-	
-	public void testShortArrayArrayFieldSignature() throws Exception {
-		JavaField field = getJavaField(getScenerioReference(), "shortArrayArrayField");
-		
-		assertEquals("[[S", field.getSignature());
-	}
-	
-	public void testCharArrayArrayFieldSignature() throws Exception {
-		JavaField field = getJavaField(getScenerioReference(), "charArrayArrayField");
-		
-		assertEquals("[[C", field.getSignature());
-	}
-	
-	public void testIntArrayArrayFieldSignature() throws Exception {
-		JavaField field = getJavaField(getScenerioReference(), "intArrayArrayField");
-		
-		assertEquals("[[I", field.getSignature());
-	}
-	
-	public void testLongArrayArrayFieldSignature() throws Exception {
-		JavaField field = getJavaField(getScenerioReference(), "longArrayArrayField");
-		
-		assertEquals("[[J", field.getSignature());
-	}
-	
-	public void testFloatArrayArrayFieldSignature() throws Exception {
-		JavaField field = getJavaField(getScenerioReference(), "floatArrayArrayField");
-		
-		assertEquals("[[F", field.getSignature());
-	}
-	
-	public void testDoubleArrayArrayFieldSignature() throws Exception {
-		JavaField field = getJavaField(getScenerioReference(), "doubleArrayArrayField");
-		
-		assertEquals("[[D", field.getSignature());
-	}
-	
-	public void testObjectArrayArrayFieldSignature() throws Exception {
-		JavaField field = getJavaField(getScenerioReference(), "objectArrayArrayField");
-		
-		assertEquals("[[Ljava/lang/String;", field.getSignature());
-	}
-	
-	public void testByteArrayFieldSignature() throws Exception {
-		JavaField field = getJavaField(getScenerioReference(), "byteArrayField");
-		
-		assertEquals("[B", field.getSignature());
-	}
-	
-	public void testShortArrayFieldSignature() throws Exception {
-		JavaField field = getJavaField(getScenerioReference(), "shortArrayField");
-		
-		assertEquals("[S", field.getSignature());
-	}
-	
-	public void testCharArrayFieldSignature() throws Exception {
-		JavaField field = getJavaField(getScenerioReference(), "charArrayField");
-		
-		assertEquals("[C", field.getSignature());
-	}
-	
-	public void testIntArrayFieldSignature() throws Exception {
-		JavaField field = getJavaField(getScenerioReference(), "intArrayField");
-		
-		assertEquals("[I", field.getSignature());
-	}
-	
-	public void testLongArrayFieldSignature() throws Exception {
-		JavaField field = getJavaField(getScenerioReference(), "longArrayField");
-		
-		assertEquals("[J", field.getSignature());
-	}
-	
-	public void testFloatArrayFieldSignature() throws Exception {
-		JavaField field = getJavaField(getScenerioReference(), "floatArrayField");
-		
-		assertEquals("[F", field.getSignature());
-	}
-	
-	public void testDoubleArrayFieldSignature() throws Exception {
-		JavaField field = getJavaField(getScenerioReference(), "doubleArrayField");
-		
-		assertEquals("[D", field.getSignature());
-	}
-	
-	public void testObjectArrayFieldSignature() throws Exception {
-		JavaField field = getJavaField(getScenerioReference(), "objectArrayField");
-		
-		assertEquals("[Ljava/lang/String;", field.getSignature());
-	}
-	
-	public void testUnicodeClassSignature() throws Exception {
-		JavaField field = getJavaField(getScenerioReference(), "unicodeClass");
-		assertEquals("L"+SetupJavaField_getSignature.unicodeClassName+";", field.getSignature());
-	}
-	
-	public void testUnicodeClassArraySignature() throws Exception {
-		JavaField field = getJavaField(getScenerioReference(), "unicodeClassArray");
-		assertEquals("[L"+SetupJavaField_getSignature.unicodeClassName+";", field.getSignature());
-	}
-}
+/*******************************************************************************
+ * 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_getSignature;
+
+
+public class TestJavaField_getSignature extends TCKJavaRuntimeTestcase {
+	
+	static JavaObject thisObject = null;	
+	public JavaObject getScenerioReference() {
+		if (thisObject == null) {
+			thisObject = super.getScenerioReference();
+		}	
+		return thisObject;
+		
+	}
+
+	
+	public void testByteFieldSignature() throws Exception {
+		JavaField field = getJavaField(getScenerioReference(), "byteField");
+		
+		assertEquals("B", field.getSignature());
+	}
+	
+	public void testShortFieldSignature() throws Exception {
+		JavaField field = getJavaField(getScenerioReference(), "shortField");
+		
+		assertEquals("S", field.getSignature());
+	}
+	
+	public void testCharFieldSignature() throws Exception {
+		JavaField field = getJavaField(getScenerioReference(), "charField");
+		
+		assertEquals("C", field.getSignature());
+	}
+	
+	public void testIntFieldSignature() throws Exception {
+		JavaField field = getJavaField(getScenerioReference(), "intField");
+		
+		assertEquals("I", field.getSignature());
+	}
+	
+	public void testLongFieldSignature() throws Exception {
+		JavaField field = getJavaField(getScenerioReference(), "longField");
+		
+		assertEquals("J", field.getSignature());
+	}
+	
+	public void testFloatFieldSignature() throws Exception {
+		JavaField field = getJavaField(getScenerioReference(), "floatField");
+		
+		assertEquals("F", field.getSignature());
+	}
+	
+	public void testDoubleFieldSignature() throws Exception {
+		JavaField field = getJavaField(getScenerioReference(), "doubleField");
+		
+		assertEquals("D", field.getSignature());
+	}
+	
+	public void testObjectFieldSignature() throws Exception {
+		JavaField field = getJavaField(getScenerioReference(), "objectField");
+		
+		assertEquals("Ljava/lang/String;", field.getSignature());
+	}
+	
+	public void testByteArrayArrayFieldSignature() throws Exception {
+		JavaField field = getJavaField(getScenerioReference(), "byteArrayArrayField");
+		
+		assertEquals("[[B", field.getSignature());
+	}
+	
+	public void testShortArrayArrayFieldSignature() throws Exception {
+		JavaField field = getJavaField(getScenerioReference(), "shortArrayArrayField");
+		
+		assertEquals("[[S", field.getSignature());
+	}
+	
+	public void testCharArrayArrayFieldSignature() throws Exception {
+		JavaField field = getJavaField(getScenerioReference(), "charArrayArrayField");
+		
+		assertEquals("[[C", field.getSignature());
+	}
+	
+	public void testIntArrayArrayFieldSignature() throws Exception {
+		JavaField field = getJavaField(getScenerioReference(), "intArrayArrayField");
+		
+		assertEquals("[[I", field.getSignature());
+	}
+	
+	public void testLongArrayArrayFieldSignature() throws Exception {
+		JavaField field = getJavaField(getScenerioReference(), "longArrayArrayField");
+		
+		assertEquals("[[J", field.getSignature());
+	}
+	
+	public void testFloatArrayArrayFieldSignature() throws Exception {
+		JavaField field = getJavaField(getScenerioReference(), "floatArrayArrayField");
+		
+		assertEquals("[[F", field.getSignature());
+	}
+	
+	public void testDoubleArrayArrayFieldSignature() throws Exception {
+		JavaField field = getJavaField(getScenerioReference(), "doubleArrayArrayField");
+		
+		assertEquals("[[D", field.getSignature());
+	}
+	
+	public void testObjectArrayArrayFieldSignature() throws Exception {
+		JavaField field = getJavaField(getScenerioReference(), "objectArrayArrayField");
+		
+		assertEquals("[[Ljava/lang/String;", field.getSignature());
+	}
+	
+	public void testByteArrayFieldSignature() throws Exception {
+		JavaField field = getJavaField(getScenerioReference(), "byteArrayField");
+		
+		assertEquals("[B", field.getSignature());
+	}
+	
+	public void testShortArrayFieldSignature() throws Exception {
+		JavaField field = getJavaField(getScenerioReference(), "shortArrayField");
+		
+		assertEquals("[S", field.getSignature());
+	}
+	
+	public void testCharArrayFieldSignature() throws Exception {
+		JavaField field = getJavaField(getScenerioReference(), "charArrayField");
+		
+		assertEquals("[C", field.getSignature());
+	}
+	
+	public void testIntArrayFieldSignature() throws Exception {
+		JavaField field = getJavaField(getScenerioReference(), "intArrayField");
+		
+		assertEquals("[I", field.getSignature());
+	}
+	
+	public void testLongArrayFieldSignature() throws Exception {
+		JavaField field = getJavaField(getScenerioReference(), "longArrayField");
+		
+		assertEquals("[J", field.getSignature());
+	}
+	
+	public void testFloatArrayFieldSignature() throws Exception {
+		JavaField field = getJavaField(getScenerioReference(), "floatArrayField");
+		
+		assertEquals("[F", field.getSignature());
+	}
+	
+	public void testDoubleArrayFieldSignature() throws Exception {
+		JavaField field = getJavaField(getScenerioReference(), "doubleArrayField");
+		
+		assertEquals("[D", field.getSignature());
+	}
+	
+	public void testObjectArrayFieldSignature() throws Exception {
+		JavaField field = getJavaField(getScenerioReference(), "objectArrayField");
+		
+		assertEquals("[Ljava/lang/String;", field.getSignature());
+	}
+	
+	public void testUnicodeClassSignature() throws Exception {
+		JavaField field = getJavaField(getScenerioReference(), "unicodeClass");
+		assertEquals("L"+SetupJavaField_getSignature.unicodeClassName+";", field.getSignature());
+	}
+	
+	public void testUnicodeClassArraySignature() throws Exception {
+		JavaField field = getJavaField(getScenerioReference(), "unicodeClassArray");
+		assertEquals("[L"+SetupJavaField_getSignature.unicodeClassName+";", field.getSignature());
+	}
+}

Propchange: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/javaruntime/TestJavaField_getSignature.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_getString.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_getString.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_getString.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/javaruntime/TestJavaField_getString.java Mon Nov 23 15:53:48 2009
@@ -1,142 +1,142 @@
-/*******************************************************************************
- * 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_getString;
-
-
-public class TestJavaField_getString extends TCKJavaRuntimeTestcase {
-	
-	SetupJavaField_getString setup=new SetupJavaField_getString();
-	
-	static JavaObject thisObject = null;	
-	public JavaObject getScenerioReference() {
-		if (thisObject == null) {
-			thisObject = super.getScenerioReference();
-		}	
-		return thisObject;		
-	}
-	
-	/**
-	 *  Tests that a long string can be retrieved correctly.
-	 *  
-	 */
-	public void testLongString() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		
-		assertNotNull(thisJavaObject);		
-		
-		JavaField longStringField = getJavaField(thisJavaObject, "longString");		
-		
-		assertNotNull(longStringField);
-		
-		String longStringValue = longStringField.getString(thisJavaObject);
-		
-		assertEquals(setup.longString, longStringValue);
-	}
-	
-	public void testEmptyString() throws Exception {
-	JavaObject thisJavaObject = getScenerioReference();
-		
-		assertNotNull(thisJavaObject);		
-		
-		JavaField emptyStringField = getJavaField(thisJavaObject, "emptyString");		
-		
-		assertNotNull(emptyStringField);
-		
-		String emptyStringValue = emptyStringField.getString(thisJavaObject);
-		
-		assertEquals(setup.emptyString, emptyStringValue);
-		
-	}
-	
-	public void testNullString() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-
-		assertNotNull(thisJavaObject);		
-
-		JavaField nullStringField = getJavaField(thisJavaObject, "nullString");		
-
-		assertNotNull(nullStringField);
-
-		String nullStringValue = nullStringField.getString(thisJavaObject);
-
-		assertEquals(setup.nullString, nullStringValue);
-
-	}
-	
-	public void testForeignString() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-
-		assertNotNull(thisJavaObject);		
-
-		JavaField foreignStringField = getJavaField(thisJavaObject, "foreignString");		
-
-		assertNotNull(foreignStringField);
-
-		String foreignStringValue = foreignStringField.getString(thisJavaObject);
-		
-		assertEquals(setup.foreignString, foreignStringValue);
-
-	}
-	
-	public void testNullJavaObjectOnInstanceField() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		
-		assertNotNull(thisJavaObject);
-		
-		JavaField longStringField = getJavaField(thisJavaObject, "longString");
-		
-		assertNotNull(longStringField);
-		
-		try{
-			String string = longStringField.getString(null);
-			fail ("Expected NullPointerException. Got \""+string+"\"");
-		} catch (NullPointerException e) {
-			// passes.
-		}
-	}
-	
-	public void testStaticString() throws Exception {		
-		JavaObject thisJavaObject = getScenerioReference();
-		
-		assertNotNull(thisJavaObject);
-		
-		JavaField staticStringField = getJavaField(thisJavaObject, "staticString");
-		
-		String staticStringValue = staticStringField.getString(null);
-		
-		assertEquals(SetupJavaField_getString.staticString, staticStringValue);
-	}
-	
-	public void testNonString() throws Exception {
-		JavaObject thisJavaObject = getScenerioReference();
-		
-		assertNotNull(thisJavaObject);
-		
-		JavaField nonStringField = getJavaField(thisJavaObject, "nonString");
-		
-		try {
-			String nonStringValue = nonStringField.getString(thisJavaObject);
-			fail("Didn't get illegal argument exception when int field read with getString.");
-		} catch(IllegalArgumentException e) {
-			// passed - expect exception.
-		}
-	}
-}
+/*******************************************************************************
+ * 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_getString;
+
+
+public class TestJavaField_getString extends TCKJavaRuntimeTestcase {
+	
+	SetupJavaField_getString setup=new SetupJavaField_getString();
+	
+	static JavaObject thisObject = null;	
+	public JavaObject getScenerioReference() {
+		if (thisObject == null) {
+			thisObject = super.getScenerioReference();
+		}	
+		return thisObject;		
+	}
+	
+	/**
+	 *  Tests that a long string can be retrieved correctly.
+	 *  
+	 */
+	public void testLongString() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		
+		assertNotNull(thisJavaObject);		
+		
+		JavaField longStringField = getJavaField(thisJavaObject, "longString");		
+		
+		assertNotNull(longStringField);
+		
+		String longStringValue = longStringField.getString(thisJavaObject);
+		
+		assertEquals(setup.longString, longStringValue);
+	}
+	
+	public void testEmptyString() throws Exception {
+	JavaObject thisJavaObject = getScenerioReference();
+		
+		assertNotNull(thisJavaObject);		
+		
+		JavaField emptyStringField = getJavaField(thisJavaObject, "emptyString");		
+		
+		assertNotNull(emptyStringField);
+		
+		String emptyStringValue = emptyStringField.getString(thisJavaObject);
+		
+		assertEquals(setup.emptyString, emptyStringValue);
+		
+	}
+	
+	public void testNullString() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+
+		assertNotNull(thisJavaObject);		
+
+		JavaField nullStringField = getJavaField(thisJavaObject, "nullString");		
+
+		assertNotNull(nullStringField);
+
+		String nullStringValue = nullStringField.getString(thisJavaObject);
+
+		assertEquals(setup.nullString, nullStringValue);
+
+	}
+	
+	public void testForeignString() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+
+		assertNotNull(thisJavaObject);		
+
+		JavaField foreignStringField = getJavaField(thisJavaObject, "foreignString");		
+
+		assertNotNull(foreignStringField);
+
+		String foreignStringValue = foreignStringField.getString(thisJavaObject);
+		
+		assertEquals(setup.foreignString, foreignStringValue);
+
+	}
+	
+	public void testNullJavaObjectOnInstanceField() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		
+		assertNotNull(thisJavaObject);
+		
+		JavaField longStringField = getJavaField(thisJavaObject, "longString");
+		
+		assertNotNull(longStringField);
+		
+		try{
+			String string = longStringField.getString(null);
+			fail ("Expected NullPointerException. Got \""+string+"\"");
+		} catch (NullPointerException e) {
+			// passes.
+		}
+	}
+	
+	public void testStaticString() throws Exception {		
+		JavaObject thisJavaObject = getScenerioReference();
+		
+		assertNotNull(thisJavaObject);
+		
+		JavaField staticStringField = getJavaField(thisJavaObject, "staticString");
+		
+		String staticStringValue = staticStringField.getString(null);
+		
+		assertEquals(SetupJavaField_getString.staticString, staticStringValue);
+	}
+	
+	public void testNonString() throws Exception {
+		JavaObject thisJavaObject = getScenerioReference();
+		
+		assertNotNull(thisJavaObject);
+		
+		JavaField nonStringField = getJavaField(thisJavaObject, "nonString");
+		
+		try {
+			String nonStringValue = nonStringField.getString(thisJavaObject);
+			fail("Didn't get illegal argument exception when int field read with getString.");
+		} catch(IllegalArgumentException e) {
+			// passed - expect exception.
+		}
+	}
+}

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

Modified: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/javaruntime/TestJavaHeap_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/TestJavaHeap_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/TestJavaHeap_getName.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/javaruntime/TestJavaHeap_getName.java Mon Nov 23 15:53:48 2009
@@ -1,50 +1,50 @@
-/*******************************************************************************
- * 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.runtime.java.JavaHeap;
-import javax.tools.diagnostics.runtime.java.JavaRuntime;
-
-import org.apache.kato.tck.harness.TCKJavaRuntimeTestcase;
-
-
-public class TestJavaHeap_getName extends TCKJavaRuntimeTestcase {
-
-	/**
-	 * 
-	 * 
-	 */
-	public void testJavaHeap_getName()
-	{
-		boolean foundHeaps = 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;
-			assertTrue("One of the java heaps has a null name.", aJavaHeap.getName()!=null);
-		}
-	}
-}
+/*******************************************************************************
+ * 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.runtime.java.JavaHeap;
+import javax.tools.diagnostics.runtime.java.JavaRuntime;
+
+import org.apache.kato.tck.harness.TCKJavaRuntimeTestcase;
+
+
+public class TestJavaHeap_getName extends TCKJavaRuntimeTestcase {
+
+	/**
+	 * 
+	 * 
+	 */
+	public void testJavaHeap_getName()
+	{
+		boolean foundHeaps = 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;
+			assertTrue("One of the java heaps has a null name.", aJavaHeap.getName()!=null);
+		}
+	}
+}

Propchange: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/javaruntime/TestJavaHeap_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/TestJavaMethod_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/TestJavaMethod_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/TestJavaMethod_getName.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/javaruntime/TestJavaMethod_getName.java Mon Nov 23 15:53:48 2009
@@ -1,115 +1,115 @@
-/*******************************************************************************
- * 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.runtime.java.JavaClass;
-import javax.tools.diagnostics.runtime.java.JavaLocation;
-import javax.tools.diagnostics.runtime.java.JavaMethod;
-import javax.tools.diagnostics.runtime.java.JavaObject;
-import javax.tools.diagnostics.runtime.java.JavaStackFrame;
-import javax.tools.diagnostics.runtime.java.JavaThread;
-
-import org.apache.kato.tck.harness.TCKJavaRuntimeTestcase;
-import org.apache.kato.tck.scenario142.javaruntime.SetupJavaMethod_getName;
-
-
-public class TestJavaMethod_getName extends TCKJavaRuntimeTestcase {
-	
-	static JavaObject thisObject = null;	
-	public JavaObject getScenerioReference() {
-		if (thisObject == null) {
-			thisObject = super.getScenerioReference();
-		}	
-		return thisObject;		
-	}
-	
-	/**
-	 * Get this class directly, and find the method via getDeclaredMethods().iterator();
-	 * 
-	 * @throws Exception
-	 */
-	public void testGetDeclaredMethods() throws Exception {
-		JavaClass thisClass = getScenerioReference().getJavaClass();
-		
-		assertNotNull("Unable to find this class", thisClass);
-		
-		Iterator methods = thisClass.getDeclaredMethods().iterator();
-		boolean found=false;
-		while(methods.hasNext()) {
-			JavaMethod method = (JavaMethod) methods.next();
-			
-			if (method.getName().equals(SetupJavaMethod_getName.methodName)) {
-				found = true;
-				break;
-			}
-		}
-		
-		assertTrue("Unable to find method get\u0412\u043e\u0434\u043a\u0430()", found);
-	}
-	
-	/**
-	 * Pick the method off of the JavaThreads stack. The JavaMethod might be
-	 * instantiated differently.
-	 * 
-	 * @throws Exception
-	 */
-	public void testGetStackMethods() throws Exception {
-		Iterator threads = getJavaRuntime().getThreads().iterator();
-		
-		JavaThread testThread = null;
-		while(threads.hasNext()) {
-			Object next = threads.next();
-			
-			if (next instanceof JavaThread) {
-				JavaThread thread = (JavaThread) next;
-				if (thread.getName().equals(SetupJavaMethod_getName.threadName)) {
-					testThread = thread;
-					break;
-				}
-			} else {
-				break;
-			}
-		}
-		
-		assertNotNull("Unable to find thread "+SetupJavaMethod_getName.threadName, testThread);
-		
-		Iterator frames = testThread.getStackFrames().iterator();
-		boolean found = false;
-		
-		while(frames.hasNext()) {
-			Object next = frames.next();
-			
-			if(next instanceof JavaStackFrame) {
-				JavaStackFrame frame = (JavaStackFrame) next;
-				
-				JavaLocation location = frame.getLocation();
-				
-				if (location != null) {
-					JavaMethod method = location.getMethod();
-					
-					if(method != null) {
-						if (SetupJavaMethod_getName.methodName.equals(method.getName())) {
-							found = true;
-							break;
-						}
-					}
-				}
-			}
-		}
-		
-		assertTrue("Unable to find method "+SetupJavaMethod_getName.methodName+" in stack.", found);
-	}
-}
+/*******************************************************************************
+ * 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.runtime.java.JavaClass;
+import javax.tools.diagnostics.runtime.java.JavaLocation;
+import javax.tools.diagnostics.runtime.java.JavaMethod;
+import javax.tools.diagnostics.runtime.java.JavaObject;
+import javax.tools.diagnostics.runtime.java.JavaStackFrame;
+import javax.tools.diagnostics.runtime.java.JavaThread;
+
+import org.apache.kato.tck.harness.TCKJavaRuntimeTestcase;
+import org.apache.kato.tck.scenario142.javaruntime.SetupJavaMethod_getName;
+
+
+public class TestJavaMethod_getName extends TCKJavaRuntimeTestcase {
+	
+	static JavaObject thisObject = null;	
+	public JavaObject getScenerioReference() {
+		if (thisObject == null) {
+			thisObject = super.getScenerioReference();
+		}	
+		return thisObject;		
+	}
+	
+	/**
+	 * Get this class directly, and find the method via getDeclaredMethods().iterator();
+	 * 
+	 * @throws Exception
+	 */
+	public void testGetDeclaredMethods() throws Exception {
+		JavaClass thisClass = getScenerioReference().getJavaClass();
+		
+		assertNotNull("Unable to find this class", thisClass);
+		
+		Iterator methods = thisClass.getDeclaredMethods().iterator();
+		boolean found=false;
+		while(methods.hasNext()) {
+			JavaMethod method = (JavaMethod) methods.next();
+			
+			if (method.getName().equals(SetupJavaMethod_getName.methodName)) {
+				found = true;
+				break;
+			}
+		}
+		
+		assertTrue("Unable to find method get\u0412\u043e\u0434\u043a\u0430()", found);
+	}
+	
+	/**
+	 * Pick the method off of the JavaThreads stack. The JavaMethod might be
+	 * instantiated differently.
+	 * 
+	 * @throws Exception
+	 */
+	public void testGetStackMethods() throws Exception {
+		Iterator threads = getJavaRuntime().getThreads().iterator();
+		
+		JavaThread testThread = null;
+		while(threads.hasNext()) {
+			Object next = threads.next();
+			
+			if (next instanceof JavaThread) {
+				JavaThread thread = (JavaThread) next;
+				if (thread.getName().equals(SetupJavaMethod_getName.threadName)) {
+					testThread = thread;
+					break;
+				}
+			} else {
+				break;
+			}
+		}
+		
+		assertNotNull("Unable to find thread "+SetupJavaMethod_getName.threadName, testThread);
+		
+		Iterator frames = testThread.getStackFrames().iterator();
+		boolean found = false;
+		
+		while(frames.hasNext()) {
+			Object next = frames.next();
+			
+			if(next instanceof JavaStackFrame) {
+				JavaStackFrame frame = (JavaStackFrame) next;
+				
+				JavaLocation location = frame.getLocation();
+				
+				if (location != null) {
+					JavaMethod method = location.getMethod();
+					
+					if(method != null) {
+						if (SetupJavaMethod_getName.methodName.equals(method.getName())) {
+							found = true;
+							break;
+						}
+					}
+				}
+			}
+		}
+		
+		assertTrue("Unable to find method "+SetupJavaMethod_getName.methodName+" in stack.", found);
+	}
+}

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



Mime
View raw message