forked from I2P_Developers/i2p.i2p
Segment integration tests in router
This commit is contained in:
@ -10,6 +10,9 @@ sourceSets {
|
||||
test {
|
||||
java {
|
||||
srcDir 'java/test/junit'
|
||||
exclude {
|
||||
it.name.endsWith('IT.java')
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -279,6 +279,7 @@
|
||||
<batchtest todir="../../reports/router/junit/">
|
||||
<fileset dir="./test/junit">
|
||||
<include name="**/*Test.java" />
|
||||
<include name="**/*IT.java" if="runIntegrationTests" />
|
||||
</fileset>
|
||||
</batchtest>
|
||||
<formatter type="xml"/>
|
||||
|
@ -32,7 +32,7 @@ import net.i2p.router.RouterContext;
|
||||
* 10 concurrent threads is, well, slow.
|
||||
*
|
||||
*/
|
||||
public class BandwidthLimiterTest {
|
||||
public class BandwidthLimiterIT {
|
||||
private static RouterContext _context;
|
||||
private final static int NUM_KB = 256;
|
||||
|
@ -14,7 +14,7 @@ import org.junit.Before;
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
|
||||
public abstract class GatewayTestBase extends RouterTestBase {
|
||||
public abstract class GatewayITBase extends RouterITBase {
|
||||
|
||||
|
||||
private static TunnelGatewayPumper _pumper;
|
@ -15,7 +15,7 @@ import static junit.framework.TestCase.*;
|
||||
* Quick unit test for base functionality of inbound tunnel
|
||||
* operation
|
||||
*/
|
||||
public class InboundGatewayTest extends GatewayTestBase {
|
||||
public class InboundGatewayIT extends GatewayITBase {
|
||||
|
||||
|
||||
@Override
|
@ -20,7 +20,7 @@ import static org.junit.Assert.assertTrue;
|
||||
* operation
|
||||
*
|
||||
*/
|
||||
public class InboundTest extends RouterTestBase {
|
||||
public class InboundIT extends RouterITBase {
|
||||
|
||||
@Test
|
||||
@SuppressWarnings("deprecation")
|
@ -12,7 +12,7 @@ package net.i2p.router.tunnel;
|
||||
* Quick unit test for base functionality of outbound tunnel
|
||||
* operation
|
||||
*/
|
||||
public class OutboundGatewayTest extends GatewayTestBase {
|
||||
public class OutboundGatewayIT extends GatewayITBase {
|
||||
|
||||
@Override
|
||||
protected void setupSenderAndReceiver() {
|
@ -13,7 +13,7 @@ import org.junit.BeforeClass;
|
||||
*
|
||||
* @author zab
|
||||
*/
|
||||
public abstract class RouterTestBase {
|
||||
public abstract class RouterITBase {
|
||||
|
||||
protected static RouterContext _context;
|
||||
protected static TunnelCreatorConfig _config;
|
Reference in New Issue
Block a user