Search in sources :

Example 1 with Setting

use of com.djrapitops.plan.settings.config.paths.key.Setting in project Plan by plan-player-analytics.

the class NukkitSystemTest method nukkitSystemHasDefaultConfigValuesAfterEnable.

@Test
void nukkitSystemHasDefaultConfigValuesAfterEnable() throws EnableException, IllegalAccessException {
    try {
        system.enable();
        PlanConfig config = system.getConfigSystem().getConfig();
        Collection<Setting> serverSettings = TestSettings.getServerSettings();
        TestSettings.assertValidDefaultValuesForAllSettings(config, serverSettings);
    } finally {
        system.disable();
    }
}
Also used : Setting(com.djrapitops.plan.settings.config.paths.key.Setting) PlanConfig(com.djrapitops.plan.settings.config.PlanConfig) Test(org.junit.jupiter.api.Test)

Example 2 with Setting

use of com.djrapitops.plan.settings.config.paths.key.Setting in project Plan by plan-player-analytics.

the class SpongeSystemTest method spongeSystemHasDefaultConfigValuesAfterEnable.

@Test
void spongeSystemHasDefaultConfigValuesAfterEnable() throws EnableException, IllegalAccessException {
    try {
        system.enable();
        PlanConfig config = system.getConfigSystem().getConfig();
        Collection<Setting> serverSettings = TestSettings.getServerSettings();
        TestSettings.assertValidDefaultValuesForAllSettings(config, serverSettings);
    } finally {
        system.disable();
    }
}
Also used : Setting(com.djrapitops.plan.settings.config.paths.key.Setting) PlanConfig(com.djrapitops.plan.settings.config.PlanConfig) Test(org.junit.jupiter.api.Test)

Aggregations

PlanConfig (com.djrapitops.plan.settings.config.PlanConfig)2 Setting (com.djrapitops.plan.settings.config.paths.key.Setting)2 Test (org.junit.jupiter.api.Test)2