WmsTileFactory implements TileFactory { public void setTimeString(String timeString) { this.timeString = timeString; } WmsTileFactory(String serviceAddress, String wmsVersion, String layerNames, String styleNames);  WmsTileFactory(WmsLayerConfig config); String getServiceAddress(); void setServiceAddress(String serviceAddress); String getWmsVersion(); void setWmsVersion(String wmsVersion); String getLayerNames(); void setLayerNames(String layerNames); String getStyleNames(); void setStyleNames(String styleNames); String getCoordinateSystem(); void setCoordinateSystem(String coordinateSystem); String getImageFormat(); void setImageFormat(String imageFormat); boolean isTransparent(); void setTransparent(boolean transparent); String getTimeString(); void setTimeString(String timeString); @Override Tile createTile(Sector sector, Level level, int row, int column); String urlForTile(Sector sector, int width, int height);  }
@Test public void testSetTimeString() { String updatedTimeString = "time"; WmsLayerConfig layerConfig = new WmsLayerConfig(COMMON_SERVICE_ADDRESS, COMMON_LAYER_NAMES); WmsTileFactory standardWmsMapFactory = new WmsTileFactory(layerConfig); standardWmsMapFactory.setTimeString(updatedTimeString); String time = standardWmsMapFactory.getTimeString(); assertEquals("update time string", updatedTimeString, time); }