示例#1
0
 /** Test the clear() and size() methods. */
 @Test
 public void testClearAndSize() {
   assertEquals("Check size 1", 3, _dbVector.size());
   _dbVector.clear();
   assertEquals("Check size 2", 0, _dbVector.size());
 }
示例#2
0
 /** Run after each test. */
 @After
 public void after() {
   _dbVector.clear();
 }