Search in sources :

Example 6 with FeatureTypeConstraintModel

use of com.sldeditor.ui.detail.config.featuretypeconstraint.FeatureTypeConstraintModel in project sldeditor by robward-scisys.

the class FeatureTypeConstraintModelTest method testGetColumnNameInt.

/**
 * Test method for
 * {@link com.sldeditor.ui.detail.config.featuretypeconstraint.FeatureTypeConstraintModel#getColumnName(int)}.
 */
@Test
public void testGetColumnNameInt() {
    FeatureTypeConstraintModel model = new FeatureTypeConstraintModel(null);
    assertTrue(model.getColumnName(0).compareTo(Localisation.getString(FieldConfigBase.class, "FeatureTypeConstraintModel.name")) == 0);
}
Also used : FieldConfigBase(com.sldeditor.ui.detail.config.FieldConfigBase) FeatureTypeConstraintModel(com.sldeditor.ui.detail.config.featuretypeconstraint.FeatureTypeConstraintModel) Test(org.junit.Test)

Aggregations

FeatureTypeConstraintModel (com.sldeditor.ui.detail.config.featuretypeconstraint.FeatureTypeConstraintModel)6 Test (org.junit.Test)6 FieldConfigBase (com.sldeditor.ui.detail.config.FieldConfigBase)1 Extent (org.geotools.styling.Extent)1 FeatureTypeConstraint (org.geotools.styling.FeatureTypeConstraint)1 StyleFactoryImpl (org.geotools.styling.StyleFactoryImpl)1