use of org.openbw.bwapi4j.BWMapMock in project BWAPI4J by OpenBW.
the class MapTest method Compare_MiniTile_Altitudes_to_Original_Samples.
@Ignore
@Test
public void Compare_MiniTile_Altitudes_to_Original_Samples() throws Exception {
for (final BWAPI_DummyData.MapHash mapHash : BWAPI_DummyData.MapHash.values()) {
logger.debug("Compare_MiniTile_Altitudes_to_Original_Samples: " + mapHash.getMapName() + ": " + mapHash.getMapHash());
final BWMap bwMapMock = new BWMapMock(mapHash.getMapHash(), BWAPI_DummyData.DataSetBwapiVersion.BWAPI_420.toString());
final BWEM_DummyData bwemDummyData = new BWEM_DummyData(mapHash.getMapHash(), BWAPI_DummyData.DataSetBwapiVersion.BWAPI_420.toString(), BWEM_DummyData.DataSetBwemVersion.BWEM_141.toString());
this.bwemMap = new MapInitializerImpl(bwMapMock, null, new ArrayList<>(), ((BWMapMock) bwMapMock).getDummyData().getMineralPatches(), ((BWMapMock) bwMapMock).getDummyData().getVespeneGeysers(), new ArrayList<>());
((MapInitializer) this.bwemMap).initialize(true);
assertEquals_MiniTileAltitudes(this.bwemMap.getData(), bwemDummyData);
}
}
use of org.openbw.bwapi4j.BWMapMock in project BWAPI4J by OpenBW.
the class MapTest method Compare_ChokePoint_Centers_to_Original_Samples.
// TODO: This test will fail until the mock can handle special buildings. The LIVE version should pass, though.
@Ignore
@Test
public void Compare_ChokePoint_Centers_to_Original_Samples() throws Exception {
for (final BWAPI_DummyData.MapHash mapHash : BWAPI_DummyData.MapHash.values()) {
logger.debug("Compare_ChokePoint_Centers_to_Original_Samples: " + mapHash.getMapName() + ": " + mapHash.getMapHash());
final BWMap bwMapMock = new BWMapMock(mapHash.getMapHash(), BWAPI_DummyData.DataSetBwapiVersion.BWAPI_420.toString());
final BWEM_DummyData bwemDummyData = new BWEM_DummyData(mapHash.getMapHash(), BWAPI_DummyData.DataSetBwapiVersion.BWAPI_420.toString(), BWEM_DummyData.DataSetBwemVersion.BWEM_141.toString());
this.bwemMap = new MapInitializerImpl(bwMapMock, null, new ArrayList<>(), ((BWMapMock) bwMapMock).getDummyData().getMineralPatches(), ((BWMapMock) bwMapMock).getDummyData().getVespeneGeysers(), new ArrayList<>());
((MapInitializer) this.bwemMap).initialize(true);
assert_ChokePoints(bwemDummyData.getChokePointCenters(), ((MapImpl) this.bwemMap).getGraph().getChokePoints());
}
}
Aggregations