4647484950515253545556
ListService service = new ListService(); service.setValue(1, 0, "mylist", 0, "test"); List<String> values = service.list(1, 0, "mylist"); assertTrue(values.get(0).equals("test")); } public void testRemove() { ListService service = new ListService();
1516171819202122232425
values.add("hello"); values.add("world"); service.add(1, 0, "mylist", values, true, true, -1); List<String> lists = service.list(1, 0, "mylist"); assertTrue(lists.size() > 0); } public void testAdd1() { ListService service = new ListService();
2728293031323334353637
values.add("hello"); values.add("world"); service.add(1, 0, "notexist", values, true, false, -1); List<String> lists = service.list(1, 0, "notexist"); assertTrue(lists.size() == 0); } public void testInsert() { ListService service = new ListService();