Skip to content

Commit aef62e7

Browse files
committed
删除一些不用的测试
1 parent c32f59d commit aef62e7

1 file changed

Lines changed: 12 additions & 15 deletions

File tree

app/src/androidTest/java/net/coding/program/ApplicationTest.java

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,10 @@
33
import android.app.Application;
44
import android.test.ApplicationTestCase;
55

6-
import net.coding.program.common.LoginBackground;
7-
import net.coding.program.common.model.AccountInfo;
86
import net.coding.program.common.model.UserObject;
97
import net.coding.program.third.EmojiFilter;
108

119
import java.util.concurrent.CountDownLatch;
12-
import java.util.concurrent.TimeUnit;
1310

1411
/**
1512
* <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a>
@@ -56,21 +53,21 @@ public void testSaveGlobal() {
5653

5754
// AccountInfo.saveReloginInfo(mContext, a1, a2);
5855

59-
assertEquals(AccountInfo.loadRelogininfo(mContext, a1), a2);
60-
assertEquals(AccountInfo.loadRelogininfo(mContext, a2), a2);
61-
assertTrue(AccountInfo.loadRelogininfo(mContext, b1).isEmpty());
62-
assertTrue(AccountInfo.loadRelogininfo(mContext, c2).isEmpty());
56+
// assertEquals(AccountInfo.loadRelogininfo(mContext, a1), a2);
57+
// assertEquals(AccountInfo.loadRelogininfo(mContext, a2), a2);
58+
// assertTrue(AccountInfo.loadRelogininfo(mContext, b1).isEmpty());
59+
// assertTrue(AccountInfo.loadRelogininfo(mContext, c2).isEmpty());
6360
}
6461

6562
public void testLoginBackground() {
66-
LoginBackground loginBackground = new LoginBackground(mContext);
67-
loginBackground.update();
68-
try {
69-
signal.await(10, TimeUnit.SECONDS);
70-
} catch (Exception e) {
71-
72-
}
73-
assertEquals(loginBackground.getPhotoCount(), 5);
63+
// LoginBackground loginBackground = new LoginBackground(mContext);
64+
// loginBackground.update();
65+
// try {
66+
// signal.await(10, TimeUnit.SECONDS);
67+
// } catch (Exception e) {
68+
//
69+
// }
70+
// assertEquals(loginBackground.getPhotoCount(), 5);
7471
}
7572

7673
public void testPinYing() {

0 commit comments

Comments
 (0)