Search in sources :

Example 1 with LegendOptionDataUpdateInterface

use of com.sldeditor.ui.legend.option.LegendOptionDataUpdateInterface in project sldeditor by robward-scisys.

the class LegendOptionPanelTest method testLegendOptionPanel.

/**
 * Test method for {@link com.sldeditor.ui.legend.option.LegendOptionPanel#LegendOptionPanel()}.
 */
@Test
public void testLegendOptionPanel() {
    LegendOptionPanel testObj = new LegendOptionPanel();
    testObj.addListener(new LegendOptionDataUpdateInterface() {

        @Override
        public void updateLegendOptionData(LegendOptionData data) {
        }
    });
    LegendOptionData newOptionData = new LegendOptionData();
    testObj.updateData(newOptionData);
    LegendOptionData actualData = testObj.getData();
    assertEquals(actualData, newOptionData);
}
Also used : LegendOptionDataUpdateInterface(com.sldeditor.ui.legend.option.LegendOptionDataUpdateInterface) LegendOptionPanel(com.sldeditor.ui.legend.option.LegendOptionPanel) LegendOptionData(com.sldeditor.ui.legend.option.LegendOptionData) Test(org.junit.Test)

Aggregations

LegendOptionData (com.sldeditor.ui.legend.option.LegendOptionData)1 LegendOptionDataUpdateInterface (com.sldeditor.ui.legend.option.LegendOptionDataUpdateInterface)1 LegendOptionPanel (com.sldeditor.ui.legend.option.LegendOptionPanel)1 Test (org.junit.Test)1