1. some refacotring
2. fixed a few files so that they will compile for j2me
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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.
|
||||
Reference in New Issue
Block a user