Search in sources :

Example 6 with BBoxDB

use of org.bboxdb.network.client.BBoxDB in project bboxdb by jnidzwetzki.

the class TestBBoxDBCluster method testVersionTimeQuery.

/**
 * Execute the version time query
 * @throws BBoxDBException
 * @throws InterruptedException
 */
@Test(timeout = 60000)
public void testVersionTimeQuery() throws InterruptedException, BBoxDBException {
    final BBoxDB bboxDBClient = connectToServer();
    NetworkQueryHelper.testVersionTimeQuery(bboxDBClient, DISTRIBUTION_GROUP);
    disconnect(bboxDBClient);
}
Also used : BBoxDB(org.bboxdb.network.client.BBoxDB) Test(org.junit.Test)

Example 7 with BBoxDB

use of org.bboxdb.network.client.BBoxDB in project bboxdb by jnidzwetzki.

the class TestBBoxDBCluster method testJoin.

/**
 * Test the tuple join
 * @throws ExecutionException
 * @throws InterruptedException
 * @throws BBoxDBException
 */
@Test(timeout = 60000)
public void testJoin() throws InterruptedException, ExecutionException, BBoxDBException {
    System.out.println("=== Running cluster testJoin");
    final BBoxDB bboxdbClient = connectToServer();
    NetworkQueryHelper.executeJoinQuery(bboxdbClient, DISTRIBUTION_GROUP);
    System.out.println("=== End cluster testJoin");
    disconnect(bboxdbClient);
}
Also used : BBoxDB(org.bboxdb.network.client.BBoxDB) Test(org.junit.Test)

Example 8 with BBoxDB

use of org.bboxdb.network.client.BBoxDB in project bboxdb by jnidzwetzki.

the class TestBBoxDBCluster method testMiscMethods.

/**
 * Test misc methods
 * @throws InterruptedException
 */
@Test(timeout = 60000)
public void testMiscMethods() throws InterruptedException {
    final BBoxDB bboxDBClient = connectToServer();
    Assert.assertTrue(bboxDBClient.toString().length() > 10);
    Assert.assertTrue(bboxDBClient.getTuplesPerPage() >= -1);
    bboxDBClient.isPagingEnabled();
    disconnect(bboxDBClient);
}
Also used : BBoxDB(org.bboxdb.network.client.BBoxDB) Test(org.junit.Test)

Example 9 with BBoxDB

use of org.bboxdb.network.client.BBoxDB in project bboxdb by jnidzwetzki.

the class TestBBoxDBCluster method before.

/**
 * Re-create distribution group for each test
 * @throws InterruptedException
 * @throws BBoxDBException
 */
@Before
public void before() throws InterruptedException, BBoxDBException {
    final BBoxDB bboxdbClient = connectToServer();
    TestHelper.recreateDistributionGroup(bboxdbClient, DISTRIBUTION_GROUP);
    disconnect(bboxdbClient);
}
Also used : BBoxDB(org.bboxdb.network.client.BBoxDB) Before(org.junit.Before)

Example 10 with BBoxDB

use of org.bboxdb.network.client.BBoxDB in project bboxdb by jnidzwetzki.

the class TestBBoxDBCluster method testInsertedTimeQuery.

/**
 * Execute the version inserted query
 * @throws BBoxDBException
 * @throws InterruptedException
 */
@Test(timeout = 60000)
public void testInsertedTimeQuery() throws InterruptedException, BBoxDBException {
    final BBoxDB bboxDBClient = connectToServer();
    NetworkQueryHelper.testInsertedTimeQuery(bboxDBClient, DISTRIBUTION_GROUP);
    disconnect(bboxDBClient);
}
Also used : BBoxDB(org.bboxdb.network.client.BBoxDB) Test(org.junit.Test)

Aggregations

BBoxDB (org.bboxdb.network.client.BBoxDB)10 Test (org.junit.Test)7 BoundingBox (org.bboxdb.commons.math.BoundingBox)3 BBoxDBCluster (org.bboxdb.network.client.BBoxDBCluster)2 EmptyResultFuture (org.bboxdb.network.client.future.EmptyResultFuture)2 TupleListFuture (org.bboxdb.network.client.future.TupleListFuture)2 TupleStoreConfiguration (org.bboxdb.storage.entity.TupleStoreConfiguration)2 DistributionGroupConfiguration (org.bboxdb.storage.entity.DistributionGroupConfiguration)1 Tuple (org.bboxdb.storage.entity.Tuple)1 Before (org.junit.Before)1