use of games.strategy.engine.data.ResourceList in project triplea by triplea-game.
the class ParserTest method testResourcesAdded.
@Test
public void testResourcesAdded() {
final ResourceList resources = gameData.getResourceList();
assertEquals(2, resources.size());
}
use of games.strategy.engine.data.ResourceList in project triplea by triplea-game.
the class ResourceCollectionUtilsTest method givenGameResources.
private void givenGameResources(final Resource... resources) {
final ResourceList gameResources = mock(ResourceList.class);
doReturn(null).when(gameResources).getResource(anyString());
for (final Resource resource : resources) {
doReturn(resource).when(gameResources).getResource(resource.getName());
}
when(data.getResourceList()).thenReturn(gameResources);
}
use of games.strategy.engine.data.ResourceList in project triplea by triplea-game.
the class UserActionPanelTest method givenGameHasPuResource.
private void givenGameHasPuResource() {
final ResourceList gameResources = mock(ResourceList.class);
when(gameResources.getResource(pus.getName())).thenReturn(pus);
when(data.getResourceList()).thenReturn(gameResources);
}
Aggregations