1. some refacotring

2. fixed a few files so that they will compile for j2me
This commit is contained in:
Shu Lei
2007-10-12 20:39:26 +00:00
parent 3138fdee65
commit 38dafdb190
11 changed files with 77 additions and 94 deletions

View File

@@ -5,18 +5,6 @@ import lua.debug.event.DebugEventType;
import lua.debug.request.DebugRequestType;
public class EnumTypeTest extends TestCase {
public void testDebugSupportStateSerialization() {
try {
DebugSupport.State stateIn = DebugSupport.State.RUNNING;
byte[] data = SerializationHelper.serialize(stateIn);
DebugSupport.State stateOut
= (DebugSupport.State) SerializationHelper.deserialize(data);
assertEquals(stateIn, stateOut);
} catch (Exception e) {
fail(e.getMessage());
}
}
public void testDebugRequestTypeSerialization() {
try {
DebugRequestType type = DebugRequestType.lineBreakpointClear;

View File

@@ -19,13 +19,14 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
******************************************************************************/
package lua.debug;
package lua.debug.j2se;
import java.io.IOException;
import java.net.URL;
import junit.framework.TestCase;
import lua.debug.StandardLuaJVM.ParseException;
import lua.debug.j2se.StandardLuaJVM;
import lua.debug.j2se.StandardLuaJVM.ParseException;
/**
* Sanity test for StandardLuaJVM.