mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-05-25 16:54:18 +00: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:
parent
d23e7a2821
commit
d731dd4da1
1 changed files with 4 additions and 2 deletions
|
@ -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()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue