blob: 6022e599792d5cbfe5e574b604a5b160b5f42973 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
package cgeo.geocaching.connector.gc;
import static org.assertj.core.api.Assertions.assertThat;
import cgeo.geocaching.enumerations.StatusCode;
import org.apache.commons.lang3.StringUtils;
import android.test.suitebuilder.annotation.Suppress;
import junit.framework.TestCase;
public class GCLoginTest extends TestCase {
final GCLogin instance = GCLogin.getInstance();
@Override
protected void setUp() throws Exception {
super.setUp();
assertThat(instance.login()).isEqualTo(StatusCode.NO_ERROR);
}
public static void testHomeLocation() {
assertThat(StringUtils.isNotBlank(GCLogin.retrieveHomeLocation())).isTrue();
}
@Suppress // It currently fails on CI
public void testAvatar() {
assertThat(instance.downloadAvatar()).isNotNull();
}
}
|