use of com.sldeditor.common.preferences.PrefData in project sldeditor by robward-scisys.
the class PrefDataTest method testVendorOptionVersionList.
/**
* Test method for {@link com.sldeditor.common.preferences.PrefData#getVendorOptionVersionList()}.
* Test method for {@link com.sldeditor.common.preferences.PrefData#setVendorOptionVersionList()}.
*/
@Test
public void testVendorOptionVersionList() {
PrefData prefData = new PrefData();
List<VersionData> vendorOptionList = new ArrayList<VersionData>();
vendorOptionList.add(VendorOptionManager.getInstance().getDefaultVendorOptionVersionData());
prefData.setVendorOptionVersionList(vendorOptionList);
assertEquals(vendorOptionList, prefData.getVendorOptionVersionList());
}
use of com.sldeditor.common.preferences.PrefData in project sldeditor by robward-scisys.
the class PrefDataTest method testCheckAppVersionOnStartUp.
/**
* Test method for {@link com.sldeditor.common.preferences.PrefData#setCheckAppVersionOnStartUp(boolean)}.
* Test method for {@link com.sldeditor.common.preferences.PrefData#isCheckAppVersionOnStartUp()}.
*/
@Test
public void testCheckAppVersionOnStartUp() {
PrefData prefData = new PrefData();
prefData.setCheckAppVersionOnStartUp(false);
assertFalse(prefData.isCheckAppVersionOnStartUp());
prefData.setCheckAppVersionOnStartUp(true);
assertTrue(prefData.isCheckAppVersionOnStartUp());
}
use of com.sldeditor.common.preferences.PrefData in project sldeditor by robward-scisys.
the class PrefDataTest method testUiLayoutClass.
/**
* Test method for {@link com.sldeditor.common.preferences.PrefData#getUiLayoutClass()}.
* Test method for {@link com.sldeditor.common.preferences.PrefData#setUiLayoutClass(java.lang.String)}.
*/
@Test
public void testUiLayoutClass() {
PrefData prefData = new PrefData();
String uiLayoutClass = "perfect curve";
prefData.setUiLayoutClass(uiLayoutClass);
assertEquals(uiLayoutClass, prefData.getUiLayoutClass());
}
use of com.sldeditor.common.preferences.PrefData in project sldeditor by robward-scisys.
the class PrefDataTest method testLastFolderViewed.
/**
* Test method for {@link com.sldeditor.common.preferences.PrefData#geLastFolderViewed()}.
* Test method for {@link com.sldeditor.common.preferences.PrefData#setLastFolderViewed(String)}.
*/
@Test
public void testLastFolderViewed() {
PrefData prefData = new PrefData();
String expectedValue = "last viewed folder";
prefData.setLastFolderViewed(expectedValue);
assertEquals(expectedValue, prefData.getLastFolderViewed());
}
use of com.sldeditor.common.preferences.PrefData in project sldeditor by robward-scisys.
the class PrefDataTest method testClone.
/**
* Test method for {@link com.sldeditor.common.preferences.PrefData#clone()}.
*/
@Test
public void testClone() {
PrefData prefData = new PrefData();
prefData.setUseAntiAlias(true);
List<VersionData> vendorOptionList = new ArrayList<VersionData>();
vendorOptionList.add(VendorOptionManager.getInstance().getDefaultVendorOptionVersionData());
prefData.setVendorOptionVersionList(vendorOptionList);
String uiLayoutClass = "perfect curve";
prefData.setUiLayoutClass(uiLayoutClass);
prefData.setLastFolderViewed("last folder");
PrefData newObj = prefData.clone();
assertEquals(newObj.getBackgroundColour(), prefData.getBackgroundColour());
assertEquals(newObj.getUiLayoutClass(), prefData.getUiLayoutClass());
assertEquals(newObj.getVendorOptionVersionList(), prefData.getVendorOptionVersionList());
assertEquals(newObj.isUseAntiAlias(), prefData.isUseAntiAlias());
assertEquals(newObj.isSaveLastFolderView(), prefData.isSaveLastFolderView());
assertEquals(newObj.getLastViewedKey(), prefData.getLastViewedKey());
assertEquals(newObj.getLastFolderViewed(), prefData.getLastFolderViewed());
assertEquals(newObj.isCheckAppVersionOnStartUp(), prefData.isCheckAppVersionOnStartUp());
}
Aggregations