uebung09
This commit is contained in:
17
uebung09/test/collection/SetTest.java
Normal file
17
uebung09/test/collection/SetTest.java
Normal file
@@ -0,0 +1,17 @@
|
||||
package collection;
|
||||
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
public class SetTest {
|
||||
|
||||
@Test
|
||||
public void testAdd() {
|
||||
Set<Integer> set = SetFactory.create();
|
||||
set = set.add(1);
|
||||
assertTrue(set.contains(1));
|
||||
set = set.add(3);
|
||||
assertTrue(set.contains(3));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user