mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-10-26 22:10:18 +00:00
Added shared update notices
- Iris joins shared Volmit update checks and reports - The iris.update permission controls update visibility - general.updateNotifications defaults to enabled - Accepted settings changes reconfigure update checks - Shutdown removes the settings listener and closes update checks - Tests cover persisted opt-outs and notifier lifecycle
This commit is contained in:
1 parent
be0cd567ed
commit
d480abad50
7 files changed
+142
No files matched your search
@@ -12,6 +12,16 @@ import static org.junit.Assert.assertTrue;
|
||||
import static org.junit.Assert.assertThrows;
|
||||
|
||||
public class IrisSettingsDefaultsTest {
|
||||
@Test
|
||||
public void updateChecksDefaultOnAndPersistAnExplicitOptOut() {
|
||||
assertTrue(IrisSettings.parseHotloadSnapshot("{}").getGeneral().isUpdateNotifications());
|
||||
IrisSettings optedOut = IrisSettings.parseHotloadSnapshot(
|
||||
"{\"general\":{\"updateNotifications\":false}}");
|
||||
assertFalse(optedOut.getGeneral().isUpdateNotifications());
|
||||
assertFalse(new Gson().fromJson(new Gson().toJson(optedOut), IrisSettings.class)
|
||||
.getGeneral().isUpdateNotifications());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void regionBudgetLeavesHeapForHydrologyAndServerChunks() {
|
||||
IrisSettings.IrisSettingsPregen settings = new IrisSettings.IrisSettingsPregen();
|
||||
|
||||
Reference in new issue
Block a user