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;
|
package net.i2p.client.naming;
|
||||||
|
|
||||||
import java.util.Properties;
|
|
||||||
|
|
||||||
import junit.framework.TestCase;
|
import junit.framework.TestCase;
|
||||||
|
|
||||||
import net.i2p.I2PAppContext;
|
import net.i2p.I2PAppContext;
|
||||||
import net.i2p.client.I2PClient;
|
|
||||||
import net.i2p.client.I2PSession;
|
|
||||||
import net.i2p.client.I2PSimpleClient;
|
|
||||||
import net.i2p.data.Destination;
|
import net.i2p.data.Destination;
|
||||||
|
|
||||||
|
|
||||||
@@ -16,23 +12,8 @@ public class DummyNamingServiceTest extends TestCase {
|
|||||||
|
|
||||||
public void setUp() throws Exception {
|
public void setUp() throws Exception {
|
||||||
_context = new I2PAppContext();
|
_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{
|
public void testLookup() throws Exception{
|
||||||
// The good b64 and b32 are the destination of www.i2p2.i2p =)
|
// The good b64 and b32 are the destination of www.i2p2.i2p =)
|
||||||
String goodB64 = "-KR6qyfPWXoN~F3UzzYSMIsaRy4quickbrownfoxXSzUQXQdi2Af1TV2UMH3PpPuNu-GwrqihwmLSkPFg4fv4yQQY3E10VeQVuI67dn5vlan3NGMsjqxoXTSHHt7C3nX3szXK90JSoO~tRMDl1xyqtKm94-RpIyNcLXofd0H6b02683CQIjb-7JiCpDD0zharm6SU54rhdisIUVXpi1xYgg2pKVpssL~KCp7RAGzpt2rSgz~RHFsecqGBeFwJdiko-6CYW~tcBcigM8ea57LK7JjCFVhOoYTqgk95AG04-hfehnmBtuAFHWklFyFh88x6mS9sbVPvi-am4La0G0jvUJw9a3wQ67jMr6KWQ~w~bFe~FDqoZqVXl8t88qHPIvXelvWw2Y8EMSF5PJhWw~AZfoWOA5VQVYvcmGzZIEKtFGE7bgQf3rFtJ2FAtig9XXBsoLisHbJgeVb29Ew5E7bkwxvEe9NYkIqvrKvUAt1i55we0Nkt6xlEdhBqg6xXOyIAAAA";
|
String goodB64 = "-KR6qyfPWXoN~F3UzzYSMIsaRy4quickbrownfoxXSzUQXQdi2Af1TV2UMH3PpPuNu-GwrqihwmLSkPFg4fv4yQQY3E10VeQVuI67dn5vlan3NGMsjqxoXTSHHt7C3nX3szXK90JSoO~tRMDl1xyqtKm94-RpIyNcLXofd0H6b02683CQIjb-7JiCpDD0zharm6SU54rhdisIUVXpi1xYgg2pKVpssL~KCp7RAGzpt2rSgz~RHFsecqGBeFwJdiko-6CYW~tcBcigM8ea57LK7JjCFVhOoYTqgk95AG04-hfehnmBtuAFHWklFyFh88x6mS9sbVPvi-am4La0G0jvUJw9a3wQ67jMr6KWQ~w~bFe~FDqoZqVXl8t88qHPIvXelvWw2Y8EMSF5PJhWw~AZfoWOA5VQVYvcmGzZIEKtFGE7bgQf3rFtJ2FAtig9XXBsoLisHbJgeVb29Ew5E7bkwxvEe9NYkIqvrKvUAt1i55we0Nkt6xlEdhBqg6xXOyIAAAA";
|
||||||
|
Reference in New Issue
Block a user