use of org.apache.knox.gateway.topology.builder.property.Property in project knox by apache.
the class PropertyTopologyBuilderTest method testBuildFailedForWrongTopologyProperty.
@Test(expected = IllegalArgumentException.class)
public void testBuildFailedForWrongTopologyProperty() {
PropertyTopologyBuilder propertyTopologyBuilder = new PropertyTopologyBuilder();
propertyTopologyBuilder.addProperty(new Property("topology.miss_prop", "value"));
propertyTopologyBuilder.build();
}
use of org.apache.knox.gateway.topology.builder.property.Property in project knox by apache.
the class PropertyTopologyBuilderTest method testBuildFailedForWrongProviderToken1.
@Test(expected = IllegalArgumentException.class)
public void testBuildFailedForWrongProviderToken1() {
PropertyTopologyBuilder propertyTopologyBuilder = new PropertyTopologyBuilder();
propertyTopologyBuilder.addProperty(new Property("topology.gateway.provider", "value"));
propertyTopologyBuilder.build();
}
use of org.apache.knox.gateway.topology.builder.property.Property in project knox by apache.
the class PropertyTopologyBuilderTest method testBuildFailedForWrongProperty.
@Test(expected = IllegalArgumentException.class)
public void testBuildFailedForWrongProperty() {
PropertyTopologyBuilder propertyTopologyBuilder = new PropertyTopologyBuilder();
propertyTopologyBuilder.addProperty(new Property("miss_prop", "value"));
propertyTopologyBuilder.build();
}
use of org.apache.knox.gateway.topology.builder.property.Property in project knox by apache.
the class PropertyTopologyBuilderTest method testBuildFailedForWrongGatewayToken.
@Test(expected = IllegalArgumentException.class)
public void testBuildFailedForWrongGatewayToken() {
PropertyTopologyBuilder propertyTopologyBuilder = new PropertyTopologyBuilder();
propertyTopologyBuilder.addProperty(new Property("topology.gateway.miss_prop", "value"));
propertyTopologyBuilder.build();
}
use of org.apache.knox.gateway.topology.builder.property.Property in project knox by apache.
the class PropertyTopologyBuilderTest method testBuildFailedForWrongServiceProperty.
@Test(expected = IllegalArgumentException.class)
public void testBuildFailedForWrongServiceProperty() {
PropertyTopologyBuilder propertyTopologyBuilder = new PropertyTopologyBuilder();
propertyTopologyBuilder.addProperty(new Property("topology.gateway.service.WEBHDFS..miss_prop", "value"));
propertyTopologyBuilder.build();
}
Aggregations