Changeset 6f1bb85


Ignore:
Timestamp:
Jul 27, 2015 12:58:42 AM (5 years ago)
Author:
str4d <str4d@…>
Branches:
master
Children:
f1998e6
Parents:
8dcbc99
Message:

Separate out streaming integration tests, make them optional

Files:
2 edited
8 moved

Legend:

Unmodified
Added
Removed
  • apps/streaming/java/build.xml

    r8dcbc99 r6f1bb85  
    8585                <!-- exclude Test classes -->
    8686                <exclude name="**/*Test.class" />
     87                <exclude name="**/*IT.class" />
     88                <exclude name="**/StreamingITBase.class" />
    8789                <!-- exclude anything not in net.i2p.* -->
    8890                <exclude name="org/cybergarage/**/*.class" />
     
    127129                <fileset dir="./test/junit">
    128130                    <include name="**/*Test.java" />
     131                    <include name="**/*IT.java" if="runIntegrationTests" />
    129132                </fileset>
    130133            </batchtest>
  • apps/streaming/java/test/junit/net/i2p/client/streaming/impl/ConnectCloseIT.java

    r8dcbc99 r6f1bb85  
    1919 *
    2020 */
    21 public class ConnectCloseTest extends StreamingTestBase {
     21public class ConnectCloseIT extends StreamingITBase {
    2222    private Log _log;
    2323    private I2PSession _server;
     
    2626    public void test() throws Exception {
    2727        I2PAppContext context = I2PAppContext.getGlobalContext();
    28         _log = context.logManager().getLog(ConnectCloseTest.class);
     28        _log = context.logManager().getLog(ConnectCloseIT.class);
    2929        _log.debug("creating server session");
    3030        _server = createSession();
  • apps/streaming/java/test/junit/net/i2p/client/streaming/impl/ConnectIT.java

    r8dcbc99 r6f1bb85  
    1616 *
    1717 */
    18 public class ConnectTest extends StreamingTestBase {
     18public class ConnectIT extends StreamingITBase {
    1919    private Log _log;
    2020    private I2PSession _server;
     
    2929    public void test() throws Exception {
    3030        I2PAppContext context = I2PAppContext.getGlobalContext();
    31         _log = context.logManager().getLog(ConnectTest.class);
     31        _log = context.logManager().getLog(ConnectIT.class);
    3232        _log.debug("creating server session");
    3333        _server = createSession();
  • apps/streaming/java/test/junit/net/i2p/client/streaming/impl/ConnectInactivityIT.java

    r8dcbc99 r6f1bb85  
    1616 *
    1717 */
    18 public class ConnectInactivityTest extends StreamingTestBase {
     18public class ConnectInactivityIT extends StreamingITBase {
    1919    private static final long LONG_TIME = 60 * 1000;
    2020   
     
    3030    public void test() throws Exception {
    3131        I2PAppContext context = I2PAppContext.getGlobalContext();
    32         _log = context.logManager().getLog(ConnectTest.class);
     32        _log = context.logManager().getLog(ConnectIT.class);
    3333        _log.debug("creating server session");
    3434        _server = createSession();
  • apps/streaming/java/test/junit/net/i2p/client/streaming/impl/ConnectTimeoutIT.java

    r8dcbc99 r6f1bb85  
    1818 * timeout.
    1919 */
    20 public class ConnectTimeoutTest  extends StreamingTestBase {
     20public class ConnectTimeoutIT  extends StreamingITBase {
    2121    private Log _log;
    2222    private I2PSession _client;
     
    2626    public void testNonexistant() throws Exception {
    2727        I2PAppContext context = I2PAppContext.getGlobalContext();
    28         _log = context.logManager().getLog(ConnectTest.class);
     28        _log = context.logManager().getLog(ConnectIT.class);
    2929        _log.debug("creating server dest");
    3030        _serverDest = I2PClientFactory.createClient().createDestination(new ByteArrayOutputStream());
  • apps/streaming/java/test/junit/net/i2p/client/streaming/impl/EchoIT.java

    r8dcbc99 r6f1bb85  
    1818 *
    1919 */
    20 public class EchoTest extends StreamingTestBase {
     20public class EchoIT extends StreamingITBase {
    2121    private Log _log;
    2222    private I2PSession _client;
     
    2626    public void test() throws Exception {
    2727        I2PAppContext context = I2PAppContext.getGlobalContext();
    28         _log = context.logManager().getLog(ConnectTest.class);
     28        _log = context.logManager().getLog(ConnectIT.class);
    2929        _log.debug("creating server session");
    3030        _server = createSession();
  • apps/streaming/java/test/junit/net/i2p/client/streaming/impl/EchoLargeIT.java

    r8dcbc99 r6f1bb85  
    1818 *
    1919 */
    20 public class EchoLargeTest extends StreamingTestBase {
     20public class EchoLargeIT extends StreamingITBase {
    2121    private Log _log;
    2222    private I2PSession _client;
     
    2626    public void test() throws Exception {
    2727        I2PAppContext context = I2PAppContext.getGlobalContext();
    28         _log = context.logManager().getLog(ConnectTest.class);
     28        _log = context.logManager().getLog(ConnectIT.class);
    2929        _log.debug("creating server session");
    3030        _server = createSession();
  • apps/streaming/java/test/junit/net/i2p/client/streaming/impl/PingIT.java

    r8dcbc99 r6f1bb85  
    1414import net.i2p.client.I2PSession;
    1515
    16 public class PingTest extends TestCase {
     16public class PingIT extends TestCase {
    1717
    1818    @Test
  • apps/streaming/java/test/junit/net/i2p/client/streaming/impl/StreamingITBase.java

    r8dcbc99 r6f1bb85  
    1313import junit.framework.TestCase;
    1414
    15 abstract class StreamingTestBase extends TestCase {
     15abstract class StreamingITBase extends TestCase {
    1616
    1717    // TODO: this may need to start a full router
  • build.properties

    r8dcbc99 r6f1bb85  
    6969
    7070### UnitTests ##
     71# Uncomment the next line to enable integration tests.
     72# These require a running router with I2CP available on 127.0.0.1:7654.
     73#runIntegrationTests=true
     74
    7175# Location of the libraries required for the ScalaTest tests.
    7276# Define this in override.properties or pass in on the command line.
Note: See TracChangeset for help on using the changeset viewer.