Followup changes from merge
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
This commit is contained in:
parent
e1c8a0e8b8
commit
02bd1e5956
|
@ -22,6 +22,7 @@ import java.util.List;
|
||||||
import java.util.Locale;
|
import java.util.Locale;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
|
|
||||||
|
import org.eclipse.jetty.util.Attributes;
|
||||||
import org.eclipse.jetty.util.QuotedStringTokenizer;
|
import org.eclipse.jetty.util.QuotedStringTokenizer;
|
||||||
import org.eclipse.jetty.util.StringUtil;
|
import org.eclipse.jetty.util.StringUtil;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
|
|
|
@ -20,7 +20,6 @@ package org.eclipse.jetty.osgi.test;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import javax.inject.Inject;
|
import javax.inject.Inject;
|
||||||
|
|
||||||
import org.eclipse.jetty.client.HttpClient;
|
import org.eclipse.jetty.client.HttpClient;
|
||||||
|
|
|
@ -34,7 +34,6 @@ import org.eclipse.jetty.server.session.SessionData;
|
||||||
import org.eclipse.jetty.util.ClassLoadingObjectInputStream;
|
import org.eclipse.jetty.util.ClassLoadingObjectInputStream;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
import org.testcontainers.containers.GenericContainer;
|
import org.testcontainers.containers.GenericContainer;
|
||||||
import org.testcontainers.containers.output.Slf4jLogConsumer;
|
import org.testcontainers.containers.output.Slf4jLogConsumer;
|
||||||
|
|
||||||
|
@ -65,10 +64,10 @@ public class MongoTestHelper
|
||||||
{
|
{
|
||||||
long start = System.currentTimeMillis();
|
long start = System.currentTimeMillis();
|
||||||
mongo.start();
|
mongo.start();
|
||||||
String containerIpAddress = mongo.getContainerIpAddress();
|
String containerIpAddress = mongo.getContainerIpAddress();
|
||||||
int mongoPort = mongo.getMappedPort(27017);
|
int mongoPort = mongo.getMappedPort(27017);
|
||||||
LOG.info("Mongo container started for {}:{} - {}ms", containerIpAddress, mongoPort,
|
LOG.info("Mongo container started for {}:{} - {}ms", containerIpAddress, mongoPort,
|
||||||
System.currentTimeMillis() - start);
|
System.currentTimeMillis() - start);
|
||||||
System.setProperty("embedmongoHost", containerIpAddress);
|
System.setProperty("embedmongoHost", containerIpAddress);
|
||||||
System.setProperty("embedmongoPort", Integer.toString(mongoPort));
|
System.setProperty("embedmongoPort", Integer.toString(mongoPort));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue