use of com.mesosphere.sdk.specification.NamedVIPSpec in project dcos-commons by mesosphere.
the class AuxLabelAccessTest method newVIPSpec.
private static NamedVIPSpec newVIPSpec(String name, int port, String... networkNames) {
NamedVIPSpec mockVIPSpec = Mockito.mock(NamedVIPSpec.class);
Mockito.when(mockVIPSpec.getVipName()).thenReturn(name);
Mockito.when(mockVIPSpec.getVipPort()).thenReturn(port);
Mockito.when(mockVIPSpec.getNetworkNames()).thenReturn(Arrays.asList(networkNames));
return mockVIPSpec;
}
Aggregations