Search in sources :

Example 11 with ExpressionPanelv2

use of com.sldeditor.filter.v2.expression.ExpressionPanelv2 in project sldeditor by robward-scisys.

the class FilterNodeTest method testSetName.

/**
 * Test method for {@link
 * com.sldeditor.filter.v2.expression.FilterNode#setName(java.lang.String)}.
 */
@Test
public void testSetName() {
    FilterNode node = new FilterNode();
    assertNull(node.getFilter());
    String name = "filtername";
    node.setName(name);
    String expected = name + " : " + Localisation.getString(ExpressionPanelv2.class, "FilterNode.filterNotSet");
    assertTrue(node.toString().compareTo(expected) == 0);
}
Also used : ExpressionPanelv2(com.sldeditor.filter.v2.expression.ExpressionPanelv2) FilterNode(com.sldeditor.filter.v2.expression.FilterNode) Test(org.junit.jupiter.api.Test)

Aggregations

Test (org.junit.jupiter.api.Test)8 ExpressionPanelv2 (com.sldeditor.filter.v2.expression.ExpressionPanelv2)7 ExpressionNode (com.sldeditor.filter.v2.expression.ExpressionNode)4 FilterNode (com.sldeditor.filter.v2.expression.FilterNode)3 SubPanelUpdatedInterface (com.sldeditor.ui.attribute.SubPanelUpdatedInterface)2 FieldConfigInteger (com.sldeditor.ui.detail.config.FieldConfigInteger)2 FieldConfigString (com.sldeditor.ui.detail.config.FieldConfigString)2 ArrayList (java.util.ArrayList)2 JPanel (javax.swing.JPanel)2 FilterFactory (org.opengis.filter.FilterFactory)2 FieldIdEnum (com.sldeditor.common.xml.ui.FieldIdEnum)1 FilterConfigInterface (com.sldeditor.filter.v2.function.FilterConfigInterface)1 FilterField (com.sldeditor.filter.v2.function.FilterField)1 FunctionField (com.sldeditor.filter.v2.function.FunctionField)1 Disjoint (com.sldeditor.filter.v2.function.geometry.Disjoint)1 Overlaps (com.sldeditor.filter.v2.function.geometry.Overlaps)1 And (com.sldeditor.filter.v2.function.logic.And)1 IsLike (com.sldeditor.filter.v2.function.misc.IsLike)1 IsNull (com.sldeditor.filter.v2.function.misc.IsNull)1 IsBetween (com.sldeditor.filter.v2.function.property.IsBetween)1