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 [25/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/SetupJavaField_get.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/SetupJavaField_get.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/SetupJavaField_get.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaField_get.java Mon Nov 23 15:53:48 2009
@@ -1,98 +1,98 @@
-/*******************************************************************************
- * 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 SetupJavaField_get extends ScenarioElement {
- public byte byteValue = 0x5a;
- public byte maxByteValue = Byte.MAX_VALUE;
- public byte minByteValue = Byte.MIN_VALUE;
-
- public short shortValue = 0x5a7f;
- public short maxShortValue = Short.MAX_VALUE;
- public short minShortValue = Short.MIN_VALUE;
-
- public char charValue = '\u043e';
- public char maxCharValue = Character.MAX_VALUE;
- public char minCharValue = Character.MIN_VALUE;
-
- public int intValue = 0x12345678;
- public int maxIntValue = Integer.MAX_VALUE;
- public int minIntValue = Integer.MIN_VALUE;
-
- public long longValue = 0x9abcdef012345678l;
- public long maxLongValue = Long.MAX_VALUE;
- public long minLongValue = Long.MIN_VALUE;
-
- public float floatValue = (float)4.0e2;
- public float maxFloatValue = Float.MAX_VALUE;
- public float minFloatValue = Float.MIN_VALUE;
-
- public double doubleValue = 4.1e2;
- public double maxDoubleValue = Double.MAX_VALUE;
- public double minDoubleValue = Double.MIN_VALUE;
-
- public String stringValue = "this is a string";
- public Object objectValue = new Object();
- public Object nullValue = null;
-
- public static byte byteStaticValue = 0x12;
- public static byte maxByteStaticValue = Byte.MAX_VALUE;
- public static byte minByteStaticValue = Byte.MIN_VALUE;
-
- public static short shortStaticValue = 0x1842;
- public static short maxShortStaticValue = Byte.MAX_VALUE;
- public static short minShortStaticValue = Byte.MIN_VALUE;
-
- public static char charStaticValue = '\u0342';
- public static char maxCharStaticValue = Character.MAX_VALUE;
- public static char minCharStaticValue = Character.MIN_VALUE;
-
- public static int intStaticValue = 0x98765432;
- public static int maxIntStaticValue = Integer.MAX_VALUE;
- public static int minIntStaticValue = Integer.MIN_VALUE;
-
-
- public static long longStaticValue = 0x47393fabcd8dbea7l;
- public static long maxLongStaticValue = Long.MAX_VALUE;
- public static long minLongStaticValue = Long.MIN_VALUE;
-
-
- public static float floatStaticValue = (float)1.0e-3;
- public static float maxFloatStaticValue = Float.MAX_VALUE;
- public static float minFloatStaticValue = Float.MIN_VALUE;
-
- public static double doubleStaticValue = 7.2e-9;
- public static double maxDoubleStaticValue = Double.MAX_VALUE;
- public static double minDoubleStaticValue = Double.MIN_VALUE;
-
- public static String stringStaticValue = "This statement is false.";
- public static Object objectStaticValue = new Object();
- public static Object nullStaticValue = null;
-
- public static class WrongClass {
- byte byteValue;
- Object objectValue = new Object();
- }
-
- public WrongClass wrongObjectInstance = new WrongClass();
-
- public static String wrongClassName = WrongClass.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;
+
+
+
+
+public class SetupJavaField_get extends ScenarioElement {
+ public byte byteValue = 0x5a;
+ public byte maxByteValue = Byte.MAX_VALUE;
+ public byte minByteValue = Byte.MIN_VALUE;
+
+ public short shortValue = 0x5a7f;
+ public short maxShortValue = Short.MAX_VALUE;
+ public short minShortValue = Short.MIN_VALUE;
+
+ public char charValue = '\u043e';
+ public char maxCharValue = Character.MAX_VALUE;
+ public char minCharValue = Character.MIN_VALUE;
+
+ public int intValue = 0x12345678;
+ public int maxIntValue = Integer.MAX_VALUE;
+ public int minIntValue = Integer.MIN_VALUE;
+
+ public long longValue = 0x9abcdef012345678l;
+ public long maxLongValue = Long.MAX_VALUE;
+ public long minLongValue = Long.MIN_VALUE;
+
+ public float floatValue = (float)4.0e2;
+ public float maxFloatValue = Float.MAX_VALUE;
+ public float minFloatValue = Float.MIN_VALUE;
+
+ public double doubleValue = 4.1e2;
+ public double maxDoubleValue = Double.MAX_VALUE;
+ public double minDoubleValue = Double.MIN_VALUE;
+
+ public String stringValue = "this is a string";
+ public Object objectValue = new Object();
+ public Object nullValue = null;
+
+ public static byte byteStaticValue = 0x12;
+ public static byte maxByteStaticValue = Byte.MAX_VALUE;
+ public static byte minByteStaticValue = Byte.MIN_VALUE;
+
+ public static short shortStaticValue = 0x1842;
+ public static short maxShortStaticValue = Byte.MAX_VALUE;
+ public static short minShortStaticValue = Byte.MIN_VALUE;
+
+ public static char charStaticValue = '\u0342';
+ public static char maxCharStaticValue = Character.MAX_VALUE;
+ public static char minCharStaticValue = Character.MIN_VALUE;
+
+ public static int intStaticValue = 0x98765432;
+ public static int maxIntStaticValue = Integer.MAX_VALUE;
+ public static int minIntStaticValue = Integer.MIN_VALUE;
+
+
+ public static long longStaticValue = 0x47393fabcd8dbea7l;
+ public static long maxLongStaticValue = Long.MAX_VALUE;
+ public static long minLongStaticValue = Long.MIN_VALUE;
+
+
+ public static float floatStaticValue = (float)1.0e-3;
+ public static float maxFloatStaticValue = Float.MAX_VALUE;
+ public static float minFloatStaticValue = Float.MIN_VALUE;
+
+ public static double doubleStaticValue = 7.2e-9;
+ public static double maxDoubleStaticValue = Double.MAX_VALUE;
+ public static double minDoubleStaticValue = Double.MIN_VALUE;
+
+ public static String stringStaticValue = "This statement is false.";
+ public static Object objectStaticValue = new Object();
+ public static Object nullStaticValue = null;
+
+ public static class WrongClass {
+ byte byteValue;
+ Object objectValue = new Object();
+ }
+
+ public WrongClass wrongObjectInstance = new WrongClass();
+
+ public static String wrongClassName = WrongClass.class.getName().replace('.', '/');
+
+
+}
Propchange: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaField_get.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/SetupJavaField_getBoolean.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/SetupJavaField_getBoolean.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/SetupJavaField_getBoolean.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaField_getBoolean.java Mon Nov 23 15:53:48 2009
@@ -1,42 +1,42 @@
-/*******************************************************************************
- * 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 that JavaField.getBoolean works as expected.
- *
- */
-public class SetupJavaField_getBoolean extends ScenarioElement {
- public boolean trueBoolean = true;
- public boolean falseBoolean = false;
-
- public static boolean trueStaticBoolean = true;
- public static boolean falseStaticBoolean = false;
-
- public class IncompatibleClass {
- boolean trueBoolean = true;
- }
- public IncompatibleClass incompatibleObject = new IncompatibleClass();
- public String incompatibleClassName = IncompatibleClass.class.getName().replace('.', '/');
-
- public int notBoolean = 23;
- public Object notBoolean2 = new Object();
-
-
-}
+/*******************************************************************************
+ * 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 that JavaField.getBoolean works as expected.
+ *
+ */
+public class SetupJavaField_getBoolean extends ScenarioElement {
+ public boolean trueBoolean = true;
+ public boolean falseBoolean = false;
+
+ public static boolean trueStaticBoolean = true;
+ public static boolean falseStaticBoolean = false;
+
+ public class IncompatibleClass {
+ boolean trueBoolean = true;
+ }
+ public IncompatibleClass incompatibleObject = new IncompatibleClass();
+ public String incompatibleClassName = IncompatibleClass.class.getName().replace('.', '/');
+
+ public int notBoolean = 23;
+ public Object notBoolean2 = new Object();
+
+
+}
Propchange: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaField_getBoolean.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/SetupJavaField_getByte.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/SetupJavaField_getByte.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/SetupJavaField_getByte.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaField_getByte.java Mon Nov 23 15:53:48 2009
@@ -1,46 +1,46 @@
-/*******************************************************************************
- * 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;
-
-
-
-
-/**
- * Test JavaField.getByte() against various fields and values.
- *
- */
-public class SetupJavaField_getByte extends ScenarioElement {
- public byte maxByte = Byte.MAX_VALUE;
- public byte minByte = Byte.MIN_VALUE;
- public static byte staticMinByte = Byte.MIN_VALUE;
- public byte zeroByte = 0;
- public byte negByte = -64;
- public byte posByte = +64;
- public boolean booleanValue = false;
- public Object objectReference = new Object();
-
- public short shortValue =2;
- public char charValue = 3;
- public long longValue = 4l;
- public float floatValue = (float)5.0;
- public double doubleValue = (double)6;
-
- public int intValue = 2048;
-
-
-
-
-}
+/*******************************************************************************
+ * 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;
+
+
+
+
+/**
+ * Test JavaField.getByte() against various fields and values.
+ *
+ */
+public class SetupJavaField_getByte extends ScenarioElement {
+ public byte maxByte = Byte.MAX_VALUE;
+ public byte minByte = Byte.MIN_VALUE;
+ public static byte staticMinByte = Byte.MIN_VALUE;
+ public byte zeroByte = 0;
+ public byte negByte = -64;
+ public byte posByte = +64;
+ public boolean booleanValue = false;
+ public Object objectReference = new Object();
+
+ public short shortValue =2;
+ public char charValue = 3;
+ public long longValue = 4l;
+ public float floatValue = (float)5.0;
+ public double doubleValue = (double)6;
+
+ public int intValue = 2048;
+
+
+
+
+}
Propchange: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaField_getByte.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/SetupJavaField_getChar.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/SetupJavaField_getChar.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/SetupJavaField_getChar.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaField_getChar.java Mon Nov 23 15:53:48 2009
@@ -1,42 +1,42 @@
-/*******************************************************************************
- * 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;
-
-
-
-
-/**
- * Test JavaField.getChar() against various fields and values.
- *
- */
-public class SetupJavaField_getChar extends ScenarioElement {
- public char maxChar = Character.MAX_VALUE;
- public char minChar = Character.MIN_VALUE;
- public static char staticMinChar = Character.MIN_VALUE;
- public char zeroChar = 0;
- public char posChar = 0xa5a5;
- public boolean booleanValue = false;
- public Object objectReference = new Object();
- public int intValue = 0x37fadef;
- public byte byteValue = 1;
- public short shortValue =2;
- public char charValue = 3;
- public long longValue = 4l;
- public float floatValue = (float)5.0;
- public double doubleValue = (double)6;
-
-
-}
+/*******************************************************************************
+ * 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;
+
+
+
+
+/**
+ * Test JavaField.getChar() against various fields and values.
+ *
+ */
+public class SetupJavaField_getChar extends ScenarioElement {
+ public char maxChar = Character.MAX_VALUE;
+ public char minChar = Character.MIN_VALUE;
+ public static char staticMinChar = Character.MIN_VALUE;
+ public char zeroChar = 0;
+ public char posChar = 0xa5a5;
+ public boolean booleanValue = false;
+ public Object objectReference = new Object();
+ public int intValue = 0x37fadef;
+ public byte byteValue = 1;
+ public short shortValue =2;
+ public char charValue = 3;
+ public long longValue = 4l;
+ public float floatValue = (float)5.0;
+ public double doubleValue = (double)6;
+
+
+}
Propchange: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaField_getChar.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/SetupJavaField_getDeclaringClass.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/SetupJavaField_getDeclaringClass.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/SetupJavaField_getDeclaringClass.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaField_getDeclaringClass.java Mon Nov 23 15:53:48 2009
@@ -1,28 +1,28 @@
-/*******************************************************************************
- * 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 that getDeclaringClass is working.
- *
- */
-public class SetupJavaField_getDeclaringClass extends ScenarioElement {
- public String instanceField = new String("bob");
- public static String staticField = new String("hope");
-}
+/*******************************************************************************
+ * 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 that getDeclaringClass is working.
+ *
+ */
+public class SetupJavaField_getDeclaringClass extends ScenarioElement {
+ public String instanceField = new String("bob");
+ public static String staticField = new String("hope");
+}
Propchange: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaField_getDeclaringClass.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/SetupJavaField_getDouble.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/SetupJavaField_getDouble.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/SetupJavaField_getDouble.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaField_getDouble.java Mon Nov 23 15:53:48 2009
@@ -1,42 +1,42 @@
-/*******************************************************************************
- * 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;
-
-
-
-
-/**
- * Test JavaField.getDouble() against various fields and values.
- *
- */
-public class SetupJavaField_getDouble extends ScenarioElement {
- public double maxDouble = Double.MAX_VALUE;
- public double minDouble = Double.MIN_VALUE;
- public static double staticMinDouble = Double.MIN_VALUE;
- public double zeroDouble = 0;
- public double negDouble = -0x55a55a5a5a5aa75al;
- public double posDouble = +0x2a5a75a55a5a75a5l;
- public boolean booleanValue = false;
- public Object objectReference = new Object();
- public int intValue = 0xfafafafa;
- public byte byteValue = 1;
- public short shortValue =2;
- public char charValue = 3;
- public float floatValue = (float)5.0;
- public double doubleValue = (double)6;
- public long longValue = 0x37faf57a57fad7fal;
-
-}
+/*******************************************************************************
+ * 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;
+
+
+
+
+/**
+ * Test JavaField.getDouble() against various fields and values.
+ *
+ */
+public class SetupJavaField_getDouble extends ScenarioElement {
+ public double maxDouble = Double.MAX_VALUE;
+ public double minDouble = Double.MIN_VALUE;
+ public static double staticMinDouble = Double.MIN_VALUE;
+ public double zeroDouble = 0;
+ public double negDouble = -0x55a55a5a5a5aa75al;
+ public double posDouble = +0x2a5a75a55a5a75a5l;
+ public boolean booleanValue = false;
+ public Object objectReference = new Object();
+ public int intValue = 0xfafafafa;
+ public byte byteValue = 1;
+ public short shortValue =2;
+ public char charValue = 3;
+ public float floatValue = (float)5.0;
+ public double doubleValue = (double)6;
+ public long longValue = 0x37faf57a57fad7fal;
+
+}
Propchange: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaField_getDouble.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/SetupJavaField_getFloat.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/SetupJavaField_getFloat.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/SetupJavaField_getFloat.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaField_getFloat.java Mon Nov 23 15:53:48 2009
@@ -1,42 +1,42 @@
-/*******************************************************************************
- * 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;
-
-
-
-
-/**
- * Test JavaField.getFloat() against various fields and values.
- *
- */
-public class SetupJavaField_getFloat extends ScenarioElement {
- public float maxFloat = Float.MAX_VALUE;
- public float minFloat = Float.MIN_VALUE;
- public static float staticMinFloat = Float.MIN_VALUE;
- public float zeroFloat = 0;
- public float negFloat = -0x55a55a5a5a5aa75al;
- public float posFloat = +0x2a5a75a55a5a75a5l;
- public boolean booleanValue = false;
- public Object objectReference = new Object();
- public int intValue = 0xfafafafa;
- public byte byteValue = 1;
- public short shortValue =2;
- public char charValue = 3;
- public float floatValue = (float)5.0;
- public long longValue = 0x37faf57a57fad7fal;
- public double doubleValue = (double)6;
-
-}
+/*******************************************************************************
+ * 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;
+
+
+
+
+/**
+ * Test JavaField.getFloat() against various fields and values.
+ *
+ */
+public class SetupJavaField_getFloat extends ScenarioElement {
+ public float maxFloat = Float.MAX_VALUE;
+ public float minFloat = Float.MIN_VALUE;
+ public static float staticMinFloat = Float.MIN_VALUE;
+ public float zeroFloat = 0;
+ public float negFloat = -0x55a55a5a5a5aa75al;
+ public float posFloat = +0x2a5a75a55a5a75a5l;
+ public boolean booleanValue = false;
+ public Object objectReference = new Object();
+ public int intValue = 0xfafafafa;
+ public byte byteValue = 1;
+ public short shortValue =2;
+ public char charValue = 3;
+ public float floatValue = (float)5.0;
+ public long longValue = 0x37faf57a57fad7fal;
+ public double doubleValue = (double)6;
+
+}
Propchange: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaField_getFloat.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/SetupJavaField_getInt.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/SetupJavaField_getInt.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/SetupJavaField_getInt.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaField_getInt.java Mon Nov 23 15:53:48 2009
@@ -1,41 +1,41 @@
-/*******************************************************************************
- * 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;
-
-
-
-
-/**
- * Test JavaField.getInteger() against various fields and values.
- *
- */
-public class SetupJavaField_getInt extends ScenarioElement {
- public int maxInteger = Integer.MAX_VALUE;
- public int minInteger = Integer.MIN_VALUE;
- public static int staticMinInteger = Integer.MIN_VALUE;
- public int zeroInteger = 0;
- public int negInteger = -0x75a5a5a5;
- public int posInteger = +0x5a5a75a5;
- public boolean booleanValue = false;
- public Object objectReference = new Object();
- public long longValue = 0x37faf57a57fad7fal;
- public byte byteValue = 1;
- public short shortValue =2;
- public char charValue = 3;
- public float floatValue = (float)5.0;
- public double doubleValue = (double)6;
-
-}
+/*******************************************************************************
+ * 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;
+
+
+
+
+/**
+ * Test JavaField.getInteger() against various fields and values.
+ *
+ */
+public class SetupJavaField_getInt extends ScenarioElement {
+ public int maxInteger = Integer.MAX_VALUE;
+ public int minInteger = Integer.MIN_VALUE;
+ public static int staticMinInteger = Integer.MIN_VALUE;
+ public int zeroInteger = 0;
+ public int negInteger = -0x75a5a5a5;
+ public int posInteger = +0x5a5a75a5;
+ public boolean booleanValue = false;
+ public Object objectReference = new Object();
+ public long longValue = 0x37faf57a57fad7fal;
+ public byte byteValue = 1;
+ public short shortValue =2;
+ public char charValue = 3;
+ public float floatValue = (float)5.0;
+ public double doubleValue = (double)6;
+
+}
Propchange: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaField_getInt.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/SetupJavaField_getLong.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/SetupJavaField_getLong.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/SetupJavaField_getLong.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaField_getLong.java Mon Nov 23 15:53:48 2009
@@ -1,41 +1,41 @@
-/*******************************************************************************
- * 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;
-
-
-
-
-/**
- * Test JavaField.getLong() against various fields and values.
- *
- */
-public class SetupJavaField_getLong extends ScenarioElement {
- public long maxLong = Long.MAX_VALUE;
- public long minLong = Long.MIN_VALUE;
- public static long staticMinLong = Long.MIN_VALUE;
- public long zeroLong = 0;
- public long negLong = -0x55a55a5a5a5aa75al;
- public long posLong = +0x2a5a75a55a5a75a5l;
- public boolean booleanValue = false;
- public Object objectReference = new Object();
- public int intValue = 0xfafafafa;
- public byte byteValue = 1;
- public short shortValue =2;
- public char charValue = 3;
- public float floatValue = (float)5.0;
- public double doubleValue = (double)6;
-
-}
+/*******************************************************************************
+ * 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;
+
+
+
+
+/**
+ * Test JavaField.getLong() against various fields and values.
+ *
+ */
+public class SetupJavaField_getLong extends ScenarioElement {
+ public long maxLong = Long.MAX_VALUE;
+ public long minLong = Long.MIN_VALUE;
+ public static long staticMinLong = Long.MIN_VALUE;
+ public long zeroLong = 0;
+ public long negLong = -0x55a55a5a5a5aa75al;
+ public long posLong = +0x2a5a75a55a5a75a5l;
+ public boolean booleanValue = false;
+ public Object objectReference = new Object();
+ public int intValue = 0xfafafafa;
+ public byte byteValue = 1;
+ public short shortValue =2;
+ public char charValue = 3;
+ public float floatValue = (float)5.0;
+ public double doubleValue = (double)6;
+
+}
Propchange: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaField_getLong.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/SetupJavaField_getModifiers.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/SetupJavaField_getModifiers.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/SetupJavaField_getModifiers.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaField_getModifiers.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.scenario142.javaruntime;
-
-import org.apache.kato.tck.harness.scenario.ScenarioElement;
-
-
-
-
-public class SetupJavaField_getModifiers extends ScenarioElement {
- public final int finalField=0;
- private char privateField = '1';
- protected char protectedField = '2';
- public String publicField = "3";
- static long staticField = 4;
- transient char transientField = '5';
- volatile boolean volatileField = false;
- int defaultField = 10101;
-
- static private volatile transient byte staticPrivateVolatileTransientField = 23;
- final protected int finalProtectedField = 74;
-
-
-
-}
+/*******************************************************************************
+ * 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 SetupJavaField_getModifiers extends ScenarioElement {
+ public final int finalField=0;
+ private char privateField = '1';
+ protected char protectedField = '2';
+ public String publicField = "3";
+ static long staticField = 4;
+ transient char transientField = '5';
+ volatile boolean volatileField = false;
+ int defaultField = 10101;
+
+ static private volatile transient byte staticPrivateVolatileTransientField = 23;
+ final protected int finalProtectedField = 74;
+
+
+
+}
Propchange: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaField_getModifiers.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/SetupJavaField_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/SetupJavaField_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/SetupJavaField_getName.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaField_getName.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.scenario142.javaruntime;
-
-import org.apache.kato.tck.harness.scenario.ScenarioElement;
-
-
-
-
-public class SetupJavaField_getName extends ScenarioElement {
-
- public int \u0412\u043e\u0434\u043a\u0430 = 2;
- public static int \u0412\u043e\u0434\u043a\u0430_static = 3;
- public byte thisIsAnIncrediblyLongNameBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlah=47;
- public static byte thisIsAnIncrediblyLongNameBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlah_static=23;
-}
+/*******************************************************************************
+ * 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 SetupJavaField_getName extends ScenarioElement {
+
+ public int \u0412\u043e\u0434\u043a\u0430 = 2;
+ public static int \u0412\u043e\u0434\u043a\u0430_static = 3;
+ public byte thisIsAnIncrediblyLongNameBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlah=47;
+ public static byte thisIsAnIncrediblyLongNameBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlah_static=23;
+}
Propchange: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaField_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/SetupJavaField_getShort.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/SetupJavaField_getShort.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/SetupJavaField_getShort.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaField_getShort.java Mon Nov 23 15:53:48 2009
@@ -1,41 +1,41 @@
-/*******************************************************************************
- * 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;
-
-
-
-
-/**
- * Test JavaField.getShort() against various fields and values.
- *
- */
-public class SetupJavaField_getShort extends ScenarioElement {
- public short maxShort = Short.MAX_VALUE;
- public short minShort = Short.MIN_VALUE;
- public static short staticMinShort = Short.MIN_VALUE;
- public short zeroShort = 0;
- public short negShort = -0x75a5;
- public short posShort = +0x5a5a;
- public boolean booleanValue = false;
- public Object objectReference = new Object();
- public int intValue = 0xfafafafa;
- public byte byteValue = 1;
- public short shortValue =2;
- public char charValue = 3;
- public long longValue = 4l;
- public float floatValue = (float)5.0;
- public double doubleValue = (double)6;
-}
+/*******************************************************************************
+ * 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;
+
+
+
+
+/**
+ * Test JavaField.getShort() against various fields and values.
+ *
+ */
+public class SetupJavaField_getShort extends ScenarioElement {
+ public short maxShort = Short.MAX_VALUE;
+ public short minShort = Short.MIN_VALUE;
+ public static short staticMinShort = Short.MIN_VALUE;
+ public short zeroShort = 0;
+ public short negShort = -0x75a5;
+ public short posShort = +0x5a5a;
+ public boolean booleanValue = false;
+ public Object objectReference = new Object();
+ public int intValue = 0xfafafafa;
+ public byte byteValue = 1;
+ public short shortValue =2;
+ public char charValue = 3;
+ public long longValue = 4l;
+ public float floatValue = (float)5.0;
+ public double doubleValue = (double)6;
+}
Propchange: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaField_getShort.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/SetupJavaField_getSignature.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/SetupJavaField_getSignature.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/SetupJavaField_getSignature.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaField_getSignature.java Mon Nov 23 15:53:48 2009
@@ -1,56 +1,56 @@
-/*******************************************************************************
- * 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 SetupJavaField_getSignature extends ScenarioElement {
- public byte byteField=1;
- public short shortField = 2;
- public char charField='3';
- public int intField = 4;
- public long longField = 5;
- public float floatField = 6;
- public double doubleField = 7;
- public String objectField = "8";
- public byte[] byteArrayField = {9};
- public short[] shortArrayField = {10};
- public char[] charArrayField = {'b'};
- public int[] intArrayField = {12};
- public long[] longArrayField = {13};
- public float[] floatArrayField = {14};
- public double[] doubleArrayField = {15};
- public String[] objectArrayField = {"16"};
- public byte[][] byteArrayArrayField = {{17}};
- short[][] shortArrayArrayField = {{18}};
- public char[][] charArrayArrayField = {{'c'}};
- public int[][] intArrayArrayField = {{20}};
- public long[][] longArrayArrayField = {{21}};
- public float[][] floatArrayArrayField = {{22}};
- public double[][] doubleArrayArrayField = {{23}};
- public String[][] objectArrayArrayField = {{"24"}};
-
-
- public class Class_\u0412\u043e\u0434\u043a\u0430_Value {
-
- }
-
- public Class_\u0412\u043e\u0434\u043a\u0430_Value unicodeClass = new Class_\u0412\u043e\u0434\u043a\u0430_Value();
- public Class_\u0412\u043e\u0434\u043a\u0430_Value unicodeClassArray[] = new Class_\u0412\u043e\u0434\u043a\u0430_Value[2];
-
- public static String unicodeClassName = Class_\u0412\u043e\u0434\u043a\u0430_Value.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;
+
+
+
+
+public class SetupJavaField_getSignature extends ScenarioElement {
+ public byte byteField=1;
+ public short shortField = 2;
+ public char charField='3';
+ public int intField = 4;
+ public long longField = 5;
+ public float floatField = 6;
+ public double doubleField = 7;
+ public String objectField = "8";
+ public byte[] byteArrayField = {9};
+ public short[] shortArrayField = {10};
+ public char[] charArrayField = {'b'};
+ public int[] intArrayField = {12};
+ public long[] longArrayField = {13};
+ public float[] floatArrayField = {14};
+ public double[] doubleArrayField = {15};
+ public String[] objectArrayField = {"16"};
+ public byte[][] byteArrayArrayField = {{17}};
+ short[][] shortArrayArrayField = {{18}};
+ public char[][] charArrayArrayField = {{'c'}};
+ public int[][] intArrayArrayField = {{20}};
+ public long[][] longArrayArrayField = {{21}};
+ public float[][] floatArrayArrayField = {{22}};
+ public double[][] doubleArrayArrayField = {{23}};
+ public String[][] objectArrayArrayField = {{"24"}};
+
+
+ public class Class_\u0412\u043e\u0434\u043a\u0430_Value {
+
+ }
+
+ public Class_\u0412\u043e\u0434\u043a\u0430_Value unicodeClass = new Class_\u0412\u043e\u0434\u043a\u0430_Value();
+ public Class_\u0412\u043e\u0434\u043a\u0430_Value unicodeClassArray[] = new Class_\u0412\u043e\u0434\u043a\u0430_Value[2];
+
+ public static String unicodeClassName = Class_\u0412\u043e\u0434\u043a\u0430_Value.class.getName().replace('.','/');
+}
Propchange: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaField_getSignature.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/SetupJavaField_getString.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/SetupJavaField_getString.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/SetupJavaField_getString.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaField_getString.java Mon Nov 23 15:53:48 2009
@@ -1,45 +1,45 @@
-/*******************************************************************************
- * 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 SetupJavaField_getString extends ScenarioElement {
- public String longString;
- public String emptyString = "";
- public String nullString = null;
- public String foreignString = "\u0412\u043e\u0434\u043a\u0430";
- static public String staticString = "This is a static string. So there.";
- public int nonString = 34;
-
- public static int strlen = 65536;
-
- {
- // Initalize string with somewhat random string.
- char buffer[] = new char[strlen];
- int value = 1239723;
-
- for (int i=0; i< strlen; i++) {
- value = (17223 * value + 327) % 127893;
-
- buffer[i] = (char)((int)'a' + Math.abs(value % 26));
- }
-
- longString = new String(buffer);
- }
-}
+/*******************************************************************************
+ * 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 SetupJavaField_getString extends ScenarioElement {
+ public String longString;
+ public String emptyString = "";
+ public String nullString = null;
+ public String foreignString = "\u0412\u043e\u0434\u043a\u0430";
+ static public String staticString = "This is a static string. So there.";
+ public int nonString = 34;
+
+ public static int strlen = 65536;
+
+ {
+ // Initalize string with somewhat random string.
+ char buffer[] = new char[strlen];
+ int value = 1239723;
+
+ for (int i=0; i< strlen; i++) {
+ value = (17223 * value + 327) % 127893;
+
+ buffer[i] = (char)((int)'a' + Math.abs(value % 26));
+ }
+
+ longString = new String(buffer);
+ }
+}
Propchange: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaField_getString.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/SetupJavaMethod_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/SetupJavaMethod_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/SetupJavaMethod_getName.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaMethod_getName.java Mon Nov 23 15:53:48 2009
@@ -1,32 +1,32 @@
-/*******************************************************************************
- * 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 SetupJavaMethod_getName extends ScenarioElement {
-
- public static final String threadName = "org.apache.kato.tck.tests.javaruntime.TestJavaMethod_getName#configure\u0412\u043e\u0434\u043a\u0430";
-
- public static final String methodName = "configure\u0412\u043e\u0434\u043a\u0430";
-
- public void configure\u0412\u043e\u0434\u043a\u0430(ICheckpoint checkpoint) {
- checkpoint.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;
+
+
+public class SetupJavaMethod_getName extends ScenarioElement {
+
+ public static final String threadName = "org.apache.kato.tck.tests.javaruntime.TestJavaMethod_getName#configure\u0412\u043e\u0434\u043a\u0430";
+
+ public static final String methodName = "configure\u0412\u043e\u0434\u043a\u0430";
+
+ public void configure\u0412\u043e\u0434\u043a\u0430(ICheckpoint checkpoint) {
+ checkpoint.checkpoint();
+
+ }
+
+
+}
Propchange: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaMethod_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/SetupJavaMonitor_ObjectMonitors.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/SetupJavaMonitor_ObjectMonitors.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/SetupJavaMonitor_ObjectMonitors.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaMonitor_ObjectMonitors.java Mon Nov 23 15:53:48 2009
@@ -1,322 +1,322 @@
-/*******************************************************************************
- * 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 that monitors work correctly.
- *
- * Tests with variations on the number of notify waiters, enter waiters and owners,
- * up to a maximum of 2 waiters of each type (there can be only one owner, of course).
- *
- * TODO Add tests where threads own one monitor and wait on another.
- *
- */
-public class SetupJavaMonitor_ObjectMonitors extends ScenarioElement {
- public static final String monitorNotifyThreadName = "NotifyThread";
-
- public static final String monitorOwnerThreadName = "OwnerThread";
-
- public static final String monitorEnterThreadName = "EnterThread";
- public static final String namePrefix = "TestMonitors-";
-
- /**
- * A unique class to allow DTFJ to find the correct object.
- *
- */
- public class MonitorClass {
- private String id;
-
- public MonitorClass(String id) {
- this.id = id;
- }
- }
-
- public static final String monitorClassName = MonitorClass.class.getName()
- .replace('.', '/');
-
- public static class MonitorThreadConfig {
- public MonitorThreadConfig(int waiters, int enters, int owners) {
- this.waiters = waiters;
- this.enters = enters;
- this.owners = owners;
- this.id = generatePrefix(waiters, enters, owners);
- }
-
- public void setMonitor(Object monitor) {
- this.monitor = monitor;
- }
- public Object getMonitor() {
- return monitor;
- }
-
- public String id;
- int waiters, enters, owners;
- public Object monitor;
-
- }
-
- public static int NUM_MONITORS = 9;
-
- public static MonitorThreadConfig[] monitorConfigs;
- {
- int i=0;
- monitorConfigs = new MonitorThreadConfig[NUM_MONITORS];
-
- monitorConfigs[i++] = new MonitorThreadConfig(2, 2, 1);
- monitorConfigs[i++] = new MonitorThreadConfig(0, 2, 1);
- monitorConfigs[i++] = new MonitorThreadConfig(2, 0, 1);
- monitorConfigs[i++] = new MonitorThreadConfig(2, 0, 0);
- monitorConfigs[i++] = new MonitorThreadConfig(1, 1, 1);
- monitorConfigs[i++] = new MonitorThreadConfig(1, 0, 1);
- monitorConfigs[i++] = new MonitorThreadConfig(1, 0, 0);
- monitorConfigs[i++] = new MonitorThreadConfig(0, 0, 1);
- monitorConfigs[i++] = new MonitorThreadConfig(0, 1, 1);
-
- }
-
-
-
- public MonitorThreadConfig findMonitorThreadConfig(String id) {
- for (int i = 0; i < monitorConfigs.length; i++) {
- MonitorThreadConfig current = monitorConfigs[i];
-
- if (current.id.equals(id)) {
- return current;
- }
- }
-
- return null;
- }
-
-
-
- public void configureMonitors() {
- for (int i = 0; i < monitorConfigs.length; i++) {
- createMonitor(monitorConfigs[i].waiters, monitorConfigs[i].enters,
- monitorConfigs[i].owners);
- }
- }
-
- private static String generatePrefix(int waiters, int enters, int owners) {
- return namePrefix + waiters + "-" + owners + "-" + enters;
- }
-
- public void createMonitor(int waiters, int enters, int owners) {
- String prefix = generatePrefix(waiters, enters, owners);
-
- Object monitor = new MonitorClass(prefix);
-
- // These rules are very important.
- if (waiters == 0 && enters == 0 && owners == 0) {
- throw new IllegalArgumentException(
- "Can't create monitor with no threads");
- }
-
- if (waiters < 0 || enters < 0 || owners < 0) {
- throw new IllegalArgumentException(
- "Numbers of threads must be 0 or above.");
- }
-
- if (enters > 0 && owners == 0) {
- throw new IllegalArgumentException(
- "Can't create enters threads with no owner");
- }
-
- if (owners > 1) {
- throw new IllegalArgumentException(
- "Can't create monitor with more than one owner");
- }
-
- // The ordering is significant.
- for (int i = 0; i < waiters; i++) {
- new MonitorNotifyThread(prefix + "-" + monitorNotifyThreadName
- + "-" + i, monitor).start();
- }
-
- for (int i = 0; i < owners; i++) {
- new MonitorOwnerThread(prefix + "-" + monitorOwnerThreadName + "-"
- + i, monitor).start();
- }
-
- for (int i = 0; i < enters; i++) {
- new MonitorEnterThread(prefix + "-" + monitorEnterThreadName + "-"
- + i, monitor).start();
- }
- }
-
- public MonitorThreadConfig findMonitorThreadConfig(int waiters,
- int enters, int owners) {
- for (int i = 0; i < monitorConfigs.length; i++) {
- MonitorThreadConfig current = monitorConfigs[i];
-
- if ((current.waiters == waiters) && (current.enters == enters)
- && (current.owners == owners)) {
- return current;
- }
- }
-
- return null;
- }
-
- public class MonitorNotifyThread extends Thread {
- private Object monitor;
- private volatile boolean almostReady = false;
-
- public MonitorNotifyThread(String name, Object monitor) {
- super(name);
- this.setDaemon(true); // Allow JVM to exit.
- this.monitor = monitor;
- }
-
- public void run() {
- synchronized (monitor) {
- synchronized (this) {
- almostReady = true;
- this.notify();
- }
- while (true) {
- try {
- monitor.wait();
- } catch (InterruptedException e) {
- // Keep waiting...
- }
- }
- }
- }
-
- /**
- * Start thread, and waits until the thread is about to release the
- * monitor.
- */
- public void start() {
- super.start();
- synchronized (this) {
- try {
- while (!almostReady) {
- this.wait();
- }
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
- }
-
- }
-
- /**
- * A thread that tries to own a monitor.
- *
- */
- public class MonitorOwnerThread extends Thread {
- private Object monitor;
- private volatile boolean owned = false;
-
- public MonitorOwnerThread(String name, Object monitor) {
- super(name);
- this.setDaemon(true); // Allow JVM to exit.
- this.monitor = monitor;
- }
-
- public void run() {
- synchronized (monitor) {
- synchronized (this) {
- owned = true;
- this.notify();
- }
- while (true) {
- // We have either entered, or are entering.
-
- try {
- sleep(10000);
- } catch (InterruptedException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- }
- }
- }
-
- public void start() {
- super.start();
- synchronized (this) {
- try {
- while (!owned) {
- this.wait();
- }
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
- }
- }
-
- /**
- * A thread that tries to enter a monitor.
- *
- */
- public class MonitorEnterThread extends Thread {
- private Object monitor;
- private volatile boolean owned = false;
-
- public MonitorEnterThread(String name, Object monitor) {
- super(name);
- this.setDaemon(true); // Allow JVM to exit.
- this.monitor = monitor;
- }
-
- public void run() {
- synchronized (this) {
- owned = true;
- this.notify();
- }
- synchronized (monitor) {
- // This code should never be reached.
- }
- }
-
- public void start() {
- super.start();
-
- synchronized (this) {
-
- try {
- while (!owned) {
- this.wait();
- }
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
- try {
- sleep(1000);
- } catch (InterruptedException e1) {
- e1.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;
+
+
+
+
+/**
+ * Tests that monitors work correctly.
+ *
+ * Tests with variations on the number of notify waiters, enter waiters and owners,
+ * up to a maximum of 2 waiters of each type (there can be only one owner, of course).
+ *
+ * TODO Add tests where threads own one monitor and wait on another.
+ *
+ */
+public class SetupJavaMonitor_ObjectMonitors extends ScenarioElement {
+ public static final String monitorNotifyThreadName = "NotifyThread";
+
+ public static final String monitorOwnerThreadName = "OwnerThread";
+
+ public static final String monitorEnterThreadName = "EnterThread";
+ public static final String namePrefix = "TestMonitors-";
+
+ /**
+ * A unique class to allow DTFJ to find the correct object.
+ *
+ */
+ public class MonitorClass {
+ private String id;
+
+ public MonitorClass(String id) {
+ this.id = id;
+ }
+ }
+
+ public static final String monitorClassName = MonitorClass.class.getName()
+ .replace('.', '/');
+
+ public static class MonitorThreadConfig {
+ public MonitorThreadConfig(int waiters, int enters, int owners) {
+ this.waiters = waiters;
+ this.enters = enters;
+ this.owners = owners;
+ this.id = generatePrefix(waiters, enters, owners);
+ }
+
+ public void setMonitor(Object monitor) {
+ this.monitor = monitor;
+ }
+ public Object getMonitor() {
+ return monitor;
+ }
+
+ public String id;
+ int waiters, enters, owners;
+ public Object monitor;
+
+ }
+
+ public static int NUM_MONITORS = 9;
+
+ public static MonitorThreadConfig[] monitorConfigs;
+ {
+ int i=0;
+ monitorConfigs = new MonitorThreadConfig[NUM_MONITORS];
+
+ monitorConfigs[i++] = new MonitorThreadConfig(2, 2, 1);
+ monitorConfigs[i++] = new MonitorThreadConfig(0, 2, 1);
+ monitorConfigs[i++] = new MonitorThreadConfig(2, 0, 1);
+ monitorConfigs[i++] = new MonitorThreadConfig(2, 0, 0);
+ monitorConfigs[i++] = new MonitorThreadConfig(1, 1, 1);
+ monitorConfigs[i++] = new MonitorThreadConfig(1, 0, 1);
+ monitorConfigs[i++] = new MonitorThreadConfig(1, 0, 0);
+ monitorConfigs[i++] = new MonitorThreadConfig(0, 0, 1);
+ monitorConfigs[i++] = new MonitorThreadConfig(0, 1, 1);
+
+ }
+
+
+
+ public MonitorThreadConfig findMonitorThreadConfig(String id) {
+ for (int i = 0; i < monitorConfigs.length; i++) {
+ MonitorThreadConfig current = monitorConfigs[i];
+
+ if (current.id.equals(id)) {
+ return current;
+ }
+ }
+
+ return null;
+ }
+
+
+
+ public void configureMonitors() {
+ for (int i = 0; i < monitorConfigs.length; i++) {
+ createMonitor(monitorConfigs[i].waiters, monitorConfigs[i].enters,
+ monitorConfigs[i].owners);
+ }
+ }
+
+ private static String generatePrefix(int waiters, int enters, int owners) {
+ return namePrefix + waiters + "-" + owners + "-" + enters;
+ }
+
+ public void createMonitor(int waiters, int enters, int owners) {
+ String prefix = generatePrefix(waiters, enters, owners);
+
+ Object monitor = new MonitorClass(prefix);
+
+ // These rules are very important.
+ if (waiters == 0 && enters == 0 && owners == 0) {
+ throw new IllegalArgumentException(
+ "Can't create monitor with no threads");
+ }
+
+ if (waiters < 0 || enters < 0 || owners < 0) {
+ throw new IllegalArgumentException(
+ "Numbers of threads must be 0 or above.");
+ }
+
+ if (enters > 0 && owners == 0) {
+ throw new IllegalArgumentException(
+ "Can't create enters threads with no owner");
+ }
+
+ if (owners > 1) {
+ throw new IllegalArgumentException(
+ "Can't create monitor with more than one owner");
+ }
+
+ // The ordering is significant.
+ for (int i = 0; i < waiters; i++) {
+ new MonitorNotifyThread(prefix + "-" + monitorNotifyThreadName
+ + "-" + i, monitor).start();
+ }
+
+ for (int i = 0; i < owners; i++) {
+ new MonitorOwnerThread(prefix + "-" + monitorOwnerThreadName + "-"
+ + i, monitor).start();
+ }
+
+ for (int i = 0; i < enters; i++) {
+ new MonitorEnterThread(prefix + "-" + monitorEnterThreadName + "-"
+ + i, monitor).start();
+ }
+ }
+
+ public MonitorThreadConfig findMonitorThreadConfig(int waiters,
+ int enters, int owners) {
+ for (int i = 0; i < monitorConfigs.length; i++) {
+ MonitorThreadConfig current = monitorConfigs[i];
+
+ if ((current.waiters == waiters) && (current.enters == enters)
+ && (current.owners == owners)) {
+ return current;
+ }
+ }
+
+ return null;
+ }
+
+ public class MonitorNotifyThread extends Thread {
+ private Object monitor;
+ private volatile boolean almostReady = false;
+
+ public MonitorNotifyThread(String name, Object monitor) {
+ super(name);
+ this.setDaemon(true); // Allow JVM to exit.
+ this.monitor = monitor;
+ }
+
+ public void run() {
+ synchronized (monitor) {
+ synchronized (this) {
+ almostReady = true;
+ this.notify();
+ }
+ while (true) {
+ try {
+ monitor.wait();
+ } catch (InterruptedException e) {
+ // Keep waiting...
+ }
+ }
+ }
+ }
+
+ /**
+ * Start thread, and waits until the thread is about to release the
+ * monitor.
+ */
+ public void start() {
+ super.start();
+ synchronized (this) {
+ try {
+ while (!almostReady) {
+ this.wait();
+ }
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ }
+
+ }
+
+ /**
+ * A thread that tries to own a monitor.
+ *
+ */
+ public class MonitorOwnerThread extends Thread {
+ private Object monitor;
+ private volatile boolean owned = false;
+
+ public MonitorOwnerThread(String name, Object monitor) {
+ super(name);
+ this.setDaemon(true); // Allow JVM to exit.
+ this.monitor = monitor;
+ }
+
+ public void run() {
+ synchronized (monitor) {
+ synchronized (this) {
+ owned = true;
+ this.notify();
+ }
+ while (true) {
+ // We have either entered, or are entering.
+
+ try {
+ sleep(10000);
+ } catch (InterruptedException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+ }
+ }
+ }
+
+ public void start() {
+ super.start();
+ synchronized (this) {
+ try {
+ while (!owned) {
+ this.wait();
+ }
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ }
+ }
+
+ /**
+ * A thread that tries to enter a monitor.
+ *
+ */
+ public class MonitorEnterThread extends Thread {
+ private Object monitor;
+ private volatile boolean owned = false;
+
+ public MonitorEnterThread(String name, Object monitor) {
+ super(name);
+ this.setDaemon(true); // Allow JVM to exit.
+ this.monitor = monitor;
+ }
+
+ public void run() {
+ synchronized (this) {
+ owned = true;
+ this.notify();
+ }
+ synchronized (monitor) {
+ // This code should never be reached.
+ }
+ }
+
+ public void start() {
+ super.start();
+
+ synchronized (this) {
+
+ try {
+ while (!owned) {
+ this.wait();
+ }
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+ try {
+ sleep(1000);
+ } catch (InterruptedException e1) {
+ e1.printStackTrace();
+ }
+ }
+ }
+
+
+
+
+
+
+
+}
Propchange: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/SetupJavaMonitor_ObjectMonitors.java
------------------------------------------------------------------------------
svn:eol-style = native