mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-17 12:01:20 +02:00
Fixing the UnitTests
This commit is contained in:
@@ -5,6 +5,7 @@ import com.earth2me.essentials.api.NoLoanPermittedException;
|
|||||||
import com.earth2me.essentials.api.UserDoesNotExistException;
|
import com.earth2me.essentials.api.UserDoesNotExistException;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import junit.framework.TestCase;
|
import junit.framework.TestCase;
|
||||||
|
import org.bukkit.World.Environment;
|
||||||
import org.bukkit.plugin.InvalidDescriptionException;
|
import org.bukkit.plugin.InvalidDescriptionException;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
@@ -20,6 +21,7 @@ public class EconomyTest extends TestCase
|
|||||||
super(testName);
|
super(testName);
|
||||||
ess = new Essentials();
|
ess = new Essentials();
|
||||||
final FakeServer server = new FakeServer();
|
final FakeServer server = new FakeServer();
|
||||||
|
server.createWorld("testWorld", Environment.NORMAL);
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
ess.setupForTesting(server);
|
ess.setupForTesting(server);
|
||||||
|
Reference in New Issue
Block a user