startupProps = new String[] {};
else
startupProps = startupProperties;
if (startupArgs == null)
startupArgs = new String[]{};
NetworkServerTestSetup networkServerTestSetup;
if (startServer)
{
// start networkServer as a process
networkServerTestSetup = new NetworkServerTestSetup(
spt, startupProps, startupArgs, true);
}
else
{
// get networkserver setup but don't start anything
networkServerTestSetup = new NetworkServerTestSetup(
spt, true, false);
}
Test test = decorateWithPolicy(networkServerTestSetup);
test = TestConfiguration.defaultServerDecorator(test);
return test;