feat: group imported threads into project archives
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user