use of org.n52.io.response.PlatformOutput in project series-rest-api by 52North.
the class PlatformOutputTest method when_havingExplicitHref_then_hrefNotIncludingHrefBase.
@Test
public void when_havingExplicitHref_then_hrefNotIncludingHrefBase() {
PlatformOutput platform = new PlatformOutput(PlatformType.MOBILE_INSITU);
platform.setHref("http://localhost/otherContext/12");
platform.setHrefBase("http://localhost/context");
platform.setId("12");
assertThat(platform.getHref(), is("http://localhost/otherContext/12"));
}
use of org.n52.io.response.PlatformOutput in project series-rest-api by 52North.
the class PlatformOutputTest method when_createdStationaryInsitu_then_hrefIncludesPrefix.
@Test
public void when_createdStationaryInsitu_then_hrefIncludesPrefix() {
PlatformOutput platform = new PlatformOutput(PlatformType.STATIONARY_INSITU);
platform.setHrefBase("http://localhost/context");
platform.setId("12");
assertThat(platform.getHref(), is("http://localhost/context/stationary_insitu_12"));
}
use of org.n52.io.response.PlatformOutput in project series-rest-api by 52North.
the class PlatformOutputTest method when_createdMobileInsitu_then_hrefIncludesPrefix.
@Test
public void when_createdMobileInsitu_then_hrefIncludesPrefix() {
PlatformOutput platform = new PlatformOutput(PlatformType.MOBILE_INSITU);
platform.setHrefBase("http://localhost/context");
platform.setId("12");
assertThat(platform.getHref(), is("http://localhost/context/mobile_insitu_12"));
}
use of org.n52.io.response.PlatformOutput in project series-rest-api by 52North.
the class PlatformOutputTest method when_createdMobileRemote_then_hrefIncludesPrefix.
@Test
public void when_createdMobileRemote_then_hrefIncludesPrefix() {
PlatformOutput platform = new PlatformOutput(PlatformType.MOBILE_REMOTE);
platform.setHrefBase("http://localhost/context");
platform.setId("12");
assertThat(platform.getHref(), is("http://localhost/context/mobile_remote_12"));
}
use of org.n52.io.response.PlatformOutput in project series-rest-api by 52North.
the class PlatformOutputTest method when_createdStationaryRemote_then_hrefIncludesPrefix.
@Test
public void when_createdStationaryRemote_then_hrefIncludesPrefix() {
PlatformOutput platform = new PlatformOutput(PlatformType.STATIONARY_REMOTE);
platform.setHrefBase("http://localhost/context");
platform.setId("12");
assertThat(platform.getHref(), is("http://localhost/context/stationary_remote_12"));
}
Aggregations