forked from I2P_Developers/i2p.i2p
ticket #1125: revert previous change as it is not relevant
to test failure
This commit is contained in:
@@ -1,13 +1,9 @@
|
||||
package net.i2p.client.naming;
|
||||
|
||||
import java.util.Properties;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
|
||||
import net.i2p.I2PAppContext;
|
||||
import net.i2p.client.I2PClient;
|
||||
import net.i2p.client.I2PSession;
|
||||
import net.i2p.client.I2PSimpleClient;
|
||||
import net.i2p.data.Destination;
|
||||
|
||||
|
||||
@@ -16,21 +12,6 @@ public class DummyNamingServiceTest extends TestCase {
|
||||
|
||||
public void setUp() throws Exception {
|
||||
_context = new I2PAppContext();
|
||||
verifySession();
|
||||
}
|
||||
|
||||
/** makes sure we can create a session */
|
||||
private void verifySession() throws Exception {
|
||||
I2PClient client = new I2PSimpleClient();
|
||||
Properties opts = new Properties();
|
||||
I2PSession session = null;
|
||||
try {
|
||||
session = client.createSession(null, opts);
|
||||
session.connect();
|
||||
} finally {
|
||||
if (session != null)
|
||||
session.destroySession();
|
||||
}
|
||||
}
|
||||
|
||||
public void testLookup() throws Exception{
|
||||
|
Reference in New Issue
Block a user