Search in sources :

Example 6 with IoStyleContext

use of org.n52.io.IoStyleContext in project series-rest-api by 52North.

the class ChartRendererTest method shouldPrintDefaultOutputTimezoneInDomainAxisLabel.

@Test
public void shouldPrintDefaultOutputTimezoneInDomainAxisLabel() {
    IoParameters config = IoParameters.createDefaults();
    IoStyleContext context = IoStyleContext.create(config);
    String label = new MyChartRenderer(context).getXYPlot().getDomainAxis().getLabel();
    assertThat(label, is("Time (UTC)"));
}
Also used : IoStyleContext(org.n52.io.IoStyleContext) IoParameters(org.n52.io.request.IoParameters) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)4 IoStyleContext (org.n52.io.IoStyleContext)4 IoParameters (org.n52.io.request.IoParameters)4 RequestStyledParameterSet (org.n52.io.request.RequestStyledParameterSet)2 FileOutputStream (java.io.FileOutputStream)1 IOException (java.io.IOException)1 ChartDimension (org.n52.io.quantity.img.ChartDimension)1 RequestSimpleParameterSet (org.n52.io.request.RequestSimpleParameterSet)1 CategoryOutput (org.n52.io.response.CategoryOutput)1 FeatureOutput (org.n52.io.response.FeatureOutput)1 OfferingOutput (org.n52.io.response.OfferingOutput)1 PhenomenonOutput (org.n52.io.response.PhenomenonOutput)1 PlatformOutput (org.n52.io.response.PlatformOutput)1 ProcedureOutput (org.n52.io.response.ProcedureOutput)1 ServiceOutput (org.n52.io.response.ServiceOutput)1 SeriesParameters (org.n52.io.response.dataset.SeriesParameters)1 QuantityDatasetOutput (org.n52.io.response.dataset.quantity.QuantityDatasetOutput)1