Skip to content

Commit

Permalink
Recomment chest rollback tests until namespace can get unsealed.
Browse files Browse the repository at this point in the history
  • Loading branch information
N3X15 committed Jun 6, 2011
1 parent 601d665 commit bda682e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
Expand Up @@ -23,13 +23,13 @@
*
*/
public class DeltaChestTest {
private World world;
//private World world;
private ItemStack[] stateA;
private BBPlayerInfo douchebag;

@Before
public void setUp() {
this.world = TestUtils.createSimpleWorld();
//this.world = TestUtils.createSimpleWorld();
}

@Test
Expand Down Expand Up @@ -64,6 +64,7 @@ public void testDelta() {
/**
* Test method for {@link me.taylorkelly.bigbrother.datablock.DeltaChest#rollback(org.bukkit.Server)}.
*/
/*
@Test
public void testRollback() {
// Create chest
Expand Down Expand Up @@ -100,7 +101,7 @@ public void testRollback() {
assertArrayEquals("Rollback failed",stateA,c.getInventory().getContents());
}

*/

/**
* Test method for {@link me.taylorkelly.bigbrother.datablock.DeltaChest#redo(org.bukkit.Server)}.
Expand Down
7 changes: 4 additions & 3 deletions src/test/java/me/taylorkelly/bigbrother/tests/TestUtils.java
Expand Up @@ -12,17 +12,18 @@
import org.bukkit.World.Environment;

public class TestUtils {
static WorldServer world=null;

//static WorldServer world=null;

/**
* Initialize and populate a simple world. USED FOR JUnit TESTS ONLY
* @return a
*/
*//*
public static World createSimpleWorld() {
world = new WorldServer(null, new ServerNBTManager(new File("world"), "world", true), "world", 0, 3, Environment.NORMAL, null, null); // CraftBukkit
world.spawnMonsters = 0;
world.setSpawnFlags(false, false);
return world.getWorld();
}

*/
}

0 comments on commit bda682e

Please sign in to comment.