-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathUnitTypeContainerTest.java
More file actions
24 lines (19 loc) · 989 Bytes
/
UnitTypeContainerTest.java
File metadata and controls
24 lines (19 loc) · 989 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package bwapi;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class UnitTypeContainerTest {
@Test
public void checkContainerSizes() {
final int expected = UnitType.values().length;
assertEquals(UnitTypeContainer.defaultArmorAmount.length, expected);
assertEquals(UnitTypeContainer.defaultOreCost.length, expected);
assertEquals(UnitTypeContainer.defaultGasCost.length, expected);
assertEquals(UnitTypeContainer.defaultTimeCost.length, expected);
assertEquals(UnitTypeContainer.unitSupplyProvided.length, expected);
assertEquals(UnitTypeContainer.unitSupplyRequired.length, expected);
assertEquals(UnitTypeContainer.unitSpaceRequired.length, expected);
assertEquals(UnitTypeContainer.unitSpaceProvided.length, expected);
assertEquals(UnitTypeContainer.unitBuildScore.length, expected);
assertEquals(UnitTypeContainer.unitDestroyScore.length, expected);
}
}