Revert "Cleaned up tests" (wrong branch)
This commit is contained in:
@@ -1,3 +1,3 @@
|
|||||||
org.gradle.daemon=true
|
org.gradle.daemon=true
|
||||||
org.gradle.jvmargs=-Xms256m -Xmx1024m
|
org.gradle.jvmargs=-Xms256m -Xmx1024m
|
||||||
archash=a2894b5902ee402aafdefdd188168d6a5e326c0f
|
archash=da2913187aa724da769c6a80bc709eebb5bc0888
|
||||||
|
|||||||
@@ -1,10 +1,19 @@
|
|||||||
package power;
|
package power;
|
||||||
|
|
||||||
|
import mindustry.content.Items;
|
||||||
|
import mindustry.content.UnitTypes;
|
||||||
|
import mindustry.type.ItemStack;
|
||||||
|
import mindustry.world.Tile;
|
||||||
|
import mindustry.world.blocks.power.PowerGenerator;
|
||||||
|
import mindustry.world.blocks.power.PowerGraph;
|
||||||
|
import mindustry.world.blocks.units.UnitFactory;
|
||||||
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
|
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||||
|
|
||||||
/** Tests for direct power consumers. */
|
/** Tests for direct power consumers. */
|
||||||
public class DirectConsumerTests extends PowerTestFixture{
|
public class DirectConsumerTests extends PowerTestFixture{
|
||||||
|
|
||||||
//TODO implement with new unit factories
|
|
||||||
/*
|
|
||||||
@Test
|
@Test
|
||||||
void noPowerRequestedWithNoItems(){
|
void noPowerRequestedWithNoItems(){
|
||||||
testUnitFactory(0, 0, 0.08f, 0.08f, 1f);
|
testUnitFactory(0, 0, 0.08f, 0.08f, 1f);
|
||||||
@@ -42,5 +51,5 @@ public class DirectConsumerTests extends PowerTestFixture{
|
|||||||
graph.update();
|
graph.update();
|
||||||
|
|
||||||
assertEquals(expectedSatisfaction, consumerTile.entity.power.status);
|
assertEquals(expectedSatisfaction, consumerTile.entity.power.status);
|
||||||
}*/
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user