Search in sources :

Example 1 with NamedVIPSpec

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;
}
Also used : NamedVIPSpec(com.mesosphere.sdk.specification.NamedVIPSpec)

Aggregations

NamedVIPSpec (com.mesosphere.sdk.specification.NamedVIPSpec)1