You are viewing a plain text version of this content. The canonical link for it is here.
Posted to kato-commits@incubator.apache.org by mo...@apache.org on 2009/11/23 15:54:15 UTC
svn commit: r883384 [26/47] - in /incubator/kato/trunk/org.apache.kato: ./
kato.anttasks/src/main/java/org/apache/kato/anttasks/
kato.anttasks/src/main/java/org/apache/kato/anttasks/sitebuilder/
kato.anttasks/src/main/java/org/apache/kato/anttasks/tck/...
Modified: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaObject_arraycopy.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaObject_arraycopy.java?rev=883384&r1=883383&r2=883384&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaObject_arraycopy.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaObject_arraycopy.java Mon Nov 23 15:53:48 2009
@@ -1,90 +1,90 @@
-/*******************************************************************************
- * 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.scenario142.javaruntime;
-
-import org.apache.kato.tck.harness.scenario.ScenarioElement;
-
-
-
-
-/**
- * Sets up an object containing references to an array of each type.
- * Then finds it in DTFJ and the compares the contents of the arrays with
- * the contents of the arrays from DTFJ using JavaObject.arraycopy()
- *
- * TODO testcase should be expanded to test the boundary conditions, and expected error conditions.
- *
- */
-public class SetupJavaObject_arraycopy extends ScenarioElement {
-
- /**
- * A container and initializer for each array's contents
- *
- */
- public static class TestArrays {
- public boolean[] booleanArray;
- public byte[] byteArray;
- public short[] shortArray;
- public char[] charArray;
- public int[] intArray;
- public long[] longArray;
- public float[] floatArray;
- public double[] doubleArray;
- public Integer[] integerArray;
- public Object nonArray = new Object();
- public short[][] arrayArray;
-
- public TestArrays(int count) {
- booleanArray = new boolean[count];
- byteArray = new byte[count];
- shortArray = new short[count];
- charArray = new char[count];
- intArray = new int[count];
- longArray = new long[count];
- floatArray = new float[count];
- doubleArray = new double[count];
- integerArray = new Integer[count];
- arrayArray = new short[count][count];
-
- for (int i=0; i < count; i++) {
- booleanArray[i] = (i % 2) == 1;
- byteArray[i] = (byte) i;
- shortArray[i] = (short) i;
- charArray[i] = (char) i;
- intArray[i] = i;
- longArray[i] = i;
- floatArray[i] = i;
- doubleArray[i] = i;
- integerArray[i] = new Integer(i);
-
- for(int j = 0; j < count; j++) {
- arrayArray[i][j] = (short) (i + j);
- }
- }
-
- }
- }
-
- // The array sizes.
- public static final int testArraysElementCount = 10;
-
- // As this is static, this will exist in both the DTFJ dump and the JUnit testcase. No configure needed.
- public static TestArrays theTestObject = new TestArrays(testArraysElementCount);
-
- public static final String TestArraysClassName = TestArrays.class.getName().replace('.', '/');
-
-
-
-
-}
+/*******************************************************************************
+ * 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.scenario142.javaruntime;
+
+import org.apache.kato.tck.harness.scenario.ScenarioElement;
+
+
+
+
+/**
+ * Sets up an object containing references to an array of each type.
+ * Then finds it in DTFJ and the compares the contents of the arrays with
+ * the contents of the arrays from DTFJ using JavaObject.arraycopy()
+ *
+ * TODO testcase should be expanded to test the boundary conditions, and expected error conditions.
+ *
+ */
+public class SetupJavaObject_arraycopy extends ScenarioElement {
+
+ /**
+ * A container and initializer for each array's contents
+ *
+ */
+ public static class TestArrays {
+ public boolean[] booleanArray;
+ public byte[] byteArray;
+ public short[] shortArray;
+ public char[] charArray;
+ public int[] intArray;
+ public long[] longArray;
+ public float[] floatArray;
+ public double[] doubleArray;
+ public Integer[] integerArray;
+ public Object nonArray = new Object();
+ public short[][] arrayArray;
+
+ public TestArrays(int count) {
+ booleanArray = new boolean[count];
+ byteArray = new byte[count];
+ shortArray = new short[count];
+ charArray = new char[count];
+ intArray = new int[count];
+ longArray = new long[count];
+ floatArray = new float[count];
+ doubleArray = new double[count];
+ integerArray = new Integer[count];
+ arrayArray = new short[count][count];
+
+ for (int i=0; i < count; i++) {
+ booleanArray[i] = (i % 2) == 1;
+ byteArray[i] = (byte) i;
+ shortArray[i] = (short) i;
+ charArray[i] = (char) i;
+ intArray[i] = i;
+ longArray[i] = i;
+ floatArray[i] = i;
+ doubleArray[i] = i;
+ integerArray[i] = new Integer(i);
+
+ for(int j = 0; j < count; j++) {
+ arrayArray[i][j] = (short) (i + j);
+ }
+ }
+
+ }
+ }
+
+ // The array sizes.
+ public static final int testArraysElementCount = 10;
+
+ // As this is static, this will exist in both the DTFJ dump and the JUnit testcase. No configure needed.
+ public static TestArrays theTestObject = new TestArrays(testArraysElementCount);
+
+ public static final String TestArraysClassName = TestArrays.class.getName().replace('.', '/');
+
+
+
+
+}
Propchange: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaObject_arraycopy.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaObject_getDeclaredFields_getName.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaObject_getDeclaredFields_getName.java?rev=883384&r1=883383&r2=883384&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaObject_getDeclaredFields_getName.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaObject_getDeclaredFields_getName.java Mon Nov 23 15:53:48 2009
@@ -1,39 +1,39 @@
-/*******************************************************************************
- * 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.scenario142.javaruntime;
-
-import org.apache.kato.tck.harness.scenario.ScenarioElement;
-
-
-
-
-
-public class SetupJavaObject_getDeclaredFields_getName extends ScenarioElement {
-
- public static TestObject theTestObject;
-
- class TestObject {
- private String JavaObject_getDeclaredFields_getName = "JavaObject_getDeclaredFields_getName";
- }
-
- public static final String TestObjectClassName = TestObject.class.getName().replace('.', '/');
-
- public void configureJavaObject_get()
- {
- theTestObject=new TestObject();
- }
-
-
-
-}
+/*******************************************************************************
+ * 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.scenario142.javaruntime;
+
+import org.apache.kato.tck.harness.scenario.ScenarioElement;
+
+
+
+
+
+public class SetupJavaObject_getDeclaredFields_getName extends ScenarioElement {
+
+ public static TestObject theTestObject;
+
+ class TestObject {
+ private String JavaObject_getDeclaredFields_getName = "JavaObject_getDeclaredFields_getName";
+ }
+
+ public static final String TestObjectClassName = TestObject.class.getName().replace('.', '/');
+
+ public void configureJavaObject_get()
+ {
+ theTestObject=new TestObject();
+ }
+
+
+
+}
Propchange: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaObject_getDeclaredFields_getName.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaObject_getReferences.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaObject_getReferences.java?rev=883384&r1=883383&r2=883384&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaObject_getReferences.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaObject_getReferences.java Mon Nov 23 15:53:48 2009
@@ -1,29 +1,29 @@
-/*******************************************************************************
- * 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.scenario142.javaruntime;
-
-import org.apache.kato.tck.harness.scenario.ScenarioElement;
-
-
-
-
-public class SetupJavaObject_getReferences extends ScenarioElement {
-
- public int[][] multiDimArray = new int[3][5];
-
- public void configureMultiDimensionalArray() {
- multiDimArray = new int[][]{{1,2},{11,12},{21,22}};
- }
-
-}
+/*******************************************************************************
+ * 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.scenario142.javaruntime;
+
+import org.apache.kato.tck.harness.scenario.ScenarioElement;
+
+
+
+
+public class SetupJavaObject_getReferences extends ScenarioElement {
+
+ public int[][] multiDimArray = new int[3][5];
+
+ public void configureMultiDimensionalArray() {
+ multiDimArray = new int[][]{{1,2},{11,12},{21,22}};
+ }
+
+}
Propchange: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaObject_getReferences.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaReferences.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaReferences.java?rev=883384&r1=883383&r2=883384&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaReferences.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaReferences.java Mon Nov 23 15:53:48 2009
@@ -1,69 +1,69 @@
-/*******************************************************************************
- * 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.scenario142.javaruntime;
-
-
-import java.lang.ref.PhantomReference;
-import java.lang.ref.ReferenceQueue;
-import java.lang.ref.SoftReference;
-import java.lang.ref.WeakReference;
-
-import org.apache.kato.tck.harness.scenario.ScenarioElement;
-
-public class SetupJavaReferences extends ScenarioElement {
-
- class StrongReferent {
- public static final String TYPE = "Strong";
- };
-
- class WeakReferent {
- public static final String TYPE = "Weak";
- };
- class SoftReferent {
- public static final String TYPE = "Soft";
-
- };
- class PhantomReferent {
- public static final String TYPE = "Phantom";
- };
-
- class ArrayElement {
- public static final String TYPE = "ArrayElement";
-
- }
-
- private WeakReference weakReference = null;
- private SoftReference softReference = null;
- private PhantomReference phantomReference = null;
-
- private StrongReferent strongReferent = new StrongReferent();
- private WeakReferent weakReferent = new WeakReferent();
- private SoftReferent softReferent = new SoftReferent();
- private PhantomReferent phantomReferent = new PhantomReferent();
-
- private ClassLoader classLoader = null;
-
- private ArrayElement[] array = new ArrayElement[1];
- public void configureReferences() {
- weakReference = new WeakReference(weakReferent);
- softReference = new SoftReference(softReferent);
- phantomReference = new PhantomReference(phantomReferent, new ReferenceQueue());
-
- array[0] = new ArrayElement();
-
- classLoader = this.getClass().getClassLoader();
- }
-
-
-}
+/*******************************************************************************
+ * 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.scenario142.javaruntime;
+
+
+import java.lang.ref.PhantomReference;
+import java.lang.ref.ReferenceQueue;
+import java.lang.ref.SoftReference;
+import java.lang.ref.WeakReference;
+
+import org.apache.kato.tck.harness.scenario.ScenarioElement;
+
+public class SetupJavaReferences extends ScenarioElement {
+
+ class StrongReferent {
+ public static final String TYPE = "Strong";
+ };
+
+ class WeakReferent {
+ public static final String TYPE = "Weak";
+ };
+ class SoftReferent {
+ public static final String TYPE = "Soft";
+
+ };
+ class PhantomReferent {
+ public static final String TYPE = "Phantom";
+ };
+
+ class ArrayElement {
+ public static final String TYPE = "ArrayElement";
+
+ }
+
+ private WeakReference weakReference = null;
+ private SoftReference softReference = null;
+ private PhantomReference phantomReference = null;
+
+ private StrongReferent strongReferent = new StrongReferent();
+ private WeakReferent weakReferent = new WeakReferent();
+ private SoftReferent softReferent = new SoftReferent();
+ private PhantomReferent phantomReferent = new PhantomReferent();
+
+ private ClassLoader classLoader = null;
+
+ private ArrayElement[] array = new ArrayElement[1];
+ public void configureReferences() {
+ weakReference = new WeakReference(weakReferent);
+ softReference = new SoftReference(softReferent);
+ phantomReference = new PhantomReference(phantomReferent, new ReferenceQueue());
+
+ array[0] = new ArrayElement();
+
+ classLoader = this.getClass().getClassLoader();
+ }
+
+
+}
Propchange: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaReferences.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaRuntime.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaRuntime.java?rev=883384&r1=883383&r2=883384&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaRuntime.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaRuntime.java Mon Nov 23 15:53:48 2009
@@ -1,37 +1,37 @@
-/*******************************************************************************
- * 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.scenario142.javaruntime;
-
-import org.apache.kato.tck.harness.scenario.ScenarioElement;
-
-
-
-
-/**
- *
- *
- */
-public class SetupJavaRuntime extends ScenarioElement {
-
-
- public static final String DTCK_TEST_RUNTIME_VERSION = "-Dtck.test_runtime_version=";
-
- public String[] jvmJavaJavaRuntime_getVersion()
- {
- return new String[]{DTCK_TEST_RUNTIME_VERSION+System.getProperty("java.version")};
- }
-
-
-}
-
+/*******************************************************************************
+ * 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.scenario142.javaruntime;
+
+import org.apache.kato.tck.harness.scenario.ScenarioElement;
+
+
+
+
+/**
+ *
+ *
+ */
+public class SetupJavaRuntime extends ScenarioElement {
+
+
+ public static final String DTCK_TEST_RUNTIME_VERSION = "-Dtck.test_runtime_version=";
+
+ public String[] jvmJavaJavaRuntime_getVersion()
+ {
+ return new String[]{DTCK_TEST_RUNTIME_VERSION+System.getProperty("java.version")};
+ }
+
+
+}
+
Propchange: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaRuntime.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaRuntimeThreads.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaRuntimeThreads.java?rev=883384&r1=883383&r2=883384&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaRuntimeThreads.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaRuntimeThreads.java Mon Nov 23 15:53:48 2009
@@ -1,61 +1,61 @@
-/*******************************************************************************
- * 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.scenario142.javaruntime;
-
-import org.apache.kato.tck.harness.scenario.ScenarioElement;
-
-
-
-
-/**
- *
- *
- */
-public class SetupJavaRuntimeThreads extends ScenarioElement {
-
- public static final String DTFJ_TCK_T3 = "dtfj_tck_t3";
- public static final String DTFJ_TCK_T2 = "dtfj_tck_t2";
- public static final String DTFJ_TCK_T1 = "dtfj_tck_t1";
-
- public void configureSetThreads()
- {
-
-
- ThreadGroup group=new ThreadGroup("dtfj_tck");
-
-
- Thread t1=new Thread(group,new PausingRunnable(),DTFJ_TCK_T1);
- t1.start();
-
- Thread t2=new Thread(group,new PausingRunnable(),DTFJ_TCK_T2);
- t2.start();
-
- Thread t3=new Thread(group,new PausingRunnable(),DTFJ_TCK_T3);
- t3.start();
-
- }
-
- class PausingRunnable implements Runnable {
- public void run() {
- try {
- Thread.sleep(1000000);
- } catch (InterruptedException e) {
-
- e.printStackTrace();
- }
-
- }
- }
-}
-
+/*******************************************************************************
+ * 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.scenario142.javaruntime;
+
+import org.apache.kato.tck.harness.scenario.ScenarioElement;
+
+
+
+
+/**
+ *
+ *
+ */
+public class SetupJavaRuntimeThreads extends ScenarioElement {
+
+ public static final String DTFJ_TCK_T3 = "dtfj_tck_t3";
+ public static final String DTFJ_TCK_T2 = "dtfj_tck_t2";
+ public static final String DTFJ_TCK_T1 = "dtfj_tck_t1";
+
+ public void configureSetThreads()
+ {
+
+
+ ThreadGroup group=new ThreadGroup("dtfj_tck");
+
+
+ Thread t1=new Thread(group,new PausingRunnable(),DTFJ_TCK_T1);
+ t1.start();
+
+ Thread t2=new Thread(group,new PausingRunnable(),DTFJ_TCK_T2);
+ t2.start();
+
+ Thread t3=new Thread(group,new PausingRunnable(),DTFJ_TCK_T3);
+ t3.start();
+
+ }
+
+ class PausingRunnable implements Runnable {
+ public void run() {
+ try {
+ Thread.sleep(1000000);
+ } catch (InterruptedException e) {
+
+ e.printStackTrace();
+ }
+
+ }
+ }
+}
+
Propchange: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaRuntimeThreads.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaRuntime_getCompiledMethods.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaRuntime_getCompiledMethods.java?rev=883384&r1=883383&r2=883384&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaRuntime_getCompiledMethods.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaRuntime_getCompiledMethods.java Mon Nov 23 15:53:48 2009
@@ -1,38 +1,38 @@
-/*******************************************************************************
- * 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.scenario142.javaruntime;
-
-import org.apache.kato.tck.harness.scenario.ScenarioElement;
-
-
-
-
-public class SetupJavaRuntime_getCompiledMethods extends ScenarioElement {
- public int jitMe(int value, int cnt) {
- if (cnt ==0 ) {
- return 0;
- }
- if (Math.IEEEremainder(value, 2)== 0)
- return jitMe(value+1, cnt-1);
- else
- return jitMe(value-1,cnt-1);
-
- }
-
- public void configureCompiledMethod() {
- int value = 0;
- value = jitMe(0,3000);
- System.out.println("Value is "+ value);
- }
-}
+/*******************************************************************************
+ * 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.scenario142.javaruntime;
+
+import org.apache.kato.tck.harness.scenario.ScenarioElement;
+
+
+
+
+public class SetupJavaRuntime_getCompiledMethods extends ScenarioElement {
+ public int jitMe(int value, int cnt) {
+ if (cnt ==0 ) {
+ return 0;
+ }
+ if (Math.IEEEremainder(value, 2)== 0)
+ return jitMe(value+1, cnt-1);
+ else
+ return jitMe(value-1,cnt-1);
+
+ }
+
+ public void configureCompiledMethod() {
+ int value = 0;
+ value = jitMe(0,3000);
+ System.out.println("Value is "+ value);
+ }
+}
Propchange: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaRuntime_getCompiledMethods.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaRuntime_getHeapRoots.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaRuntime_getHeapRoots.java?rev=883384&r1=883383&r2=883384&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaRuntime_getHeapRoots.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaRuntime_getHeapRoots.java Mon Nov 23 15:53:48 2009
@@ -1,155 +1,155 @@
-/*******************************************************************************
- * 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.scenario142.javaruntime;
-
-import org.apache.kato.tck.api.ICheckpoint;
-import org.apache.kato.tck.harness.scenario.ScenarioElement;
-
-
-public class SetupJavaRuntime_getHeapRoots extends ScenarioElement {
-
- public static final String DTFJ_STRING_TABLE_ROOT_TEST = "DTFJ StringTable root test";
-
-
- public static java.lang.ClassLoader cl = null;
-
- public HeapRootsTestUnfinalized unfinalizedObj = null;
-
- public static class HeapRoot {
- private Object root = null;
- private int type = 0;
-
- public HeapRoot(Object r, int t) {
- root = r;
- type = t;
- }
-
- public boolean equals(Object o) {
- if (! (o instanceof HeapRoot)) {
- return false;
- } else {
- HeapRoot ro = (HeapRoot) o;
- return root.equals(ro.getRoot()) && type==0?true:type==ro.getType();
- }
- }
-
- public int hashCode() {
- return root.hashCode();
- }
-
- public Object getRoot() {
- return root;
- }
-
- public int getType() {
- return type;
- }
-
-
-
- }
-
- class HeapRootsTestClassLoader extends ClassLoader {
-
- public Class findClass(String name) {
- byte[] b = loadClassData(name);
- return defineClass(name, b, 0, b.length);
- }
- private byte[] loadClassData(String name) {
- return null;
- }
- }
-
- class HeapRootsTestThread extends java.lang.Thread {
- public void run() {
- while (true) {
- try {
- sleep(10000);
- } catch (InterruptedException e) {}
- }
- }
- }
-
-
- class HeapRootsTestFinalizable {
- protected void finalize() {
-// System.out.println("Finalizer for object " + this + " started in thread " + Thread.currentThread());
- while (true) {
- try {
- Thread.sleep(1000);
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
- }
- }
-
- class HeapRootsTestUnfinalized {
- protected void finalize() {
- System.out.println("Finalizer for object " + this + " started...");
- }
- }
-
-
- public void configureClassloaderRoot() {
-
- cl = new HeapRootsTestClassLoader();
- }
-
- public void configureUnfinalizedRoot(ICheckpoint cp) {
- unfinalizedObj = new HeapRootsTestUnfinalized();
- cp.checkpoint();
- System.out.println(unfinalizedObj);
- }
-
- public void configureFinalizableRoot() {
- HeapRootsTestFinalizable finalizableObj = new HeapRootsTestFinalizable();
- HeapRootsTestFinalizable finalizableObj2 = new HeapRootsTestFinalizable();
- finalizableObj = null;
- finalizableObj2 = null;
- System.gc();
- }
-
- public void configureStringTableRoot() {
- String string = DTFJ_STRING_TABLE_ROOT_TEST;
- string.intern();
- }
-
- public void configureThreadRoot(ICheckpoint cp) {
- HeapRootsTestThread thread = new HeapRootsTestThread();
- thread.start();
- cp.checkpoint();
- }
-
- class HeapRootsTestParam {}
- class HeapRootsTestLocalVariable {}
-
- public final String javaLocalRootsthreadName = this.getClass().getName()+"#configureJavaLocalsRoots";
- public void configureJavaLocalsRoots(ICheckpoint cp) {
- HeapRootsTestParam param = new HeapRootsTestParam();
- methodA(cp, param);
- }
-
- private void methodA(ICheckpoint cp, HeapRootsTestParam param) {
- HeapRootsTestLocalVariable localVariable = new HeapRootsTestLocalVariable();
- cp.checkpoint();
- System.out.println(param);
- System.out.println(localVariable);
- }
-
-
-
-
-
-}
+/*******************************************************************************
+ * 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.scenario142.javaruntime;
+
+import org.apache.kato.tck.api.ICheckpoint;
+import org.apache.kato.tck.harness.scenario.ScenarioElement;
+
+
+public class SetupJavaRuntime_getHeapRoots extends ScenarioElement {
+
+ public static final String DTFJ_STRING_TABLE_ROOT_TEST = "DTFJ StringTable root test";
+
+
+ public static java.lang.ClassLoader cl = null;
+
+ public HeapRootsTestUnfinalized unfinalizedObj = null;
+
+ public static class HeapRoot {
+ private Object root = null;
+ private int type = 0;
+
+ public HeapRoot(Object r, int t) {
+ root = r;
+ type = t;
+ }
+
+ public boolean equals(Object o) {
+ if (! (o instanceof HeapRoot)) {
+ return false;
+ } else {
+ HeapRoot ro = (HeapRoot) o;
+ return root.equals(ro.getRoot()) && type==0?true:type==ro.getType();
+ }
+ }
+
+ public int hashCode() {
+ return root.hashCode();
+ }
+
+ public Object getRoot() {
+ return root;
+ }
+
+ public int getType() {
+ return type;
+ }
+
+
+
+ }
+
+ class HeapRootsTestClassLoader extends ClassLoader {
+
+ public Class findClass(String name) {
+ byte[] b = loadClassData(name);
+ return defineClass(name, b, 0, b.length);
+ }
+ private byte[] loadClassData(String name) {
+ return null;
+ }
+ }
+
+ class HeapRootsTestThread extends java.lang.Thread {
+ public void run() {
+ while (true) {
+ try {
+ sleep(10000);
+ } catch (InterruptedException e) {}
+ }
+ }
+ }
+
+
+ class HeapRootsTestFinalizable {
+ protected void finalize() {
+// System.out.println("Finalizer for object " + this + " started in thread " + Thread.currentThread());
+ while (true) {
+ try {
+ Thread.sleep(1000);
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+ }
+ }
+
+ class HeapRootsTestUnfinalized {
+ protected void finalize() {
+ System.out.println("Finalizer for object " + this + " started...");
+ }
+ }
+
+
+ public void configureClassloaderRoot() {
+
+ cl = new HeapRootsTestClassLoader();
+ }
+
+ public void configureUnfinalizedRoot(ICheckpoint cp) {
+ unfinalizedObj = new HeapRootsTestUnfinalized();
+ cp.checkpoint();
+ System.out.println(unfinalizedObj);
+ }
+
+ public void configureFinalizableRoot() {
+ HeapRootsTestFinalizable finalizableObj = new HeapRootsTestFinalizable();
+ HeapRootsTestFinalizable finalizableObj2 = new HeapRootsTestFinalizable();
+ finalizableObj = null;
+ finalizableObj2 = null;
+ System.gc();
+ }
+
+ public void configureStringTableRoot() {
+ String string = DTFJ_STRING_TABLE_ROOT_TEST;
+ string.intern();
+ }
+
+ public void configureThreadRoot(ICheckpoint cp) {
+ HeapRootsTestThread thread = new HeapRootsTestThread();
+ thread.start();
+ cp.checkpoint();
+ }
+
+ class HeapRootsTestParam {}
+ class HeapRootsTestLocalVariable {}
+
+ public final String javaLocalRootsthreadName = this.getClass().getName()+"#configureJavaLocalsRoots";
+ public void configureJavaLocalsRoots(ICheckpoint cp) {
+ HeapRootsTestParam param = new HeapRootsTestParam();
+ methodA(cp, param);
+ }
+
+ private void methodA(ICheckpoint cp, HeapRootsTestParam param) {
+ HeapRootsTestLocalVariable localVariable = new HeapRootsTestLocalVariable();
+ cp.checkpoint();
+ System.out.println(param);
+ System.out.println(localVariable);
+ }
+
+
+
+
+
+}
Propchange: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaRuntime_getHeapRoots.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaStackFrame_getHeapRoots.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaStackFrame_getHeapRoots.java?rev=883384&r1=883383&r2=883384&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaStackFrame_getHeapRoots.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaStackFrame_getHeapRoots.java Mon Nov 23 15:53:48 2009
@@ -1,54 +1,54 @@
-/*******************************************************************************
- * 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.scenario142.javaruntime;
-
-import java.util.HashMap;
-import java.util.Map;
-
-import org.apache.kato.tck.api.ICheckpoint;
-import org.apache.kato.tck.harness.scenario.ScenarioElement;
-
-
-public class SetupJavaStackFrame_getHeapRoots extends ScenarioElement {
-
-
- class HeapRootsTestParam {}
- class HeapRootsTestLocalVariable {}
-
- public static final String threadName = "org.apache.kato.tck.tests.javaruntime.TestJavaStackFrame_getHeapRoots#configureJavaLocalsRoots";
- private Map rootsCheckList = new HashMap();
-
-// public String[] jvmDisableJIT()
-// {
-// System.out.println("Disabling JIT...");
-// return new String[]{"-Xint"};
-// }
-
-
-
- public void configureJavaLocalsRoots(ICheckpoint cp) {
- HeapRootsTestParam param = new HeapRootsTestParam();
- methodA(cp, param);
- }
-
- private void methodA(ICheckpoint cp, HeapRootsTestParam param) {
- HeapRootsTestLocalVariable localVariable = new HeapRootsTestLocalVariable();
- cp.checkpoint();
- System.out.println(param);
- System.out.println(localVariable);
- }
-
-
-
-}
+/*******************************************************************************
+ * 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.scenario142.javaruntime;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import org.apache.kato.tck.api.ICheckpoint;
+import org.apache.kato.tck.harness.scenario.ScenarioElement;
+
+
+public class SetupJavaStackFrame_getHeapRoots extends ScenarioElement {
+
+
+ class HeapRootsTestParam {}
+ class HeapRootsTestLocalVariable {}
+
+ public static final String threadName = "org.apache.kato.tck.tests.javaruntime.TestJavaStackFrame_getHeapRoots#configureJavaLocalsRoots";
+ private Map rootsCheckList = new HashMap();
+
+// public String[] jvmDisableJIT()
+// {
+// System.out.println("Disabling JIT...");
+// return new String[]{"-Xint"};
+// }
+
+
+
+ public void configureJavaLocalsRoots(ICheckpoint cp) {
+ HeapRootsTestParam param = new HeapRootsTestParam();
+ methodA(cp, param);
+ }
+
+ private void methodA(ICheckpoint cp, HeapRootsTestParam param) {
+ HeapRootsTestLocalVariable localVariable = new HeapRootsTestLocalVariable();
+ cp.checkpoint();
+ System.out.println(param);
+ System.out.println(localVariable);
+ }
+
+
+
+}
Propchange: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaStackFrame_getHeapRoots.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaThreadInspection.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaThreadInspection.java?rev=883384&r1=883383&r2=883384&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaThreadInspection.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaThreadInspection.java Mon Nov 23 15:53:48 2009
@@ -1,51 +1,51 @@
-/*******************************************************************************
- * 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.scenario142.javaruntime;
-
-import org.apache.kato.tck.api.ICheckpoint;
-import org.apache.kato.tck.harness.scenario.ScenarioElement;
-
-
-
-/**
- * Tests to ensure that valid Thread objects get reported correctly
- *
- */
-public class SetupJavaThreadInspection extends ScenarioElement{
-
-
-public Thread[] configThreadInstances=null;
-
-
-
- public void configureValidJavaThreads(ICheckpoint cp) {
- Thread t1=new Thread() {
- public void run() {
- while (true) {
- try {
- sleep (10000);
- } catch (InterruptedException e) {
- }
- }
- }
- };
- Thread t2=new Thread(t1);
- Thread t3=new Thread("");
-
- configThreadInstances=new Thread[]{t1,t2,t3};
-
- cp.checkpoint();
-
- }
-}
+/*******************************************************************************
+ * 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.scenario142.javaruntime;
+
+import org.apache.kato.tck.api.ICheckpoint;
+import org.apache.kato.tck.harness.scenario.ScenarioElement;
+
+
+
+/**
+ * Tests to ensure that valid Thread objects get reported correctly
+ *
+ */
+public class SetupJavaThreadInspection extends ScenarioElement{
+
+
+public Thread[] configThreadInstances=null;
+
+
+
+ public void configureValidJavaThreads(ICheckpoint cp) {
+ Thread t1=new Thread() {
+ public void run() {
+ while (true) {
+ try {
+ sleep (10000);
+ } catch (InterruptedException e) {
+ }
+ }
+ }
+ };
+ Thread t2=new Thread(t1);
+ Thread t3=new Thread("");
+
+ configThreadInstances=new Thread[]{t1,t2,t3};
+
+ cp.checkpoint();
+
+ }
+}
Propchange: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaThreadInspection.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaThread_getName.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaThread_getName.java?rev=883384&r1=883383&r2=883384&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaThread_getName.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaThread_getName.java Mon Nov 23 15:53:48 2009
@@ -1,51 +1,51 @@
-/*******************************************************************************
- * 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.scenario142.javaruntime;
-
-import java.util.Hashtable;
-
-import org.apache.kato.tck.harness.scenario.ScenarioElement;
-
-
-public class SetupJavaThread_getName extends ScenarioElement {
-
- public class MyThread extends Thread {
- public Hashtable name = null;
-
- public MyThread(Runnable r, String n) {
- super(r,n);
- }
-
- }
-
- public static String threadName = "a_special_thread";
-
-
- public void configureJavaThread()
- {
- Runnable r=new Runnable() {
-
- public void run() {
- try {
- Thread.sleep(1000000);
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
-
- }};
-
- MyThread t=new MyThread(r,threadName);
- t.start();
- }
-}
+/*******************************************************************************
+ * 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.scenario142.javaruntime;
+
+import java.util.Hashtable;
+
+import org.apache.kato.tck.harness.scenario.ScenarioElement;
+
+
+public class SetupJavaThread_getName extends ScenarioElement {
+
+ public class MyThread extends Thread {
+ public Hashtable name = null;
+
+ public MyThread(Runnable r, String n) {
+ super(r,n);
+ }
+
+ }
+
+ public static String threadName = "a_special_thread";
+
+
+ public void configureJavaThread()
+ {
+ Runnable r=new Runnable() {
+
+ public void run() {
+ try {
+ Thread.sleep(1000000);
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+
+ }};
+
+ MyThread t=new MyThread(r,threadName);
+ t.start();
+ }
+}
Propchange: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaThread_getName.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaThread_getStackFrames.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaThread_getStackFrames.java?rev=883384&r1=883383&r2=883384&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaThread_getStackFrames.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaThread_getStackFrames.java Mon Nov 23 15:53:48 2009
@@ -1,90 +1,90 @@
-/*******************************************************************************
- * 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.scenario142.javaruntime;
-
-import org.apache.kato.tck.harness.scenario.ScenarioElement;
-
-
-
-
-/**
- *
- * Tests JavaThread.getStackFrames(). Configures a thread with a known stack in
- * the live JVM. Finds the thread, by name, in the dump and then retrieves it's
- * JavaStackFrames and checks that the expected methods are there in the correct
- * order. Ignores possible spurious methods inbetween the methods it does expect
- * for implementation specifics.
- *
- */
-public class SetupJavaThread_getStackFrames extends ScenarioElement {
- public static final String threadName = "TestJavaThread_getStackFrames Thread";
-
- public static String[] methodNames = { "wait", "methodC", "methodB", "methodA",
- "run" };
-
- public static class ContrivedThread extends Thread {
- volatile private boolean running = false;
-
- public boolean isRunning() {
- return running;
- }
-
- public ContrivedThread(String name) {
- super(name);
- }
-
- public void run() {
- methodA(1);
- }
-
- public int methodA(int arg) {
- return methodB(arg) + 1;
- }
-
- public int methodB(int arg) {
- return methodC(arg, arg);
- }
-
- public synchronized int methodC(int arg1, int arg2) {
- int total = arg1 + arg2;
-
- this.running = true;
-
- this.notify();
- try {
- wait();
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- return total;
- }
- }
-
- public void configureThreadStack() {
- ContrivedThread thread = new ContrivedThread(threadName);
- synchronized (thread) {
- thread.start();
- while (!thread.isRunning()) {
- try {
- thread.wait();
- } catch (InterruptedException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- }
- }
- }
-
- //public JavaThread contrivedThread;
-}
+/*******************************************************************************
+ * 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.scenario142.javaruntime;
+
+import org.apache.kato.tck.harness.scenario.ScenarioElement;
+
+
+
+
+/**
+ *
+ * Tests JavaThread.getStackFrames(). Configures a thread with a known stack in
+ * the live JVM. Finds the thread, by name, in the dump and then retrieves it's
+ * JavaStackFrames and checks that the expected methods are there in the correct
+ * order. Ignores possible spurious methods inbetween the methods it does expect
+ * for implementation specifics.
+ *
+ */
+public class SetupJavaThread_getStackFrames extends ScenarioElement {
+ public static final String threadName = "TestJavaThread_getStackFrames Thread";
+
+ public static String[] methodNames = { "wait", "methodC", "methodB", "methodA",
+ "run" };
+
+ public static class ContrivedThread extends Thread {
+ volatile private boolean running = false;
+
+ public boolean isRunning() {
+ return running;
+ }
+
+ public ContrivedThread(String name) {
+ super(name);
+ }
+
+ public void run() {
+ methodA(1);
+ }
+
+ public int methodA(int arg) {
+ return methodB(arg) + 1;
+ }
+
+ public int methodB(int arg) {
+ return methodC(arg, arg);
+ }
+
+ public synchronized int methodC(int arg1, int arg2) {
+ int total = arg1 + arg2;
+
+ this.running = true;
+
+ this.notify();
+ try {
+ wait();
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ return total;
+ }
+ }
+
+ public void configureThreadStack() {
+ ContrivedThread thread = new ContrivedThread(threadName);
+ synchronized (thread) {
+ thread.start();
+ while (!thread.isRunning()) {
+ try {
+ thread.wait();
+ } catch (InterruptedException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+ }
+ }
+ }
+
+ //public JavaThread contrivedThread;
+}
Propchange: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaThread_getStackFrames.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/process/ProcessScenarioSetup.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/process/SetupEnvironmentVariables.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/process/SetupEnvironmentVariables.java?rev=883384&r1=883383&r2=883384&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/process/SetupEnvironmentVariables.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/process/SetupEnvironmentVariables.java Mon Nov 23 15:53:48 2009
@@ -1,34 +1,34 @@
-/*******************************************************************************
- * 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.scenario142.process;
-
-import org.apache.kato.tck.harness.scenario.ScenarioElement;
-
-
-
-public class SetupEnvironmentVariables extends ScenarioElement{
-
- public static final String VALUE = "org.apache.kato.tck.environment.test-value-176453";
- public static final String KEY1 = "org.apache.kato.tck.evironment-test-key-176453";
- public static final String KEY2 = "org.apache.kato.tck.evironment-test-key-93222";
- public static final String KEY3 = "org.apache.kato.tck.evironment-test-key-96545";
-
- /**
- * Env method called by collection stage of TCK to set envvars
- * @return
- */
- public String[] envEnvironmentVariableRetrieved() {
- return new String[]{KEY1+"="+VALUE,KEY2+"=",KEY3};
- }
-}
+/*******************************************************************************
+ * 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.scenario142.process;
+
+import org.apache.kato.tck.harness.scenario.ScenarioElement;
+
+
+
+public class SetupEnvironmentVariables extends ScenarioElement{
+
+ public static final String VALUE = "org.apache.kato.tck.environment.test-value-176453";
+ public static final String KEY1 = "org.apache.kato.tck.evironment-test-key-176453";
+ public static final String KEY2 = "org.apache.kato.tck.evironment-test-key-93222";
+ public static final String KEY3 = "org.apache.kato.tck.evironment-test-key-96545";
+
+ /**
+ * Env method called by collection stage of TCK to set envvars
+ * @return
+ */
+ public String[] envEnvironmentVariableRetrieved() {
+ return new String[]{KEY1+"="+VALUE,KEY2+"=",KEY3};
+ }
+}
Propchange: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/process/SetupEnvironmentVariables.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.150/src/main/java/org/apache/kato/tck/scenario150/DumpTrigger150.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.150/src/main/java/org/apache/kato/tck/scenario150/DumpTrigger150.java?rev=883384&r1=883383&r2=883384&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.150/src/main/java/org/apache/kato/tck/scenario150/DumpTrigger150.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.150/src/main/java/org/apache/kato/tck/scenario150/DumpTrigger150.java Mon Nov 23 15:53:48 2009
@@ -1,25 +1,25 @@
-/*******************************************************************************
- * 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.scenario150;
-
-import org.apache.kato.tck.harness.scenario.IDumpTrigger;
-
-public class DumpTrigger150 implements IDumpTrigger{
-
- public void dump() {
- System.out.println("BOOM");
-
- }
-
-}
+/*******************************************************************************
+ * 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.scenario150;
+
+import org.apache.kato.tck.harness.scenario.IDumpTrigger;
+
+public class DumpTrigger150 implements IDumpTrigger{
+
+ public void dump() {
+ System.out.println("BOOM");
+
+ }
+
+}
Propchange: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.150/src/main/java/org/apache/kato/tck/scenario150/DumpTrigger150.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.150/src/main/java/org/apache/kato/tck/scenario150/ScenarioLauncher150.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.150/src/main/java/org/apache/kato/tck/scenario150/ScenarioLauncher150.java?rev=883384&r1=883383&r2=883384&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.150/src/main/java/org/apache/kato/tck/scenario150/ScenarioLauncher150.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.150/src/main/java/org/apache/kato/tck/scenario150/ScenarioLauncher150.java Mon Nov 23 15:53:48 2009
@@ -1,27 +1,27 @@
-/*******************************************************************************
- * 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.scenario150;
-
-
-public class ScenarioLauncher150 {
-
-
- public ScenarioLauncher150() {
-
-
- }
-
-
-
-}
+/*******************************************************************************
+ * 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.scenario150;
+
+
+public class ScenarioLauncher150 {
+
+
+ public ScenarioLauncher150() {
+
+
+ }
+
+
+
+}
Propchange: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.150/src/main/java/org/apache/kato/tck/scenario150/ScenarioLauncher150.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.160/src/main/java/org/apache/kato/tck/scenario160/DumpDelegate.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.160/src/main/java/org/apache/kato/tck/scenario160/DumpTrigger160.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.160/src/main/java/org/apache/kato/tck/scenario160/DumpTrigger160.java?rev=883384&r1=883383&r2=883384&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.160/src/main/java/org/apache/kato/tck/scenario160/DumpTrigger160.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.160/src/main/java/org/apache/kato/tck/scenario160/DumpTrigger160.java Mon Nov 23 15:53:48 2009
@@ -1,29 +1,29 @@
-/*******************************************************************************
- * 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.scenario160;
-
-import javax.tools.diagnostics.vm.Dump;
-
-import org.apache.kato.tck.harness.scenario.IDumpTrigger;
-
-public class DumpTrigger160 implements IDumpTrigger{
-
- public void dump() {
- Dump.setDumpDelegate(new DumpDelegate());
- Dump d=new Dump();
- d.execute();
-
- }
-
-}
+/*******************************************************************************
+ * 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.scenario160;
+
+import javax.tools.diagnostics.vm.Dump;
+
+import org.apache.kato.tck.harness.scenario.IDumpTrigger;
+
+public class DumpTrigger160 implements IDumpTrigger{
+
+ public void dump() {
+ Dump.setDumpDelegate(new DumpDelegate());
+ Dump d=new Dump();
+ d.execute();
+
+ }
+
+}
Propchange: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.160/src/main/java/org/apache/kato/tck/scenario160/DumpTrigger160.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.160/src/main/java/org/apache/kato/tck/scenario160/ScenarioLauncher160.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.160/src/main/java/org/apache/kato/tck/scenario160/ScenarioLauncher160.java?rev=883384&r1=883383&r2=883384&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.160/src/main/java/org/apache/kato/tck/scenario160/ScenarioLauncher160.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.160/src/main/java/org/apache/kato/tck/scenario160/ScenarioLauncher160.java Mon Nov 23 15:53:48 2009
@@ -1,27 +1,27 @@
-/*******************************************************************************
- * 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.scenario160;
-
-
-public class ScenarioLauncher160 {
-
-
-
- public ScenarioLauncher160() {
-
- }
-
-
-
-}
+/*******************************************************************************
+ * 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.scenario160;
+
+
+public class ScenarioLauncher160 {
+
+
+
+ public ScenarioLauncher160() {
+
+ }
+
+
+
+}
Propchange: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.160/src/main/java/org/apache/kato/tck/scenario160/ScenarioLauncher160.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/pom.xml
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/pom.xml?rev=883384&r1=883383&r2=883384&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/pom.xml (original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/pom.xml Mon Nov 23 15:53:48 2009
@@ -1,51 +1,51 @@
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you 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.
--->
-
- <parent>
- <artifactId>kato</artifactId>
- <groupId>org.apache.kato</groupId>
- <version>M1-incubating</version>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.apache.kato</groupId>
- <artifactId>kato.tck.testsuite</artifactId>
- <name>Test Suite</name>
- <version>M1-incubating</version>
- <description>TCK Test suite</description>
- <dependencies>
- <dependency>
- <groupId>org.apache.kato</groupId>
- <artifactId>kato.tck.harness</artifactId>
- <version>M1-incubating</version>
- <scope>compile</scope>
- </dependency>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>3.8.1</version>
- <scope>compile</scope>
- </dependency>
- <dependency>
- <groupId>org.apache.kato</groupId>
- <artifactId>kato.tck.testsuite.scenario.142</artifactId>
- <version>M1-incubating</version>
- </dependency>
- </dependencies>
-</project>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+-->
+
+ <parent>
+ <artifactId>kato</artifactId>
+ <groupId>org.apache.kato</groupId>
+ <version>M1-incubating</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.apache.kato</groupId>
+ <artifactId>kato.tck.testsuite</artifactId>
+ <name>Test Suite</name>
+ <version>M1-incubating</version>
+ <description>TCK Test suite</description>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.kato</groupId>
+ <artifactId>kato.tck.harness</artifactId>
+ <version>M1-incubating</version>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>3.8.1</version>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.kato</groupId>
+ <artifactId>kato.tck.testsuite.scenario.142</artifactId>
+ <version>M1-incubating</version>
+ </dependency>
+ </dependencies>
+</project>
Propchange: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/javaruntime/AllJavaRuntimeTests.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/javaruntime/TestFactoryRegistry.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/javaruntime/TestJavaClassLoader_getJavaObject.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/TestJavaClassLoader_getJavaObject.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/TestJavaClassLoader_getJavaObject.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/javaruntime/TestJavaClassLoader_getJavaObject.java Mon Nov 23 15:53:48 2009
@@ -1,89 +1,89 @@
-/*******************************************************************************
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- ******************************************************************************/
-package org.apache.kato.tck.tests.javaruntime;
-
-import java.util.Iterator;
-
-import javax.tools.diagnostics.image.CorruptData;
-import javax.tools.diagnostics.image.CorruptDataException;
-import javax.tools.diagnostics.runtime.java.JavaClass;
-import javax.tools.diagnostics.runtime.java.JavaClassLoader;
-import javax.tools.diagnostics.runtime.java.JavaField;
-import javax.tools.diagnostics.runtime.java.JavaObject;
-import javax.tools.diagnostics.runtime.java.JavaRuntime;
-
-import org.apache.kato.tck.harness.TCKJavaRuntimeTestcase;
-
-
-/**
- *
- *
- */
-public class TestJavaClassLoader_getJavaObject extends TCKJavaRuntimeTestcase {
-
-
-
-
- public void testJavaClassLoader_getJavaObject()
- {
- boolean foundClassLoader = false;
-
- JavaRuntime runtime=getJavaRuntime();
- Iterator classloaders = runtime.getJavaClassLoaders().iterator();
-
- while (classloaders.hasNext()) {
- Object nextClassloader = classloaders.next();
- if (nextClassloader instanceof CorruptData) {
- System.err.println("returned CorruptData `" + nextClassloader + "'");
- break;
- }
-
- JavaClassLoader aJavaClassloader = (JavaClassLoader) nextClassloader;
- JavaClass theJavaClass;
- try {
- JavaObject classLoaderObject = (aJavaClassloader).getObject();
-
- // The system class loader doesn't have an object.
- if (classLoaderObject == null ) {
- continue;
- }
-
- theJavaClass = classLoaderObject.getJavaClass();
- Iterator fields = theJavaClass.getDeclaredFields().iterator();
-
- while (fields.hasNext()) {
- Object nextField = fields.next();
-
- if (nextField instanceof CorruptData) {
- System.err.println("returned CorruptData `" + nextField + "'");
- break;
- }
-
- JavaField theField = (JavaField) nextField;
- String theFieldName = theField.getName();
- if (theFieldName.equals("JavaClassLoader_getJavaObject")){
- foundClassLoader = true;
- }
-
- }
-
- } catch (CorruptDataException e) {
- assertNotNull(e.getCorruptData());
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- }
- assertTrue(foundClassLoader);
- }
-}
+/*******************************************************************************
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ ******************************************************************************/
+package org.apache.kato.tck.tests.javaruntime;
+
+import java.util.Iterator;
+
+import javax.tools.diagnostics.image.CorruptData;
+import javax.tools.diagnostics.image.CorruptDataException;
+import javax.tools.diagnostics.runtime.java.JavaClass;
+import javax.tools.diagnostics.runtime.java.JavaClassLoader;
+import javax.tools.diagnostics.runtime.java.JavaField;
+import javax.tools.diagnostics.runtime.java.JavaObject;
+import javax.tools.diagnostics.runtime.java.JavaRuntime;
+
+import org.apache.kato.tck.harness.TCKJavaRuntimeTestcase;
+
+
+/**
+ *
+ *
+ */
+public class TestJavaClassLoader_getJavaObject extends TCKJavaRuntimeTestcase {
+
+
+
+
+ public void testJavaClassLoader_getJavaObject()
+ {
+ boolean foundClassLoader = false;
+
+ JavaRuntime runtime=getJavaRuntime();
+ Iterator classloaders = runtime.getJavaClassLoaders().iterator();
+
+ while (classloaders.hasNext()) {
+ Object nextClassloader = classloaders.next();
+ if (nextClassloader instanceof CorruptData) {
+ System.err.println("returned CorruptData `" + nextClassloader + "'");
+ break;
+ }
+
+ JavaClassLoader aJavaClassloader = (JavaClassLoader) nextClassloader;
+ JavaClass theJavaClass;
+ try {
+ JavaObject classLoaderObject = (aJavaClassloader).getObject();
+
+ // The system class loader doesn't have an object.
+ if (classLoaderObject == null ) {
+ continue;
+ }
+
+ theJavaClass = classLoaderObject.getJavaClass();
+ Iterator fields = theJavaClass.getDeclaredFields().iterator();
+
+ while (fields.hasNext()) {
+ Object nextField = fields.next();
+
+ if (nextField instanceof CorruptData) {
+ System.err.println("returned CorruptData `" + nextField + "'");
+ break;
+ }
+
+ JavaField theField = (JavaField) nextField;
+ String theFieldName = theField.getName();
+ if (theFieldName.equals("JavaClassLoader_getJavaObject")){
+ foundClassLoader = true;
+ }
+
+ }
+
+ } catch (CorruptDataException e) {
+ assertNotNull(e.getCorruptData());
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+ }
+ assertTrue(foundClassLoader);
+ }
+}
Propchange: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/javaruntime/TestJavaClassLoader_getJavaObject.java
------------------------------------------------------------------------------
svn:eol-style = native