/*
* Geotoolkit.org - An Open Source Java GIS Toolkit
* http://www.geotoolkit.org
*
* (C) 2008-2012, Open Source Geospatial Foundation (OSGeo)
* (C) 2009-2012, Geomatys
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation;
* version 2.1 of the License.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*/
package org.geotoolkit.image.io.mosaic;
import java.io.IOException;
import org.apache.sis.test.DependsOn;
/**
* Tests {@link TreeTileManager}.
*
* @author Martin Desruisseaux (Geomatys)
* @version 3.00
*
* @since 2.5
*/
@DependsOn(TreeNodeTest.class)
public final strictfp class TreeTileManagerTest extends TileManagerTest {
/**
* The tile manager factory to be given to the {@linkplain #builder builder}. This method
* make sure that only {@link TreeTileManager} instances are created. Then we inherit the
* test suite from the base class.
*
* @return The tile manager factory to use.
* @throws IOException If an I/O operation was required and failed.
*/
@Override
protected TileManagerFactory getTileManagerFactory() throws IOException {
return new TileManagerFactory(null) {
@Override
protected TileManager createGeneric(final Tile[] tiles) throws IOException {
return new TreeTileManager(tiles);
}
};
}
}