/** Test method for {@link org.powertac.common.enumerations.PowerType#isConsumption()}. */ @Test public void testIsConsumption() { PowerType pt = PowerType.CONSUMPTION; assertTrue("is consumption 1", pt.isConsumption()); pt = PowerType.INTERRUPTIBLE_CONSUMPTION; assertTrue("is consumption 2", pt.isConsumption()); pt = PowerType.THERMAL_STORAGE_CONSUMPTION; assertTrue("is consumption 3", pt.isConsumption()); pt = PowerType.BATTERY_STORAGE; assertFalse("not consumption 1", pt.isConsumption()); pt = PowerType.PRODUCTION; assertFalse("not consumption 2", pt.isConsumption()); }