@Test(expected = ChaosException.class) public void unknownRouteMap () { unknownRouteType.getMapRouteRequest(); }
@JsonIgnore public MapRouteRequest getMapRouteRequest () { MapRouteRequest.Builder builder = MapRouteRequest.builder(); builder.applicationName(applicationName).domain(domain.getName()); switch (type) { case HTTP: return builder.path(path).host(host).build(); case TCP: return builder.port(port).build(); default: throw new ChaosException(CloudFoundryChaosErrorCode.UNSUPPORTED_ROUTE_TYPE); } }
CloudFoundryApplicationRoute { @JsonIgnore public MapRouteRequest getMapRouteRequest () { MapRouteRequest.Builder builder = MapRouteRequest.builder(); builder.applicationName(applicationName).domain(domain.getName()); switch (type) { case HTTP: return builder.path(path).host(host).build(); case TCP: return builder.port(port).build(); default: throw new ChaosException(CloudFoundryChaosErrorCode.UNSUPPORTED_ROUTE_TYPE); } } }
CloudFoundryApplicationRoute { @JsonIgnore public MapRouteRequest getMapRouteRequest () { MapRouteRequest.Builder builder = MapRouteRequest.builder(); builder.applicationName(applicationName).domain(domain.getName()); switch (type) { case HTTP: return builder.path(path).host(host).build(); case TCP: return builder.port(port).build(); default: throw new ChaosException(CloudFoundryChaosErrorCode.UNSUPPORTED_ROUTE_TYPE); } }  }
CloudFoundryApplicationRoute { @JsonIgnore public MapRouteRequest getMapRouteRequest () { MapRouteRequest.Builder builder = MapRouteRequest.builder(); builder.applicationName(applicationName).domain(domain.getName()); switch (type) { case HTTP: return builder.path(path).host(host).build(); case TCP: return builder.port(port).build(); default: throw new ChaosException(CloudFoundryChaosErrorCode.UNSUPPORTED_ROUTE_TYPE); } }  static CloudFoundryApplicationRouteBuilder builder(); String getHost(); CloudFoundryApplicationRouteType getType(); @JsonIgnore UnmapRouteRequest getUnmapRouteRequest(); @JsonIgnore MapRouteRequest getMapRouteRequest(); @Override String toString(); }
CloudFoundryApplicationRoute { @JsonIgnore public MapRouteRequest getMapRouteRequest () { MapRouteRequest.Builder builder = MapRouteRequest.builder(); builder.applicationName(applicationName).domain(domain.getName()); switch (type) { case HTTP: return builder.path(path).host(host).build(); case TCP: return builder.port(port).build(); default: throw new ChaosException(CloudFoundryChaosErrorCode.UNSUPPORTED_ROUTE_TYPE); } }  static CloudFoundryApplicationRouteBuilder builder(); String getHost(); CloudFoundryApplicationRouteType getType(); @JsonIgnore UnmapRouteRequest getUnmapRouteRequest(); @JsonIgnore MapRouteRequest getMapRouteRequest(); @Override String toString();  }