This commit is contained in:
James Agnew 2019-07-07 13:07:27 -04:00
parent 34f7d4ddbd
commit 73daec633f
2 changed files with 9 additions and 0 deletions

View File

@ -74,6 +74,11 @@ public class ConformanceMethodBinding extends BaseResourceReturningMethodBinding
IBaseResource conf;
conf = myCachedResponse.get();
if ("true".equals(System.getProperty("test"))) {
conf = null;
}
if (conf != null) {
long expires = myCachedResponseExpires.get();
if (expires < System.currentTimeMillis()) {

View File

@ -48,6 +48,10 @@ public class MetadataCapabilityStatementDstu3Test {
private static Server ourServer;
private static RestfulServer ourServlet;
static {
System.setProperty("test", "true");
}
@After
public void after() {
ourServlet.setServerAddressStrategy(new IncomingRequestAddressStrategy());