Added missing mock support for app host

This commit is contained in:
nsingh
2017-10-18 13:12:55 -07:00
parent e8e447f0e6
commit c6eb7222e6

View File

@@ -84,6 +84,11 @@ public class MockRunningAppProvider {
return this;
}
public MockAppBuilder host(String host) throws Exception {
when(app.getHost()).thenReturn(host);
return this;
}
public MockAppBuilder isSpringBootApp(boolean isBoot) throws Exception {
when(app.isSpringBootApp()).thenReturn(isBoot);
return this;
@@ -100,6 +105,9 @@ public class MockRunningAppProvider {
return this;
}
/**
* Builds the mock app and adds it to the app provider
*/
public void build() {
runningAppProvider.mockedApps.add(app);
}