コード例 #1
0
 public void testAsFormatString() {
   String formatString = test.asFormatString();
   Vector vec = AbstractVector.decodeVector(formatString);
   assertEquals(vec, test);
 }
コード例 #2
0
 public void testDecodeVector() throws Exception {
   Vector val = AbstractVector.decodeVector(test.asFormatString());
   for (int i = 0; i < test.size(); i++) {
     assertEquals("get [" + i + ']', test.get(i), val.get(i));
   }
 }