示例#1
0
 /**
  * Tests the serialization and deserialization methods.
  *
  * @throws IOException see {@link ObjectOutputStream#writeObject(Object)}
  * @throws ClassNotFoundException see {@link ObjectInputStream#readObject()}
  */
 @Test
 public void serializeTest() throws IOException, ClassNotFoundException {
   Tile tile = new Tile(TILE_X, TILE_Y, ZOOM_LEVEL);
   TestUtils.serializeTest(tile);
 }
示例#2
0
 /**
  * Tests the serialization and deserialization methods.
  *
  * @throws IOException see {@link ObjectOutputStream#writeObject(Object)}
  * @throws ClassNotFoundException see {@link ObjectInputStream#readObject()}
  */
 @Test
 public void serializeTest() throws IOException, ClassNotFoundException {
   Tag tag = new Tag(KEY, VALUE);
   TestUtils.serializeTest(tag);
 }