Changeset f8178b7


Ignore:
Timestamp:
Nov 13, 2013 11:43:24 AM (7 years ago)
Author:
zab2 <zab2@…>
Branches:
master
Children:
e8248f5
Parents:
79b5d97
Message:

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

to test failure

File:
1 edited

Legend:

Unmodified
Added
Removed
  • core/java/test/junit/net/i2p/client/naming/DummyNamingServiceTest.java

    r79b5d97 rf8178b7  
    11package net.i2p.client.naming;
    22
    3 import java.util.Properties;
    43
    54import junit.framework.TestCase;
    65
    76import net.i2p.I2PAppContext;
    8 import net.i2p.client.I2PClient;
    9 import net.i2p.client.I2PSession;
    10 import net.i2p.client.I2PSimpleClient;
    117import net.i2p.data.Destination;
    128
     
    1713    public void setUp() throws Exception {
    1814        _context = new I2PAppContext();
    19         verifySession();
    2015    }
    2116
    22     /** makes sure we can create a session */
    23     private void verifySession() throws Exception {
    24         I2PClient client = new I2PSimpleClient();
    25         Properties opts = new Properties();
    26         I2PSession session = null;
    27         try {
    28             session = client.createSession(null, opts);
    29             session.connect();
    30         } finally {
    31             if (session != null)
    32                 session.destroySession();
    33         }
    34     }
    35    
    3617    public void testLookup() throws Exception{
    3718        // The good b64 and b32 are the destination of www.i2p2.i2p =)
Note: See TracChangeset for help on using the changeset viewer.