Fix a failure. remote vm apparently cannot find default package classes within a jar. this looks like a limitation of java. So moved an important test class from default package to testPackage.
diff --git a/tests/org.eclipse.jem.tests/javatests/org/eclipse/jem/tests/proxy/ExpressionTest.java b/tests/org.eclipse.jem.tests/javatests/org/eclipse/jem/tests/proxy/ExpressionTest.java index 247c473..a15024c 100644 --- a/tests/org.eclipse.jem.tests/javatests/org/eclipse/jem/tests/proxy/ExpressionTest.java +++ b/tests/org.eclipse.jem.tests/javatests/org/eclipse/jem/tests/proxy/ExpressionTest.java
@@ -10,7 +10,7 @@ *******************************************************************************/ /* * $RCSfile: ExpressionTest.java,v $ - * $Revision: 1.1 $ $Date: 2004/02/03 23:18:13 $ + * $Revision: 1.2 $ $Date: 2004/02/07 15:18:39 $ */ package org.eclipse.jem.tests.proxy; @@ -949,16 +949,16 @@ public void testClassInstanceCreationNullArg() throws IllegalStateException, ThrowableProxy, NoExpressionValueException { IExpression exp = proxyFactory.createExpression(); - exp.createClassInstanceCreation(IExpressionConstants.ROOTEXPRESSION, "TestCtorWithNull", 1); + exp.createClassInstanceCreation(IExpressionConstants.ROOTEXPRESSION, "testPackage.TestCtorWithNull", 1); exp.createNull(IExpressionConstants.CLASSINSTANCECREATION_ARGUMENT); IBeanProxy result = exp.getExpressionValue(); assertNotNull(result); - assertEquals("TestCtorWithNull", result.getTypeProxy().getFormalTypeName()); + assertEquals("testPackage.TestCtorWithNull", result.getTypeProxy().getFormalTypeName()); } public void testClassInstanceCreationMismatchArg() throws IllegalStateException, ThrowableProxy, NoExpressionValueException { IExpression exp = proxyFactory.createExpression(); - exp.createClassInstanceCreation(IExpressionConstants.ROOTEXPRESSION, "TestCtorWithNull", 1); + exp.createClassInstanceCreation(IExpressionConstants.ROOTEXPRESSION, "testPackage.TestCtorWithNull", 1); try { exp.createPrimitiveLiteral(IExpressionConstants.CLASSINSTANCECREATION_ARGUMENT, 1); exp.getExpressionValue();
diff --git a/tests/org.eclipse.jem.tests/javatests/TestCtorWithNull.java b/tests/org.eclipse.jem.tests/javatests/testPackage/TestCtorWithNull.java similarity index 91% rename from tests/org.eclipse.jem.tests/javatests/TestCtorWithNull.java rename to tests/org.eclipse.jem.tests/javatests/testPackage/TestCtorWithNull.java index e72e97f..23d0c74 100644 --- a/tests/org.eclipse.jem.tests/javatests/TestCtorWithNull.java +++ b/tests/org.eclipse.jem.tests/javatests/testPackage/TestCtorWithNull.java
@@ -1,3 +1,4 @@ +package testPackage; /******************************************************************************* * Copyright (c) 2004 IBM Corporation and others. * All rights reserved. This program and the accompanying materials @@ -10,7 +11,7 @@ *******************************************************************************/ /* * $RCSfile: TestCtorWithNull.java,v $ - * $Revision: 1.1 $ $Date: 2004/02/03 23:18:13 $ + * $Revision: 1.1 $ $Date: 2004/02/07 15:18:39 $ */ /**