megamek.test.xml
Class TestBoardEncoder

java.lang.Object
  extended by megamek.test.xml.TestBoardEncoder

public class TestBoardEncoder
extends java.lang.Object

This class will confirm that the BoardEncoder is equivalent to the serialization of a Board object. TODO: integrate JUnit into this class.


Constructor Summary
TestBoardEncoder()
           
 
Method Summary
static java.io.InputStream getTestInputStream()
          Create a test Board in an InputStream.
static void main(java.lang.String[] args)
          Create a Board, encode it to XML, decode it from the XML, and compare the serialized versions from before and after the encoding.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestBoardEncoder

public TestBoardEncoder()
Method Detail

main

public static void main(java.lang.String[] args)
Create a Board, encode it to XML, decode it from the XML, and compare the serialized versions from before and after the encoding.


getTestInputStream

public static java.io.InputStream getTestInputStream()
Create a test Board in an InputStream.

Returns:
an InputStream containing a Board.