Package net.tomp2p.storage

Examples of net.tomp2p.storage.Storage


      return new StorageMemory();
    }

    @Test
    public void testPutInitial() throws Exception {
        Storage storageM = createStorage();
        store(new StorageLayer(storageM));
        storageM.close();
    }
View Full Code Here


        Assert.assertEquals(PutStatus.OK, store);
    }

    @Test
    public void testGet() throws Exception {
        Storage storageM = createStorage();
        testGet(new StorageLayer(storageM));
        storageM.close();
    }
View Full Code Here

        Assert.assertEquals(null, result3);
    }

    @Test
    public void testPut() throws Exception {
        Storage storageM = createStorage();
        testPut(new StorageLayer(storageM));
        storageM.close();
    }
View Full Code Here

        Assert.assertEquals(3, result.size());
    }

  @Test
  public void testPutVersionFork() throws Exception {
    Storage storageM = createStorage();
    testPutVersionFork(new StorageLayer(storageM));
    storageM.close();
  }
View Full Code Here

    Assert.assertEquals(PutStatus.VERSION_FORK, store);
  }

  @Test
  public void testPutGetPrepare() throws Exception {
    Storage storageM = createStorage();
    testPutGetPrepare(new StorageLayer(storageM));
    storageM.close();
  }
View Full Code Here

    Assert.assertNull(storage.get(key2));
  }

  @Test
  public void testPutGetRangePrepare() throws Exception {
    Storage storageM = createStorage();
    testPutGetRangePrepare(new StorageLayer(storageM));
    storageM.close();
  }
View Full Code Here

    Assert.assertEquals(data1, map.firstEntry().getValue());
  }

  @Test
  public void testPutGetDigestPrepare() throws Exception {
    Storage storageM = createStorage();
    testPutGetDigestPrepare(new StorageLayer(storageM));
    storageM.close();
  }
View Full Code Here

    Assert.assertEquals(key1, digest.digests().firstEntry().getKey());
  }

  @Test
  public void testPutGetDigestRange() throws Exception {
    Storage storageM = createStorage();
    testPutGetDigestRange(new StorageLayer(storageM));
    storageM.close();
  }
View Full Code Here

    Assert.assertEquals(key1, digest.digests().firstEntry().getKey());
  }

    @Test
    public void testPutIfAbsent() throws Exception {
        Storage storageM = createStorage();
        testPutIfAbsent(new StorageLayer(storageM));
        storageM.close();
    }
View Full Code Here

        Assert.assertEquals(2, result2.size());
    }

    @Test
    public void testRemove() throws Exception {
        Storage storageM = createStorage();
        testRemove(new StorageLayer(storageM));
        storageM.close();
    }
View Full Code Here

TOP

Related Classes of net.tomp2p.storage.Storage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.