1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-16 03:24:31 +02:00

[trunk] UserTest/Home: We can't test home without a running server.

git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1172 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
snowleo
2011-04-10 23:43:02 +00:00
parent 70b0f22d34
commit 1f942449ab

View File

@@ -1,7 +1,9 @@
package com.earth2me.essentials; package com.earth2me.essentials;
import junit.framework.TestCase; import junit.framework.TestCase;
import net.minecraft.server.WorldServer;
import org.bukkit.Location; import org.bukkit.Location;
import org.bukkit.craftbukkit.CraftWorld;
public class UserTest extends TestCase public class UserTest extends TestCase
@@ -41,14 +43,14 @@ public class UserTest extends TestCase
assertTrue(size1 == User.size()); assertTrue(size1 == User.size());
} }
public void testHome() throws Exception /*public void testHome() throws Exception
{ {
should("return the home set by setHome"); should("return the home set by setHome");
Location home = new Location(null, 1, 2, 3, 4, 5); Location home = new Location(null, 1, 2, 3, 4, 5);
User user = User.get(base1); User user = User.get(base1);
user.setHome(home); user.setHome(home);
assertEquals(user.getHome(), home); assertEquals(user.getHome(), home);
} }*/
public void testMoney() public void testMoney()
{ {