Skip to content

Commit 2d81ec7

Browse files
authored
Merge pull request onlyliuxin#1 from eloiseSJTU/master
add all java
2 parents 5c18ae5 + d4847fe commit 2d81ec7

File tree

36 files changed

+1801
-283
lines changed

36 files changed

+1801
-283
lines changed

.gitignore

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,22 @@ hs_err_pid*
1414
#ide config
1515
.metadata
1616
.recommenders
17+
/bin/
18+
.idea/workspace.xml
19+
.idea/dictionaries/myj.xml
20+
.idea/
21+
.DS_Store
22+
*.classpath
23+
*.project
24+
.settings
25+
.project
26+
.target
27+
.classpath
28+
**/.settings
29+
**/.classpath
30+
**/.eclipse
31+
**/target/
32+
target/
33+
bin/
34+
.svn
35+
*.iml

coding2017/group02/447809161Learning/src/com/github/hwjcc969/coding2017/basic/ArrayList.java

Lines changed: 0 additions & 62 deletions
This file was deleted.

coding2017/group02/447809161Learning/src/com/github/hwjcc969/coding2017/basic/BinaryTreeNode.java

Lines changed: 0 additions & 32 deletions
This file was deleted.

coding2017/group02/447809161Learning/src/com/github/hwjcc969/coding2017/basic/Iterator.java

Lines changed: 0 additions & 7 deletions
This file was deleted.

coding2017/group02/447809161Learning/src/com/github/hwjcc969/coding2017/basic/LinkedList.java

Lines changed: 0 additions & 117 deletions
This file was deleted.

coding2017/group02/447809161Learning/src/com/github/hwjcc969/coding2017/basic/Queue.java

Lines changed: 0 additions & 27 deletions
This file was deleted.

coding2017/group02/447809161Learning/src/com/github/hwjcc969/coding2017/basic/Stack.java

Lines changed: 0 additions & 31 deletions
This file was deleted.

group02/527705641/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/bin/
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
package com.github.fei9009.coding2017.basic;
2+
3+
import static org.junit.Assert.*;
4+
5+
import org.junit.Before;
6+
import org.junit.Test;
7+
8+
public class ArrayListTest {
9+
10+
private static ArrayList testArray = new ArrayList();
11+
@Before
12+
public void setUp() throws Exception {
13+
//testArray.clear();
14+
}
15+
16+
@Test
17+
public void testArrayList() {
18+
//fail("Not yet implemented");
19+
}
20+
21+
@Test
22+
public void testAddObject() {
23+
testArray.add(10);
24+
assertEquals(10, testArray.get(0));
25+
//fail("Not yet implemented");
26+
}
27+
28+
@Test
29+
public void testAddIntObject() {
30+
testArray.add(10);
31+
testArray.add(0, 3);
32+
testArray.add(0, 2);
33+
assertEquals(3, testArray.get(1));
34+
assertEquals(2, testArray.get(0));
35+
//fail("Not yet implemented");
36+
}
37+
38+
@Test
39+
public void testGet() {
40+
testArray.add(10);
41+
assertEquals(10, testArray.get(0));
42+
//fail("Not yet implemented");
43+
}
44+
45+
@Test
46+
public void testRemove() {
47+
fail("Not yet implemented");
48+
}
49+
50+
@Test
51+
public void testSize() {
52+
fail("Not yet implemented");
53+
}
54+
55+
}

0 commit comments

Comments
 (0)