I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit f8178b71 authored by zab2's avatar zab2
Browse files

ticket #1125: revert previous change as it is not relevant

        to test failure
parent 79b5d974
No related branches found
No related tags found
No related merge requests found
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,23 +12,8 @@ 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{
// 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";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment