Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,22 @@ hs_err_pid*
#ide config
.metadata
.recommenders
/bin/
.idea/workspace.xml
.idea/dictionaries/myj.xml
.idea/
.DS_Store
*.classpath
*.project
.settings
.project
.target
.classpath
**/.settings
**/.classpath
**/.eclipse
**/target/
target/
bin/
.svn
*.iml

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

1 change: 1 addition & 0 deletions group02/527705641/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/bin/
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
package com.github.fei9009.coding2017.basic;

import static org.junit.Assert.*;

import org.junit.Before;
import org.junit.Test;

public class ArrayListTest {

private static ArrayList testArray = new ArrayList();
@Before
public void setUp() throws Exception {
//testArray.clear();
}

@Test
public void testArrayList() {
//fail("Not yet implemented");
}

@Test
public void testAddObject() {
testArray.add(10);
assertEquals(10, testArray.get(0));
//fail("Not yet implemented");
}

@Test
public void testAddIntObject() {
testArray.add(10);
testArray.add(0, 3);
testArray.add(0, 2);
assertEquals(3, testArray.get(1));
assertEquals(2, testArray.get(0));
//fail("Not yet implemented");
}

@Test
public void testGet() {
testArray.add(10);
assertEquals(10, testArray.get(0));
//fail("Not yet implemented");
}

@Test
public void testRemove() {
fail("Not yet implemented");
}

@Test
public void testSize() {
fail("Not yet implemented");
}

}
Loading