1/*
2 * Copyright 2012 AndroidPlot.com
3 *
4 *    Licensed under the Apache License, Version 2.0 (the "License");
5 *    you may not use this file except in compliance with the License.
6 *    You may obtain a copy of the License at
7 *
8 *        http://www.apache.org/licenses/LICENSE-2.0
9 *
10 *    Unless required by applicable law or agreed to in writing, software
11 *    distributed under the License is distributed on an "AS IS" BASIS,
12 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 *    See the License for the specific language governing permissions and
14 *    limitations under the License.
15 */
16
17package com.androidplot.util;
18
19import org.junit.After;
20import org.junit.Before;
21import org.junit.Test;
22
23import java.util.LinkedList;
24
25import static junit.framework.Assert.assertEquals;
26
27public class ListOrganizerTest {
28    @Before
29    public void setUp() throws Exception {
30
31    }
32
33    @After
34    public void tearDown() throws Exception {
35
36    }
37
38    @Test
39    public void testMoveToTop() throws Exception {
40
41    }
42
43    @Test
44    public void testMoveAbove() throws Exception {
45
46    }
47
48    @Test
49    public void testMoveBeneath() throws Exception {
50
51    }
52
53    @Test
54    public void testMoveToBottom() throws Exception {
55        Object obj1 = new Object();
56        Object obj2 = new Object();
57        Object obj3 = new Object();
58        LinkedList list = new LinkedList();
59
60        list.add(obj1);
61        list.add(obj2);
62        list.add(obj3);
63
64        assertEquals(obj1, list.getFirst());
65        assertEquals(obj3, list.getLast());
66
67        ListOrganizer organizer = new ListOrganizer(list);
68
69        organizer.moveToBottom(obj3);
70
71        assertEquals(obj2, list.getLast());
72        assertEquals(obj3, list.getFirst());
73
74    }
75
76    @Test
77    public void testMoveUp() throws Exception {
78
79    }
80
81    @Test
82    public void testMoveDown() throws Exception {
83
84    }
85
86    @Test
87    public void testAddFirst() throws Exception {
88
89    }
90
91    @Test
92    public void testAddLast() throws Exception {
93
94    }
95}
96