コード例 #1
0
ファイル: TileTest.java プロジェクト: sreekanthrv/Mapsforge
 /**
  * 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);
 }