use of org.apache.knox.gateway.topology.builder.property.Property in project knox by apache.
the class PropertyTopologyBuilderTest method testBuildFailedForWrongProviderProperty.
@Test(expected = IllegalArgumentException.class)
public void testBuildFailedForWrongProviderProperty() {
PropertyTopologyBuilder propertyTopologyBuilder = new PropertyTopologyBuilder();
propertyTopologyBuilder.addProperty(new Property("topology.gateway.provider.authentication.ShiroProvider.miss_prop", "value"));
propertyTopologyBuilder.build();
}
use of org.apache.knox.gateway.topology.builder.property.Property in project knox by apache.
the class PropertyTopologyBuilderTest method testBuildFailedForEmptyProviderParamName.
@Test(expected = IllegalArgumentException.class)
public void testBuildFailedForEmptyProviderParamName() {
PropertyTopologyBuilder propertyTopologyBuilder = new PropertyTopologyBuilder();
propertyTopologyBuilder.addProperty(new Property("topology.gateway.provider.authentication.ShiroProvider.param.", "value"));
propertyTopologyBuilder.build();
}
use of org.apache.knox.gateway.topology.builder.property.Property in project knox by apache.
the class PropertyTopologyBuilderTest method testBuildSuccessfulForTopologyProperty.
@Test
public void testBuildSuccessfulForTopologyProperty() {
PropertyTopologyBuilder propertyTopologyBuilder = new PropertyTopologyBuilder();
propertyTopologyBuilder.addProperty(new Property("topology.name", "topology"));
Topology topology = propertyTopologyBuilder.build();
assertThat(topology, notNullValue());
}
use of org.apache.knox.gateway.topology.builder.property.Property in project knox by apache.
the class PropertyTopologyBuilderTest method testBuildFailedForWrongProviderToken2.
@Test(expected = IllegalArgumentException.class)
public void testBuildFailedForWrongProviderToken2() {
PropertyTopologyBuilder propertyTopologyBuilder = new PropertyTopologyBuilder();
propertyTopologyBuilder.addProperty(new Property("topology.gateway.provider.authentication", "value"));
propertyTopologyBuilder.build();
}
use of org.apache.knox.gateway.topology.builder.property.Property in project knox by apache.
the class PropertyTopologyBuilderTest method testBuildFailedForWrongServiceToken1.
@Test(expected = IllegalArgumentException.class)
public void testBuildFailedForWrongServiceToken1() {
PropertyTopologyBuilder propertyTopologyBuilder = new PropertyTopologyBuilder();
propertyTopologyBuilder.addProperty(new Property("topology.gateway.service", "value"));
propertyTopologyBuilder.build();
}
Aggregations