feat: group imported threads into project archives

This commit is contained in:
kris
2026-03-30 13:50:26 +08:00
parent 98dd0e3cd5
commit 03ac40f427
23 changed files with 1207 additions and 83 deletions

View File

@@ -0,0 +1,27 @@
package com.hyzq.boss;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
public class MainActivityRefreshPolicyTest {
@Test
public void conversationsTabOnlyFailsWhenConversationRequestFails() {
assertFalse(RootRefreshPolicy.shouldShowFailure("conversations", true, false, false, false));
assertTrue(RootRefreshPolicy.shouldShowFailure("conversations", false, true, true, true));
}
@Test
public void devicesTabDependsOnDeviceRequestOnly() {
assertFalse(RootRefreshPolicy.shouldShowFailure("devices", false, true, false, false));
assertTrue(RootRefreshPolicy.shouldShowFailure("devices", true, false, true, true));
}
@Test
public void meTabAllowsOneSupportingRequestToSucceed() {
assertFalse(RootRefreshPolicy.shouldShowFailure("me", false, false, false, true));
assertFalse(RootRefreshPolicy.shouldShowFailure("me", false, false, true, false));
assertTrue(RootRefreshPolicy.shouldShowFailure("me", false, false, false, false));
}
}