@Test public void testWithNoRouteTable() { DescribeRouteTablesResult describeRouteTablesResult = new DescribeRouteTablesResult(); boolean hasInternetGateway = awsSubnetIgwExplorer.hasInternetGatewayOfSubnet(describeRouteTablesResult, SUBNET_ID); assertFalse(hasInternetGateway); }
public boolean hasInternetGatewayOfSubnet(DescribeRouteTablesResult describeRouteTablesResult, String subnetId) { Optional<RouteTable> routeTable = getRouteTableForSubnet(describeRouteTablesResult, subnetId); return hasInternetGateway(routeTable, subnetId); }
AwsSubnetIgwExplorer { public boolean hasInternetGatewayOfSubnet(DescribeRouteTablesResult describeRouteTablesResult, String subnetId) { Optional<RouteTable> routeTable = getRouteTableForSubnet(describeRouteTablesResult, subnetId); return hasInternetGateway(routeTable, subnetId); } }
AwsSubnetIgwExplorer { public boolean hasInternetGatewayOfSubnet(DescribeRouteTablesResult describeRouteTablesResult, String subnetId) { Optional<RouteTable> routeTable = getRouteTableForSubnet(describeRouteTablesResult, subnetId); return hasInternetGateway(routeTable, subnetId); }  }
AwsSubnetIgwExplorer { public boolean hasInternetGatewayOfSubnet(DescribeRouteTablesResult describeRouteTablesResult, String subnetId) { Optional<RouteTable> routeTable = getRouteTableForSubnet(describeRouteTablesResult, subnetId); return hasInternetGateway(routeTable, subnetId); }  boolean hasInternetGatewayOfSubnet(DescribeRouteTablesResult describeRouteTablesResult, String subnetId); }
AwsSubnetIgwExplorer { public boolean hasInternetGatewayOfSubnet(DescribeRouteTablesResult describeRouteTablesResult, String subnetId) { Optional<RouteTable> routeTable = getRouteTableForSubnet(describeRouteTablesResult, subnetId); return hasInternetGateway(routeTable, subnetId); }  boolean hasInternetGatewayOfSubnet(DescribeRouteTablesResult describeRouteTablesResult, String subnetId);  }