Package org.geomajas.layer

Examples of org.geomajas.layer.VectorLayerAssociationSupport


    // TODO sorting on many-to-one or one-to-many not supported.
  }

  @Test
  public void testGetAttributes() throws Exception {
    VectorLayerAssociationSupport support = (VectorLayerAssociationSupport) layer;

    List<Attribute<?>> attributes = support.getAttributes(MTO, Filter.INCLUDE);
    Assert.assertNotNull(attributes);

    attributes = support.getAttributes(MTO, null);
    Assert.assertNotNull(attributes);

    try {
      attributes = support.getAttributes(null, Filter.INCLUDE);
      Assert.fail();
    } catch (HibernateLayerException e) {
      // We expect this exception to occur.
    }
  }
View Full Code Here

TOP

Related Classes of org.geomajas.layer.VectorLayerAssociationSupport

Copyright © 2018 www.massapicom. 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.