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 [33/47] - in /incubator/kato/trunk/org.apache.kato: ./
kato.anttasks/src/main/java/org/apache/kato/anttasks/
kato.anttasks/src/main/java/org/apache/kato/anttasks/sitebuilder/
kato.anttasks/src/main/java/org/apache/kato/anttasks/tck/...
Modified: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/javaruntime/TestJavaStackFrame_getHeapRoots.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/TestJavaStackFrame_getHeapRoots.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/TestJavaStackFrame_getHeapRoots.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/javaruntime/TestJavaStackFrame_getHeapRoots.java Mon Nov 23 15:53:48 2009
@@ -1,198 +1,198 @@
-/*******************************************************************************
- * 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.ArrayList;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.Map;
-
-import javax.tools.diagnostics.image.CorruptData;
-import javax.tools.diagnostics.image.CorruptDataException;
-import javax.tools.diagnostics.image.DataUnavailable;
-import javax.tools.diagnostics.runtime.java.JavaClass;
-import javax.tools.diagnostics.runtime.java.JavaLocation;
-import javax.tools.diagnostics.runtime.java.JavaObject;
-import javax.tools.diagnostics.runtime.java.JavaReference;
-import javax.tools.diagnostics.runtime.java.JavaRuntime;
-import javax.tools.diagnostics.runtime.java.JavaStackFrame;
-import javax.tools.diagnostics.runtime.java.JavaThread;
-
-import org.apache.kato.tck.api.ICheckpoint;
-import org.apache.kato.tck.harness.TCKJavaRuntimeTestcase;
-import org.apache.kato.tck.scenario142.javaruntime.SetupJavaRuntime_getHeapRoots.HeapRoot;
-
-
-
-public class TestJavaStackFrame_getHeapRoots extends TCKJavaRuntimeTestcase {
-
-
- class HeapRootsTestParam {}
- class HeapRootsTestLocalVariable {}
-
- public static final String threadName = "org.apache.kato.tck.tests.javaruntime.TestJavaStackFrame_getHeapRoots#configureJavaLocalsRoots";
- private JavaStackFrame frame = null;
- private Map rootsCheckList = new HashMap();
-
-// public String[] jvmDisableJIT()
-// {
-// System.out.println("Disabling JIT...");
-// return new String[]{"-Xint"};
-// }
-
-
-
- public void setUp () {
- JavaRuntime runtime = getJavaRuntime();
- Iterator threads = runtime.getThreads().iterator();
- JavaThread contrivedThread = null;
- while (threads.hasNext()) {
- Object next = threads.next();
-
- if (next instanceof JavaThread) {
- JavaThread thread = (JavaThread) next;
- try {
- //System.out.println("Thread: " + thread.getName());
- if (threadName.equals( thread.getName())) {
-// System.out.println("Thread " + thread.getName() + " found!");
- contrivedThread = thread;
- break;
- }
- } catch (CorruptDataException e) {
- assertNotNull(e.getCorruptData());
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- }
- }
- if (contrivedThread == null) {
- fail("Couldn't find thread "+threadName);
- }
-
- Iterator frames = contrivedThread.getStackFrames().iterator();
- JavaStackFrame currentFrame = null;
- while (frames.hasNext() && frame == null) {
- Object next = frames.next();
-
- if (next instanceof JavaStackFrame) {
- currentFrame = (JavaStackFrame) next;
- try {
- JavaLocation location = currentFrame.getLocation();
- String methodName = location.getMethod().getName();
-// System.out.println("Method is: " + methodName + " "+ location.getFilename() + "@" + location.getLineNumber());
- if ("methodA".equals(methodName)) {
- frame = currentFrame;
- }
- } catch (Exception e) {
- //e.printStackTrace();
- }
- }
- }
-
- if (null == frame) {
- fail("Couldn't find stack frame for methodA");
- }
-
- Iterator roots = frame.getHeapRoots().iterator();
- while (roots.hasNext()) {
- Object next = roots.next();
- if (next instanceof CorruptData) {
- continue;
- }
- JavaReference r = (JavaReference)next;
- try {
- Object root = r.getTarget();
- int type = r.getRootType();
- HeapRoot rootObject = new HeapRoot(root, type);
- rootsCheckList.put(rootObject, Boolean.FALSE);
- //System.out.println("Adding " + rootObject + " to rootCheckList" );
- } catch (DataUnavailable du) {
- } catch (CorruptDataException cde) {
- assertNotNull(cde.getCorruptData());
- }
- }
-
-
- }
-
-
- 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);
- }
-
- private HeapRoot[] searchRootByClassName(Map rootCheckList, String classNameToSearch) {
- return searchRootByClassName(rootCheckList, classNameToSearch, 0);
- }
-
-
- private HeapRoot[] searchRootByClassName(Map rootCheckList, String classNameToSearch, int type) {
- String className;
- ArrayList roots = new ArrayList();
- Iterator i = rootsCheckList.keySet().iterator();
- while (i.hasNext()) {
- Object next = i.next();
- if (!(next instanceof HeapRoot)) {
- continue;
- }
- HeapRoot rootObject = (HeapRoot)next;
- Object root = rootObject.getRoot();
- int rootType = rootObject.getType();
- if (type != 0 && type != rootType) {
- continue;
- }
- try {
- if (root instanceof JavaObject) {
- className = ((JavaObject)root).getJavaClass().getName();
- } else if (root instanceof JavaClass) {
- className = ((JavaClass)root).getName();
- } else {
- continue;
- }
- if (className.endsWith(classNameToSearch)) {
- //System.out.println("Found root object of class: "+ className + " root type: " + HeapRoot.getRootTypeDescription(rootType));
-// synchronized (root) {
-// rootsCheckList.put(root, Boolean.TRUE);
-// }
- roots.add(rootObject);
- }
- } catch (CorruptDataException e) {
- assertNotNull(e.getCorruptData());
- continue;
- }
- }
- //System.out.println("Root object of type " + classNameToSearch + " not found.");
- HeapRoot[] heapRoots = (HeapRoot[])roots.toArray(new HeapRoot[0]);
- return heapRoots;
- }
-
-
- public void testJavaLocalRoots() throws Exception {
- HeapRoot[] roots = searchRootByClassName(rootsCheckList, "HeapRootsTestLocalVariable", JavaReference.HEAP_ROOT_STACK_LOCAL);
- assertTrue("Found Local Variable object not reported as root.", roots.length != 0);
- }
-
- public void testParameterRoots() throws Exception {
- HeapRoot[] roots = searchRootByClassName(rootsCheckList, "HeapRootsTestParam", JavaReference.HEAP_ROOT_STACK_LOCAL);
- assertTrue("Found Local Variable object not reported as root.", roots.length != 0);
- }
-
-}
+/*******************************************************************************
+ * 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.ArrayList;
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.Map;
+
+import javax.tools.diagnostics.image.CorruptData;
+import javax.tools.diagnostics.image.CorruptDataException;
+import javax.tools.diagnostics.image.DataUnavailable;
+import javax.tools.diagnostics.runtime.java.JavaClass;
+import javax.tools.diagnostics.runtime.java.JavaLocation;
+import javax.tools.diagnostics.runtime.java.JavaObject;
+import javax.tools.diagnostics.runtime.java.JavaReference;
+import javax.tools.diagnostics.runtime.java.JavaRuntime;
+import javax.tools.diagnostics.runtime.java.JavaStackFrame;
+import javax.tools.diagnostics.runtime.java.JavaThread;
+
+import org.apache.kato.tck.api.ICheckpoint;
+import org.apache.kato.tck.harness.TCKJavaRuntimeTestcase;
+import org.apache.kato.tck.scenario142.javaruntime.SetupJavaRuntime_getHeapRoots.HeapRoot;
+
+
+
+public class TestJavaStackFrame_getHeapRoots extends TCKJavaRuntimeTestcase {
+
+
+ class HeapRootsTestParam {}
+ class HeapRootsTestLocalVariable {}
+
+ public static final String threadName = "org.apache.kato.tck.tests.javaruntime.TestJavaStackFrame_getHeapRoots#configureJavaLocalsRoots";
+ private JavaStackFrame frame = null;
+ private Map rootsCheckList = new HashMap();
+
+// public String[] jvmDisableJIT()
+// {
+// System.out.println("Disabling JIT...");
+// return new String[]{"-Xint"};
+// }
+
+
+
+ public void setUp () {
+ JavaRuntime runtime = getJavaRuntime();
+ Iterator threads = runtime.getThreads().iterator();
+ JavaThread contrivedThread = null;
+ while (threads.hasNext()) {
+ Object next = threads.next();
+
+ if (next instanceof JavaThread) {
+ JavaThread thread = (JavaThread) next;
+ try {
+ //System.out.println("Thread: " + thread.getName());
+ if (threadName.equals( thread.getName())) {
+// System.out.println("Thread " + thread.getName() + " found!");
+ contrivedThread = thread;
+ break;
+ }
+ } catch (CorruptDataException e) {
+ assertNotNull(e.getCorruptData());
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+ }
+ }
+ if (contrivedThread == null) {
+ fail("Couldn't find thread "+threadName);
+ }
+
+ Iterator frames = contrivedThread.getStackFrames().iterator();
+ JavaStackFrame currentFrame = null;
+ while (frames.hasNext() && frame == null) {
+ Object next = frames.next();
+
+ if (next instanceof JavaStackFrame) {
+ currentFrame = (JavaStackFrame) next;
+ try {
+ JavaLocation location = currentFrame.getLocation();
+ String methodName = location.getMethod().getName();
+// System.out.println("Method is: " + methodName + " "+ location.getFilename() + "@" + location.getLineNumber());
+ if ("methodA".equals(methodName)) {
+ frame = currentFrame;
+ }
+ } catch (Exception e) {
+ //e.printStackTrace();
+ }
+ }
+ }
+
+ if (null == frame) {
+ fail("Couldn't find stack frame for methodA");
+ }
+
+ Iterator roots = frame.getHeapRoots().iterator();
+ while (roots.hasNext()) {
+ Object next = roots.next();
+ if (next instanceof CorruptData) {
+ continue;
+ }
+ JavaReference r = (JavaReference)next;
+ try {
+ Object root = r.getTarget();
+ int type = r.getRootType();
+ HeapRoot rootObject = new HeapRoot(root, type);
+ rootsCheckList.put(rootObject, Boolean.FALSE);
+ //System.out.println("Adding " + rootObject + " to rootCheckList" );
+ } catch (DataUnavailable du) {
+ } catch (CorruptDataException cde) {
+ assertNotNull(cde.getCorruptData());
+ }
+ }
+
+
+ }
+
+
+ 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);
+ }
+
+ private HeapRoot[] searchRootByClassName(Map rootCheckList, String classNameToSearch) {
+ return searchRootByClassName(rootCheckList, classNameToSearch, 0);
+ }
+
+
+ private HeapRoot[] searchRootByClassName(Map rootCheckList, String classNameToSearch, int type) {
+ String className;
+ ArrayList roots = new ArrayList();
+ Iterator i = rootsCheckList.keySet().iterator();
+ while (i.hasNext()) {
+ Object next = i.next();
+ if (!(next instanceof HeapRoot)) {
+ continue;
+ }
+ HeapRoot rootObject = (HeapRoot)next;
+ Object root = rootObject.getRoot();
+ int rootType = rootObject.getType();
+ if (type != 0 && type != rootType) {
+ continue;
+ }
+ try {
+ if (root instanceof JavaObject) {
+ className = ((JavaObject)root).getJavaClass().getName();
+ } else if (root instanceof JavaClass) {
+ className = ((JavaClass)root).getName();
+ } else {
+ continue;
+ }
+ if (className.endsWith(classNameToSearch)) {
+ //System.out.println("Found root object of class: "+ className + " root type: " + HeapRoot.getRootTypeDescription(rootType));
+// synchronized (root) {
+// rootsCheckList.put(root, Boolean.TRUE);
+// }
+ roots.add(rootObject);
+ }
+ } catch (CorruptDataException e) {
+ assertNotNull(e.getCorruptData());
+ continue;
+ }
+ }
+ //System.out.println("Root object of type " + classNameToSearch + " not found.");
+ HeapRoot[] heapRoots = (HeapRoot[])roots.toArray(new HeapRoot[0]);
+ return heapRoots;
+ }
+
+
+ public void testJavaLocalRoots() throws Exception {
+ HeapRoot[] roots = searchRootByClassName(rootsCheckList, "HeapRootsTestLocalVariable", JavaReference.HEAP_ROOT_STACK_LOCAL);
+ assertTrue("Found Local Variable object not reported as root.", roots.length != 0);
+ }
+
+ public void testParameterRoots() throws Exception {
+ HeapRoot[] roots = searchRootByClassName(rootsCheckList, "HeapRootsTestParam", JavaReference.HEAP_ROOT_STACK_LOCAL);
+ assertTrue("Found Local Variable object not reported as root.", roots.length != 0);
+ }
+
+}
Propchange: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/javaruntime/TestJavaStackFrame_getHeapRoots.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/javaruntime/TestJavaThreadInspection.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/TestJavaThreadInspection.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/TestJavaThreadInspection.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/javaruntime/TestJavaThreadInspection.java Mon Nov 23 15:53:48 2009
@@ -1,86 +1,86 @@
-/*******************************************************************************
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- ******************************************************************************/
-package org.apache.kato.tck.tests.javaruntime;
-
-import java.util.Iterator;
-
-import javax.tools.diagnostics.image.CorruptDataException;
-import javax.tools.diagnostics.image.MemoryAccessException;
-import javax.tools.diagnostics.runtime.java.JavaField;
-import javax.tools.diagnostics.runtime.java.JavaObject;
-import javax.tools.diagnostics.runtime.java.JavaThread;
-
-import org.apache.kato.tck.harness.TCKJavaRuntimeTestcase;
-
-
-/**
- * Tests to ensure that valid Thread objects get reported correctly
- *
- */
-public class TestJavaThreadInspection extends TCKJavaRuntimeTestcase{
-
-
-private JavaObject[] threadDumpInstances=null;
-
-
- /**
- * Locate special holder
- * @throws CorruptDataException
- * @throws MemoryAccessException
- */
- public void setUp() throws CorruptDataException, MemoryAccessException {
-
- JavaObject thisTestInstanceInDump=getScenerioReference();
- assertNotNull(thisTestInstanceInDump);
-
-
- Iterator i=thisTestInstanceInDump.getJavaClass().getDeclaredFields().iterator();
- assertNotNull("declared fields iterator is null",i);
-
- while(i.hasNext()) {
- Object o=i.next();
- if(o instanceof JavaField) {
- JavaField field=(JavaField) o;
- String name=field.getName();
- if(name.equals("configThreadInstances")) {
- JavaObject obj=(JavaObject) field.get(thisTestInstanceInDump);
- // found field
-
- int arraySize=obj.getArraySize();
- assertEquals(3,arraySize);
- threadDumpInstances=new JavaObject[arraySize];
- obj.arraycopy(0,threadDumpInstances,0,arraySize);
- return;
- }
-
- }
- }
-
- fail("unable to locate thread instances field in testcase instance in dump");
-
- }
-
- /**
- * Test that the contents of a thread created using new Thread() can be
- * retrieved
- */
- public void testSimpleThreadCreation() throws Exception {
- assertNotNull(threadDumpInstances);
- JavaObject o1=threadDumpInstances[0];
-
- Thread t=new Thread();
- JavaThread jt;
-
- }
-}
+/*******************************************************************************
+ * 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.CorruptDataException;
+import javax.tools.diagnostics.image.MemoryAccessException;
+import javax.tools.diagnostics.runtime.java.JavaField;
+import javax.tools.diagnostics.runtime.java.JavaObject;
+import javax.tools.diagnostics.runtime.java.JavaThread;
+
+import org.apache.kato.tck.harness.TCKJavaRuntimeTestcase;
+
+
+/**
+ * Tests to ensure that valid Thread objects get reported correctly
+ *
+ */
+public class TestJavaThreadInspection extends TCKJavaRuntimeTestcase{
+
+
+private JavaObject[] threadDumpInstances=null;
+
+
+ /**
+ * Locate special holder
+ * @throws CorruptDataException
+ * @throws MemoryAccessException
+ */
+ public void setUp() throws CorruptDataException, MemoryAccessException {
+
+ JavaObject thisTestInstanceInDump=getScenerioReference();
+ assertNotNull(thisTestInstanceInDump);
+
+
+ Iterator i=thisTestInstanceInDump.getJavaClass().getDeclaredFields().iterator();
+ assertNotNull("declared fields iterator is null",i);
+
+ while(i.hasNext()) {
+ Object o=i.next();
+ if(o instanceof JavaField) {
+ JavaField field=(JavaField) o;
+ String name=field.getName();
+ if(name.equals("configThreadInstances")) {
+ JavaObject obj=(JavaObject) field.get(thisTestInstanceInDump);
+ // found field
+
+ int arraySize=obj.getArraySize();
+ assertEquals(3,arraySize);
+ threadDumpInstances=new JavaObject[arraySize];
+ obj.arraycopy(0,threadDumpInstances,0,arraySize);
+ return;
+ }
+
+ }
+ }
+
+ fail("unable to locate thread instances field in testcase instance in dump");
+
+ }
+
+ /**
+ * Test that the contents of a thread created using new Thread() can be
+ * retrieved
+ */
+ public void testSimpleThreadCreation() throws Exception {
+ assertNotNull(threadDumpInstances);
+ JavaObject o1=threadDumpInstances[0];
+
+ Thread t=new Thread();
+ JavaThread jt;
+
+ }
+}
Propchange: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/javaruntime/TestJavaThreadInspection.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/javaruntime/TestJavaThread_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/TestJavaThread_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/TestJavaThread_getName.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/javaruntime/TestJavaThread_getName.java Mon Nov 23 15:53:48 2009
@@ -1,60 +1,60 @@
-/*******************************************************************************
- * 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.JavaRuntime;
-import javax.tools.diagnostics.runtime.java.JavaThread;
-
-import org.apache.kato.tck.harness.TCKJavaRuntimeTestcase;
-import org.apache.kato.tck.scenario142.javaruntime.SetupJavaThread_getName;
-
-
-public class TestJavaThread_getName extends TCKJavaRuntimeTestcase {
-
-
- public void testJavaThread()
- {
- boolean foundThread = false;
-
- JavaRuntime runtime=getJavaRuntime();
-
- Iterator threads = runtime.getThreads().iterator();
-
- while (threads.hasNext()) {
- Object next = threads.next();
-
- if (next instanceof CorruptData) {
- System.err.println("returned CorruptData `" + next + "'");
- break;
- }
-
- JavaThread thread = (JavaThread) next;
-
- try {
- if (0==SetupJavaThread_getName.threadName.compareTo(thread.getName())){
- foundThread=true;
- }
- } catch (CorruptDataException e) {
- assertNotNull(e.getCorruptData());
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- }
- assertTrue(foundThread);
- }
-}
+/*******************************************************************************
+ * 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.JavaRuntime;
+import javax.tools.diagnostics.runtime.java.JavaThread;
+
+import org.apache.kato.tck.harness.TCKJavaRuntimeTestcase;
+import org.apache.kato.tck.scenario142.javaruntime.SetupJavaThread_getName;
+
+
+public class TestJavaThread_getName extends TCKJavaRuntimeTestcase {
+
+
+ public void testJavaThread()
+ {
+ boolean foundThread = false;
+
+ JavaRuntime runtime=getJavaRuntime();
+
+ Iterator threads = runtime.getThreads().iterator();
+
+ while (threads.hasNext()) {
+ Object next = threads.next();
+
+ if (next instanceof CorruptData) {
+ System.err.println("returned CorruptData `" + next + "'");
+ break;
+ }
+
+ JavaThread thread = (JavaThread) next;
+
+ try {
+ if (0==SetupJavaThread_getName.threadName.compareTo(thread.getName())){
+ foundThread=true;
+ }
+ } catch (CorruptDataException e) {
+ assertNotNull(e.getCorruptData());
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+ }
+ assertTrue(foundThread);
+ }
+}
Propchange: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/javaruntime/TestJavaThread_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/TestJavaThread_getStackFrames.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/TestJavaThread_getStackFrames.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/TestJavaThread_getStackFrames.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/javaruntime/TestJavaThread_getStackFrames.java Mon Nov 23 15:53:48 2009
@@ -1,91 +1,91 @@
-/*******************************************************************************
- * 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.CorruptDataException;
-import javax.tools.diagnostics.runtime.java.JavaLocation;
-import javax.tools.diagnostics.runtime.java.JavaRuntime;
-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.SetupJavaThread_getStackFrames;
-
-
-/**
- *
- * 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 TestJavaThread_getStackFrames extends TCKJavaRuntimeTestcase {
- public void setUp () {
- JavaRuntime runtime = getJavaRuntime();
- Iterator threads = runtime.getThreads().iterator();
-
- while (threads.hasNext()) {
- Object next = threads.next();
-
- if (next instanceof JavaThread) {
- JavaThread thread = (JavaThread) next;
-
- try {
- if (SetupJavaThread_getStackFrames.threadName.equals( thread.getName())) {
- contrivedThread = thread;
- break;
- }
- } catch (CorruptDataException e) {
- assertNotNull(e.getCorruptData());
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- }
- }
-
- if (contrivedThread == null) {
- fail("Couldn't find thread "+SetupJavaThread_getStackFrames.threadName);
- }
- }
-
- private JavaThread contrivedThread;
-
- public void testGetStackFrames() throws Exception {
- Iterator frames = contrivedThread.getStackFrames().iterator();
- int methodIndex = 0;
-
- while (frames.hasNext()) {
- Object next = frames.next();
-
- if (next instanceof JavaStackFrame) {
- JavaStackFrame frame = (JavaStackFrame) next;
-
- JavaLocation location = frame.getLocation();
-
- if ((methodIndex < SetupJavaThread_getStackFrames.methodNames.length)
- && SetupJavaThread_getStackFrames.methodNames[methodIndex].equals(location.getMethod().getName())) {
- methodIndex++;
- }
-
- }
- }
-
- assertEquals("Didn't find all expected methods name. Couldn't find "
- + ((methodIndex < SetupJavaThread_getStackFrames.methodNames.length) ? SetupJavaThread_getStackFrames.methodNames[methodIndex] : ""), SetupJavaThread_getStackFrames.methodNames.length, methodIndex);
- }
-}
+/*******************************************************************************
+ * 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.CorruptDataException;
+import javax.tools.diagnostics.runtime.java.JavaLocation;
+import javax.tools.diagnostics.runtime.java.JavaRuntime;
+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.SetupJavaThread_getStackFrames;
+
+
+/**
+ *
+ * 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 TestJavaThread_getStackFrames extends TCKJavaRuntimeTestcase {
+ public void setUp () {
+ JavaRuntime runtime = getJavaRuntime();
+ Iterator threads = runtime.getThreads().iterator();
+
+ while (threads.hasNext()) {
+ Object next = threads.next();
+
+ if (next instanceof JavaThread) {
+ JavaThread thread = (JavaThread) next;
+
+ try {
+ if (SetupJavaThread_getStackFrames.threadName.equals( thread.getName())) {
+ contrivedThread = thread;
+ break;
+ }
+ } catch (CorruptDataException e) {
+ assertNotNull(e.getCorruptData());
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+ }
+ }
+
+ if (contrivedThread == null) {
+ fail("Couldn't find thread "+SetupJavaThread_getStackFrames.threadName);
+ }
+ }
+
+ private JavaThread contrivedThread;
+
+ public void testGetStackFrames() throws Exception {
+ Iterator frames = contrivedThread.getStackFrames().iterator();
+ int methodIndex = 0;
+
+ while (frames.hasNext()) {
+ Object next = frames.next();
+
+ if (next instanceof JavaStackFrame) {
+ JavaStackFrame frame = (JavaStackFrame) next;
+
+ JavaLocation location = frame.getLocation();
+
+ if ((methodIndex < SetupJavaThread_getStackFrames.methodNames.length)
+ && SetupJavaThread_getStackFrames.methodNames[methodIndex].equals(location.getMethod().getName())) {
+ methodIndex++;
+ }
+
+ }
+ }
+
+ assertEquals("Didn't find all expected methods name. Couldn't find "
+ + ((methodIndex < SetupJavaThread_getStackFrames.methodNames.length) ? SetupJavaThread_getStackFrames.methodNames[methodIndex] : ""), SetupJavaThread_getStackFrames.methodNames.length, methodIndex);
+ }
+}
Propchange: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/javaruntime/TestJavaThread_getStackFrames.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/process/TestEnvironmentVariables.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/process/TestEnvironmentVariables.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/process/TestEnvironmentVariables.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/process/TestEnvironmentVariables.java Mon Nov 23 15:53:48 2009
@@ -1,109 +1,109 @@
-/*******************************************************************************
- * 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.process;
-
-import java.util.Iterator;
-import java.util.Properties;
-
-import javax.tools.diagnostics.image.CorruptDataException;
-import javax.tools.diagnostics.image.DataUnavailable;
-import javax.tools.diagnostics.image.Image;
-import javax.tools.diagnostics.image.ImageAddressSpace;
-import javax.tools.diagnostics.image.ImageProcess;
-import org.apache.kato.tck.harness.TCKProcessTestcase;
-import org.apache.kato.tck.scenario142.process.SetupEnvironmentVariables;
-
-
-public class TestEnvironmentVariables extends TCKProcessTestcase {
-
-
- /**
- * Tests that provided environmental variable is in dump and has
- * correct value
- * @throws CorruptDataException
- * @throws DataUnavailable
- */
- public void testEnvironmentVariableRetrievedKeyValuePair() throws DataUnavailable, CorruptDataException {
-
-
- // get image process
-
-
- ImageProcess process=getProcess();
-
- // get environment
-
- Properties properties=process.getEnvironment();
- String value=properties.getProperty(SetupEnvironmentVariables.KEY1);
- assertEquals(SetupEnvironmentVariables.VALUE,value);
-
-
-
- }
- /**
- * Tests that provided environmental variable is in dump and has
- * correct value
- * @throws CorruptDataException
- * @throws DataUnavailable
- */
- public void testEnvironmentVariableRetrievedKeyOnly() throws DataUnavailable, CorruptDataException {
-
-
- // get image process
-
-
- ImageProcess process=getProcess();
-
- // get environment
-
- Properties properties=process.getEnvironment();
- String value=properties.getProperty(SetupEnvironmentVariables.KEY2);
- assertEquals("key2 value should be empty String","",value);
-
-
-
- }
- /**
- * Tests that provided environmental variable is in dump and has
- * correct value
- * @throws CorruptDataException
- * @throws DataUnavailable
- */
- public void testEnvironmentVariableRetrievedKeyNoValue() throws DataUnavailable, CorruptDataException {
-
-
- // get image process
-
-
- ImageProcess process=getProcess();
-
- // get environment
-
- Properties properties=process.getEnvironment();
- String value=properties.getProperty(SetupEnvironmentVariables.KEY3);
- System.out.println("KEY3 "+SetupEnvironmentVariables.KEY3+" value \""+value+"\"");
- assertNull(value);
-
-
-
- }
- private ImageProcess getProcess() {
-
- Image image=getImage();
- Iterator addressIterator=image.getAddressSpaces().iterator();
- ImageAddressSpace addressSpace=(ImageAddressSpace) addressIterator.next();
- ImageProcess process=addressSpace.getCurrentProcess();
- return process;
- }
-}
+/*******************************************************************************
+ * 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.process;
+
+import java.util.Iterator;
+import java.util.Properties;
+
+import javax.tools.diagnostics.image.CorruptDataException;
+import javax.tools.diagnostics.image.DataUnavailable;
+import javax.tools.diagnostics.image.Image;
+import javax.tools.diagnostics.image.ImageAddressSpace;
+import javax.tools.diagnostics.image.ImageProcess;
+import org.apache.kato.tck.harness.TCKProcessTestcase;
+import org.apache.kato.tck.scenario142.process.SetupEnvironmentVariables;
+
+
+public class TestEnvironmentVariables extends TCKProcessTestcase {
+
+
+ /**
+ * Tests that provided environmental variable is in dump and has
+ * correct value
+ * @throws CorruptDataException
+ * @throws DataUnavailable
+ */
+ public void testEnvironmentVariableRetrievedKeyValuePair() throws DataUnavailable, CorruptDataException {
+
+
+ // get image process
+
+
+ ImageProcess process=getProcess();
+
+ // get environment
+
+ Properties properties=process.getEnvironment();
+ String value=properties.getProperty(SetupEnvironmentVariables.KEY1);
+ assertEquals(SetupEnvironmentVariables.VALUE,value);
+
+
+
+ }
+ /**
+ * Tests that provided environmental variable is in dump and has
+ * correct value
+ * @throws CorruptDataException
+ * @throws DataUnavailable
+ */
+ public void testEnvironmentVariableRetrievedKeyOnly() throws DataUnavailable, CorruptDataException {
+
+
+ // get image process
+
+
+ ImageProcess process=getProcess();
+
+ // get environment
+
+ Properties properties=process.getEnvironment();
+ String value=properties.getProperty(SetupEnvironmentVariables.KEY2);
+ assertEquals("key2 value should be empty String","",value);
+
+
+
+ }
+ /**
+ * Tests that provided environmental variable is in dump and has
+ * correct value
+ * @throws CorruptDataException
+ * @throws DataUnavailable
+ */
+ public void testEnvironmentVariableRetrievedKeyNoValue() throws DataUnavailable, CorruptDataException {
+
+
+ // get image process
+
+
+ ImageProcess process=getProcess();
+
+ // get environment
+
+ Properties properties=process.getEnvironment();
+ String value=properties.getProperty(SetupEnvironmentVariables.KEY3);
+ System.out.println("KEY3 "+SetupEnvironmentVariables.KEY3+" value \""+value+"\"");
+ assertNull(value);
+
+
+
+ }
+ private ImageProcess getProcess() {
+
+ Image image=getImage();
+ Iterator addressIterator=image.getAddressSpaces().iterator();
+ ImageAddressSpace addressSpace=(ImageAddressSpace) addressIterator.next();
+ ImageProcess process=addressSpace.getCurrentProcess();
+ return process;
+ }
+}
Propchange: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/process/TestEnvironmentVariables.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/process/TestImage.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/process/TestImage.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/process/TestImage.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/process/TestImage.java Mon Nov 23 15:53:48 2009
@@ -1,36 +1,36 @@
-/*******************************************************************************
- * 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.process;
-
-import javax.tools.diagnostics.image.Image;
-import org.apache.kato.tck.harness.TCKProcessTestcase;
-
-
-/**
- * Image Tests
- *
- *
- */
-public class TestImage extends TCKProcessTestcase{
-
- /**
- * Simple test that image exists
- */
- public void testImageExists() {
-
- Image image=getImage();
- assertNotNull(image);
-
- }
-}
+/*******************************************************************************
+ * 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.process;
+
+import javax.tools.diagnostics.image.Image;
+import org.apache.kato.tck.harness.TCKProcessTestcase;
+
+
+/**
+ * Image Tests
+ *
+ *
+ */
+public class TestImage extends TCKProcessTestcase{
+
+ /**
+ * Simple test that image exists
+ */
+ public void testImageExists() {
+
+ Image image=getImage();
+ assertNotNull(image);
+
+ }
+}
Propchange: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/process/TestImage.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/process/image/TestImageAddressSpace.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/process/image/TestImageAddressSpace.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/process/image/TestImageAddressSpace.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/process/image/TestImageAddressSpace.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.process.image;
-
-import java.util.Iterator;
-
-import javax.tools.diagnostics.image.CorruptData;
-import javax.tools.diagnostics.image.Image;
-import javax.tools.diagnostics.image.ImageAddressSpace;
-import org.apache.kato.tck.harness.TCKProcessTestcase;
-
-
-/**
- * ImageAddressSpace
- *
- */
-public class TestImageAddressSpace extends TCKProcessTestcase{
-
- /**
- *
- */
- public void testAddressSpace() {
-
- Image image=getImage();
- Iterator addressSpaces = image.getAddressSpaces().iterator();
-
- while (addressSpaces.hasNext()) {
- Object nextAddressSpace = addressSpaces.next();
- if (nextAddressSpace instanceof CorruptData) {
- System.err.println("returned CorruptData `" + nextAddressSpace + "'");
- break;
- }
-
- ImageAddressSpace anAddressSpace = (ImageAddressSpace) nextAddressSpace;
-
- assertNotNull(anAddressSpace);
- }
- }
-}
+/*******************************************************************************
+ * 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.process.image;
+
+import java.util.Iterator;
+
+import javax.tools.diagnostics.image.CorruptData;
+import javax.tools.diagnostics.image.Image;
+import javax.tools.diagnostics.image.ImageAddressSpace;
+import org.apache.kato.tck.harness.TCKProcessTestcase;
+
+
+/**
+ * ImageAddressSpace
+ *
+ */
+public class TestImageAddressSpace extends TCKProcessTestcase{
+
+ /**
+ *
+ */
+ public void testAddressSpace() {
+
+ Image image=getImage();
+ Iterator addressSpaces = image.getAddressSpaces().iterator();
+
+ while (addressSpaces.hasNext()) {
+ Object nextAddressSpace = addressSpaces.next();
+ if (nextAddressSpace instanceof CorruptData) {
+ System.err.println("returned CorruptData `" + nextAddressSpace + "'");
+ break;
+ }
+
+ ImageAddressSpace anAddressSpace = (ImageAddressSpace) nextAddressSpace;
+
+ assertNotNull(anAddressSpace);
+ }
+ }
+}
Propchange: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/process/image/TestImageAddressSpace.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/process/image/TestImageGetCreationTime.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/process/image/TestImageGetCreationTime.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/process/image/TestImageGetCreationTime.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/process/image/TestImageGetCreationTime.java Mon Nov 23 15:53:48 2009
@@ -1,36 +1,36 @@
-/*******************************************************************************
- * 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.process.image;
-
-import javax.tools.diagnostics.image.DataUnavailable;
-import javax.tools.diagnostics.image.Image;
-import org.apache.kato.tck.harness.TCKProcessTestcase;
-
-
-public class TestImageGetCreationTime extends TCKProcessTestcase{
-
-
-
- public void testGetCreationTime() throws Exception {
-
- Image image=getImage();
- long theCreationTime=0;
- try {
- theCreationTime = image.getCreationTime();
- assertTrue(0!=theCreationTime);
- } catch (DataUnavailable du) {
- //allowed by the specification
- }
- }
-}
+/*******************************************************************************
+ * 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.process.image;
+
+import javax.tools.diagnostics.image.DataUnavailable;
+import javax.tools.diagnostics.image.Image;
+import org.apache.kato.tck.harness.TCKProcessTestcase;
+
+
+public class TestImageGetCreationTime extends TCKProcessTestcase{
+
+
+
+ public void testGetCreationTime() throws Exception {
+
+ Image image=getImage();
+ long theCreationTime=0;
+ try {
+ theCreationTime = image.getCreationTime();
+ assertTrue(0!=theCreationTime);
+ } catch (DataUnavailable du) {
+ //allowed by the specification
+ }
+ }
+}
Propchange: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/process/image/TestImageGetCreationTime.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/process/image/TestImageGetHostName.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/process/image/TestImageGetHostName.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/process/image/TestImageGetHostName.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/process/image/TestImageGetHostName.java Mon Nov 23 15:53:48 2009
@@ -1,43 +1,43 @@
-/*******************************************************************************
- * 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.process.image;
-
-import javax.tools.diagnostics.image.CorruptDataException;
-import javax.tools.diagnostics.image.DataUnavailable;
-import javax.tools.diagnostics.image.Image;
-import org.apache.kato.tck.harness.TCKProcessTestcase;
-
-
-public class TestImageGetHostName extends TCKProcessTestcase{
-
- /**
- *
- */
- public void testGetHostName() {
-
- Image image=getImage();
- String theHostName=null;
- try {
- theHostName = image.getHostName();
- } catch (CorruptDataException e) {
- // allowed by the specification
- return;
- } catch (DataUnavailable e) {
- // allowed by the specification
- return;
- }
-
- assertNotNull(theHostName);
- }
-}
+/*******************************************************************************
+ * 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.process.image;
+
+import javax.tools.diagnostics.image.CorruptDataException;
+import javax.tools.diagnostics.image.DataUnavailable;
+import javax.tools.diagnostics.image.Image;
+import org.apache.kato.tck.harness.TCKProcessTestcase;
+
+
+public class TestImageGetHostName extends TCKProcessTestcase{
+
+ /**
+ *
+ */
+ public void testGetHostName() {
+
+ Image image=getImage();
+ String theHostName=null;
+ try {
+ theHostName = image.getHostName();
+ } catch (CorruptDataException e) {
+ // allowed by the specification
+ return;
+ } catch (DataUnavailable e) {
+ // allowed by the specification
+ return;
+ }
+
+ assertNotNull(theHostName);
+ }
+}
Propchange: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/process/image/TestImageGetHostName.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/process/image/TestImageGetIPAddresses.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/process/image/TestImageGetIPAddresses.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/process/image/TestImageGetIPAddresses.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/process/image/TestImageGetIPAddresses.java Mon Nov 23 15:53:48 2009
@@ -1,53 +1,53 @@
-/*******************************************************************************
- * 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.process.image;
-
-import java.util.Iterator;
-
-import javax.tools.diagnostics.image.CorruptData;
-import javax.tools.diagnostics.image.DataUnavailable;
-import javax.tools.diagnostics.image.Image;
-import org.apache.kato.tck.harness.TCKProcessTestcase;
-
-
-public class TestImageGetIPAddresses extends TCKProcessTestcase{
-
- /**
- *
- */
- public void testGetIPAddresses() {
-
- Image image=getImage();
- Iterator IPAdresses;
- try {
- IPAdresses = image.getIPAddresses();
- while (IPAdresses.hasNext()) {
- Object nextIPAddress = IPAdresses.next();
- if (nextIPAddress instanceof CorruptData) {
- System.err.println("returned CorruptData `" + nextIPAddress + "'");
- break;
- }
- else
- {
- return;
- }
- }
-
- } catch (DataUnavailable e) {
- //this is acceptable
- return;
- }
- assertTrue(false);
- }
-}
+/*******************************************************************************
+ * 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.process.image;
+
+import java.util.Iterator;
+
+import javax.tools.diagnostics.image.CorruptData;
+import javax.tools.diagnostics.image.DataUnavailable;
+import javax.tools.diagnostics.image.Image;
+import org.apache.kato.tck.harness.TCKProcessTestcase;
+
+
+public class TestImageGetIPAddresses extends TCKProcessTestcase{
+
+ /**
+ *
+ */
+ public void testGetIPAddresses() {
+
+ Image image=getImage();
+ Iterator IPAdresses;
+ try {
+ IPAdresses = image.getIPAddresses();
+ while (IPAdresses.hasNext()) {
+ Object nextIPAddress = IPAdresses.next();
+ if (nextIPAddress instanceof CorruptData) {
+ System.err.println("returned CorruptData `" + nextIPAddress + "'");
+ break;
+ }
+ else
+ {
+ return;
+ }
+ }
+
+ } catch (DataUnavailable e) {
+ //this is acceptable
+ return;
+ }
+ assertTrue(false);
+ }
+}
Propchange: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/process/image/TestImageGetIPAddresses.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/process/image/TestImageGetInstalledMemory.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/process/image/TestImageGetInstalledMemory.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/process/image/TestImageGetInstalledMemory.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/process/image/TestImageGetInstalledMemory.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.tests.process.image;
-
-import javax.tools.diagnostics.image.DataUnavailable;
-import javax.tools.diagnostics.image.Image;
-import org.apache.kato.tck.harness.TCKProcessTestcase;
-
-
-public class TestImageGetInstalledMemory extends TCKProcessTestcase{
-
- /*
- *
- */
- public void testGetInstalledMemory() {
-
- Image image=getImage();
- long theMemory=0;
- try {
- theMemory = image.getInstalledMemory();
- // TODO test range is acceptable
- assertTrue(0!=theMemory);
- } catch (DataUnavailable e) {
- // DataUnavailable is an acceptable return from getInstalledMemory()
- }
-
- }
-}
+/*******************************************************************************
+ * 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.process.image;
+
+import javax.tools.diagnostics.image.DataUnavailable;
+import javax.tools.diagnostics.image.Image;
+import org.apache.kato.tck.harness.TCKProcessTestcase;
+
+
+public class TestImageGetInstalledMemory extends TCKProcessTestcase{
+
+ /*
+ *
+ */
+ public void testGetInstalledMemory() {
+
+ Image image=getImage();
+ long theMemory=0;
+ try {
+ theMemory = image.getInstalledMemory();
+ // TODO test range is acceptable
+ assertTrue(0!=theMemory);
+ } catch (DataUnavailable e) {
+ // DataUnavailable is an acceptable return from getInstalledMemory()
+ }
+
+ }
+}
Propchange: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/process/image/TestImageGetInstalledMemory.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/process/image/TestImageGetProcessorCount.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/process/image/TestImageGetProcessorCount.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/process/image/TestImageGetProcessorCount.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/process/image/TestImageGetProcessorCount.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.tests.process.image;
-
-import javax.tools.diagnostics.image.DataUnavailable;
-import javax.tools.diagnostics.image.Image;
-import org.apache.kato.tck.harness.TCKProcessTestcase;
-
-
-public class TestImageGetProcessorCount extends TCKProcessTestcase{
-
- /**
- * @throws DataUnavailable
- *
- * @tck
- */
- public void testGet() throws DataUnavailable {
-
- Image image=getImage();
- long theValue=0;
-
- theValue = image.getProcessorCount();
- System.out.println("theValue "+theValue);
- assertTrue(0!=theValue);
-
-
- }
-}
+/*******************************************************************************
+ * 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.process.image;
+
+import javax.tools.diagnostics.image.DataUnavailable;
+import javax.tools.diagnostics.image.Image;
+import org.apache.kato.tck.harness.TCKProcessTestcase;
+
+
+public class TestImageGetProcessorCount extends TCKProcessTestcase{
+
+ /**
+ * @throws DataUnavailable
+ *
+ * @tck
+ */
+ public void testGet() throws DataUnavailable {
+
+ Image image=getImage();
+ long theValue=0;
+
+ theValue = image.getProcessorCount();
+ System.out.println("theValue "+theValue);
+ assertTrue(0!=theValue);
+
+
+ }
+}
Propchange: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/process/image/TestImageGetProcessorCount.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/process/image/TestImageGetProcessorSubType.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/process/image/TestImageGetProcessorSubType.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/process/image/TestImageGetProcessorSubType.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/process/image/TestImageGetProcessorSubType.java Mon Nov 23 15:53:48 2009
@@ -1,36 +1,36 @@
-/*******************************************************************************
- * 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.process.image;
-
-import javax.tools.diagnostics.image.CorruptDataException;
-import javax.tools.diagnostics.image.DataUnavailable;
-import javax.tools.diagnostics.image.Image;
-import org.apache.kato.tck.harness.TCKProcessTestcase;
-
-
-
-public class TestImageGetProcessorSubType extends TCKProcessTestcase{
-
- /**
- * @throws CorruptDataException
- * @throws DataUnavailable
- *
- */
- public void testGet() throws DataUnavailable, CorruptDataException {
-
- Image image=getImage();
- String theValue=image.getProcessorSubType();
- assertNotNull("Processor subType is null",theValue);
- }
-}
+/*******************************************************************************
+ * 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.process.image;
+
+import javax.tools.diagnostics.image.CorruptDataException;
+import javax.tools.diagnostics.image.DataUnavailable;
+import javax.tools.diagnostics.image.Image;
+import org.apache.kato.tck.harness.TCKProcessTestcase;
+
+
+
+public class TestImageGetProcessorSubType extends TCKProcessTestcase{
+
+ /**
+ * @throws CorruptDataException
+ * @throws DataUnavailable
+ *
+ */
+ public void testGet() throws DataUnavailable, CorruptDataException {
+
+ Image image=getImage();
+ String theValue=image.getProcessorSubType();
+ assertNotNull("Processor subType is null",theValue);
+ }
+}
Propchange: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/process/image/TestImageGetProcessorSubType.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/process/image/TestImageGetProcessorType.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/process/image/TestImageGetProcessorType.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/process/image/TestImageGetProcessorType.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/process/image/TestImageGetProcessorType.java Mon Nov 23 15:53:48 2009
@@ -1,36 +1,36 @@
-/*******************************************************************************
- * 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.process.image;
-
-import javax.tools.diagnostics.image.CorruptDataException;
-import javax.tools.diagnostics.image.DataUnavailable;
-import javax.tools.diagnostics.image.Image;
-import org.apache.kato.tck.harness.TCKProcessTestcase;
-
-
-
-public class TestImageGetProcessorType extends TCKProcessTestcase{
-
- /**
- * @throws CorruptDataException
- * @throws DataUnavailable
- *
- */
- public void testGetProcessorType() throws DataUnavailable, CorruptDataException {
-
- Image image=getImage();
- String theValue=image.getProcessorType();
- assertNotNull("Processor type is null",theValue);
- }
-}
+/*******************************************************************************
+ * 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.process.image;
+
+import javax.tools.diagnostics.image.CorruptDataException;
+import javax.tools.diagnostics.image.DataUnavailable;
+import javax.tools.diagnostics.image.Image;
+import org.apache.kato.tck.harness.TCKProcessTestcase;
+
+
+
+public class TestImageGetProcessorType extends TCKProcessTestcase{
+
+ /**
+ * @throws CorruptDataException
+ * @throws DataUnavailable
+ *
+ */
+ public void testGetProcessorType() throws DataUnavailable, CorruptDataException {
+
+ Image image=getImage();
+ String theValue=image.getProcessorType();
+ assertNotNull("Processor type is null",theValue);
+ }
+}
Propchange: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/process/image/TestImageGetProcessorType.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/process/image/TestImageGetSystemSubType.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/process/image/TestImageGetSystemSubType.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/process/image/TestImageGetSystemSubType.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/process/image/TestImageGetSystemSubType.java Mon Nov 23 15:53:48 2009
@@ -1,36 +1,36 @@
-/*******************************************************************************
- * 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.process.image;
-
-import javax.tools.diagnostics.image.CorruptDataException;
-import javax.tools.diagnostics.image.DataUnavailable;
-import javax.tools.diagnostics.image.Image;
-import org.apache.kato.tck.harness.TCKProcessTestcase;
-
-
-
-public class TestImageGetSystemSubType extends TCKProcessTestcase{
-
- /**
- * @throws CorruptDataException
- * @throws DataUnavailable
- *
- */
- public void testGetSystemSubType() throws DataUnavailable, CorruptDataException {
-
- Image image=getImage();
- String theValue=image.getSystemSubType();
- assertNotNull("System subtype is null",theValue);
- }
-}
+/*******************************************************************************
+ * 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.process.image;
+
+import javax.tools.diagnostics.image.CorruptDataException;
+import javax.tools.diagnostics.image.DataUnavailable;
+import javax.tools.diagnostics.image.Image;
+import org.apache.kato.tck.harness.TCKProcessTestcase;
+
+
+
+public class TestImageGetSystemSubType extends TCKProcessTestcase{
+
+ /**
+ * @throws CorruptDataException
+ * @throws DataUnavailable
+ *
+ */
+ public void testGetSystemSubType() throws DataUnavailable, CorruptDataException {
+
+ Image image=getImage();
+ String theValue=image.getSystemSubType();
+ assertNotNull("System subtype is null",theValue);
+ }
+}
Propchange: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/process/image/TestImageGetSystemSubType.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/process/image/TestImageGetSystemType.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/process/image/TestImageGetSystemType.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/process/image/TestImageGetSystemType.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/process/image/TestImageGetSystemType.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.tests.process.image;
-
-import javax.tools.diagnostics.image.CorruptDataException;
-import javax.tools.diagnostics.image.DataUnavailable;
-import javax.tools.diagnostics.image.Image;
-import org.apache.kato.tck.harness.TCKProcessTestcase;
-
-
-
-public class TestImageGetSystemType extends TCKProcessTestcase {
-
- /**
- * @throws CorruptDataException
- * @throws DataUnavailable
- *
- */
- public void testGet() throws DataUnavailable, CorruptDataException {
-
- Image image = getImage();
- String theValue = null;
- theValue = image.getSystemType();
- assertNotNull("SystemType is null",theValue);
- }
-}
+/*******************************************************************************
+ * 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.process.image;
+
+import javax.tools.diagnostics.image.CorruptDataException;
+import javax.tools.diagnostics.image.DataUnavailable;
+import javax.tools.diagnostics.image.Image;
+import org.apache.kato.tck.harness.TCKProcessTestcase;
+
+
+
+public class TestImageGetSystemType extends TCKProcessTestcase {
+
+ /**
+ * @throws CorruptDataException
+ * @throws DataUnavailable
+ *
+ */
+ public void testGet() throws DataUnavailable, CorruptDataException {
+
+ Image image = getImage();
+ String theValue = null;
+ theValue = image.getSystemType();
+ assertNotNull("SystemType is null",theValue);
+ }
+}
Propchange: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite/src/main/java/org/apache/kato/tck/tests/process/image/TestImageGetSystemType.java
------------------------------------------------------------------------------
svn:eol-style = native