use of org.n52.shetland.ogc.swe.simpleType.SweText in project arctic-sea by 52North.
the class HasExtension method addSweTextExtension.
default void addSweTextExtension(String name, String value) {
SweText sweText = new SweText();
sweText.setValue(value);
sweText.setIdentifier(name);
addSwesExtension(name, sweText);
}
use of org.n52.shetland.ogc.swe.simpleType.SweText in project arctic-sea by 52North.
the class SwesExtensionsTest method containsExtension_for_string_created_with_enum_schould_return_true.
@Test
public void containsExtension_for_string_created_with_enum_schould_return_true() {
final Extensions extensions = new Extensions();
extensions.addExtension(new SwesExtension<>().setDefinition(DEFINITION_1).setValue(new SweText()));
extensions.addExtension(new SwesExtension<>().setDefinition(DEFINITION_2).setValue(new SweText()));
extensions.addExtension(new SwesExtension<>().setDefinition(DEFINITION_3).setValue(new SweText()));
assertThat(extensions.containsExtension(DEFINITION_1), is(TRUE));
assertThat(extensions.containsExtension(DEFINITION_2), is(TRUE));
assertThat(extensions.containsExtension(DEFINITION_3), is(TRUE));
}
use of org.n52.shetland.ogc.swe.simpleType.SweText in project arctic-sea by 52North.
the class SwesExtensionsTest method containsExtension_for_string_schould_return_true.
@Test
public void containsExtension_for_string_schould_return_true() {
final Extensions extensions = new Extensions();
extensions.addExtension(new SwesExtension<>().setDefinition(DEFINITION_1).setValue(new SweText()));
extensions.addExtension(new SwesExtension<>().setDefinition(DEFINITION_2).setValue(new SweText()));
extensions.addExtension(new SwesExtension<>().setDefinition(DEFINITION_3).setValue(new SweText()));
assertThat(extensions.containsExtension(DEFINITION_1), is(TRUE));
assertThat(extensions.containsExtension(DEFINITION_2), is(TRUE));
assertThat(extensions.containsExtension(DEFINITION_3), is(TRUE));
}
use of org.n52.shetland.ogc.swe.simpleType.SweText in project arctic-sea by 52North.
the class SwesExtensionsTest method containsExtension_for_enum_created_with_string_schould_return_true.
@Test
public void containsExtension_for_enum_created_with_string_schould_return_true() {
final Extensions extensions = new Extensions();
extensions.addExtension(new SwesExtension<>().setDefinition(DEFINITION_1).setValue(new SweText()));
extensions.addExtension(new SwesExtension<>().setDefinition(DEFINITION_2).setValue(new SweText()));
extensions.addExtension(new SwesExtension<>().setDefinition(DEFINITION_3).setValue(new SweText()));
assertThat(extensions.containsExtension(DEFINITION_1), is(TRUE));
assertThat(extensions.containsExtension(DEFINITION_2), is(TRUE));
assertThat(extensions.containsExtension(DEFINITION_3), is(TRUE));
}
use of org.n52.shetland.ogc.swe.simpleType.SweText in project arctic-sea by 52North.
the class SwesExtensionsTest method containsExtension_for_enum_schould_return_true.
@Test
public void containsExtension_for_enum_schould_return_true() {
final Extensions extensions = new Extensions();
extensions.addExtension(new SwesExtension<>().setDefinition(DEFINITION_1).setValue(new SweText()));
extensions.addExtension(new SwesExtension<>().setDefinition(DEFINITION_2).setValue(new SweText()));
extensions.addExtension(new SwesExtension<>().setDefinition(DEFINITION_3).setValue(new SweText()));
assertThat(extensions.containsExtension(DEFINITION_1), is(TRUE));
assertThat(extensions.containsExtension(DEFINITION_2), is(TRUE));
assertThat(extensions.containsExtension(DEFINITION_3), is(TRUE));
}
Aggregations