Changeset 22900a0


Ignore:
Timestamp:
Feb 26, 2012 9:30:27 AM (9 years ago)
Author:
str4d <str4d@…>
Branches:
master
Children:
24268c51
Parents:
e7922c4
Message:

Fixed RouterAddressTest?.testToString to actually test the returned String

File:
1 edited

Legend:

Unmodified
Added
Removed
  • core/java/test/net/i2p/data/RouterAddressTest.java

    re7922c4 r22900a0  
    101101        addr.setOptions(options);
    102102        addr.setTransportStyle("Blah");
    103         addr.toString();
    104         addr.setOptions(null);
    105         addr.toString();
     103        String ret = addr.toString();
     104        assertEquals(ret, "[RouterAddress: \n\tTransportStyle: Blah\n\tCost: 42\n\tExpiration: Fri Jan 02 00:00:00 UTC 1970\n\tOptions: #: 2\n\t\t[hostname] = [localhost]\n\t\t[portnum] = [1234]]");
    106105    }
    107106}
Note: See TracChangeset for help on using the changeset viewer.