MUST have public constructors (not package-local, i.e. without explicit modifier)
- Add code to tests to mark them as remote
public class FooTest {
@Test
public void myFooTest() throws Exception
{
Assume.assumeNotNull(System.getProperty("infolisRemoteTest"));
}
}
This will skip the test unless the infolisRemoteTest
system property is set to true
- If remote tests should be executed
Set the system property infolisRemoteTest
:
java .... -DinfolisRemoteTest=true
In Eclipse: Run -> Run Configurations -> Arguments -> VM arguments
Replace infolisRemoteTest
with gesisRemoteTest
for tests requiring a connection from within GESIS.