/** Verify the xml creation works. */
  @Test
  public void xmlTest2() {
    KVCache cache = new KVCache(2, 4);
    cache.put("1", "one");
    cache.put("2", "two");
    cache.put("3", "three");
    cache.put("4", "four");
    cache.put("1", "ONE");
    cache.get("2");
    cache.get("4");

    System.out.println(cache.toString());
    System.out.println("Test6 Success");
  }
Exemple #2
0
 /** This method is purely for convenience and will not be tested. */
 @Override
 public String toString() {
   return dataStore.toString() + dataCache.toString();
 }