blob: 50e4b5d793b86a106e6f55cce97ea2d09d908387 (
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
33
|
package cgeo.geocaching.list;
import static org.assertj.core.api.Assertions.assertThat;
import cgeo.geocaching.DataStore;
import junit.framework.TestCase;
public class StoredListTest extends TestCase {
public static void testStandardListExists() {
final StoredList list = getStandardList();
assertThat(list).isNotNull();
}
private static StoredList getStandardList() {
return DataStore.getList(StoredList.STANDARD_LIST_ID);
}
public static void testEquals() {
final StoredList list1 = getStandardList();
final StoredList list2 = getStandardList();
assertThat(list2).isEqualTo(list1);
}
public static void testConcrete() {
assertThat(getStandardList().isConcrete()).isTrue();
}
public static void testTitleAndCountContainsTitle() {
assertThat(getStandardList().getTitleAndCount().startsWith(getStandardList().getTitle())).isTrue();
}
}
|