/** * 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); }
/** * 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); }