Package org.geomajas.sld

Source Code of org.geomajas.sld.SymbolizerTest

package org.geomajas.sld;

import junit.framework.Assert;

import org.geomajas.sld.OverlapBehaviorInfo.OverlapBehaviorInfoInner;
import org.jibx.runtime.BindingDirectory;
import org.jibx.runtime.IBindingFactory;
import org.jibx.runtime.IUnmarshallingContext;
import org.jibx.runtime.JiBXException;
import org.junit.Test;

public class SymbolizerTest {

  @Test
  public void testOverlap() throws JiBXException {
    IBindingFactory bfact = BindingDirectory.getFactory(RasterSymbolizerInfo.class);
    IUnmarshallingContext uctx = bfact.createUnmarshallingContext();
    Object object = uctx.unmarshalDocument(getClass()
        .getResourceAsStream("samples/symbolizer/rastersymbolizer.xml"), null);
    RasterSymbolizerInfo rasterSymbolizerInfo = (RasterSymbolizerInfo) object;
    Assert.assertEquals(OverlapBehaviorInfoInner.AVERAGE, rasterSymbolizerInfo.getOverlapBehavior()
        .getOverlapBehavior());
  }
}
TOP

Related Classes of org.geomajas.sld.SymbolizerTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.