Examples of PreferencesHelper


Examples of org.erlide.engine.util.PreferencesHelper

        Assert.assertEquals(val, res);
    }

    @Test
    public void removeLowestLevel() {
        final PreferencesHelper helper = PreferencesHelper.getHelper(QUALIFIER);
        final String val = "value";
        final String defaultValue = "defdef";
        helper.putString(KEY, val);
        String res = helper.getString(KEY, defaultValue);
        Assert.assertEquals(val, res);

        helper.removeAllAtLowestScope();
        res = helper.getString(KEY, defaultValue);
        Assert.assertEquals(defaultValue, res);
    }
View Full Code Here

Examples of org.erlide.engine.util.PreferencesHelper

        Assert.assertEquals(defaultValue, res);
    }

    @Test
    public void hasAnyLowestLevel_no1() {
        final PreferencesHelper helper = PreferencesHelper.getHelper(QUALIFIER);
        final boolean has = helper.hasAnyAtLowestScope();
        Assert.assertEquals(false, has);
    }
View Full Code Here

Examples of org.erlide.engine.util.PreferencesHelper

        Assert.assertEquals(false, has);
    }

    @Test
    public void hasAnyLowestLevel_yes() {
        final PreferencesHelper helper = PreferencesHelper.getHelper(QUALIFIER);
        helper.putString(KEY, "gaga");
        final boolean has = helper.hasAnyAtLowestScope();
        Assert.assertEquals(true, has);
    }
View Full Code Here

Examples of org.erlide.engine.util.PreferencesHelper

        Assert.assertEquals(true, has);
    }

    @Test
    public void hasAnyLowestLevel_no2() {
        final PreferencesHelper helper = PreferencesHelper.getHelper(QUALIFIER);
        helper.putString(KEY, "gaga");
        helper.removeAllAtLowestScope();
        final boolean has = helper.hasAnyAtLowestScope();
        Assert.assertEquals(false, has);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.