Search in sources :

Example 1 with CreateIndexTransaction

use of com.djrapitops.plan.storage.database.transactions.init.CreateIndexTransaction in project Plan by plan-player-analytics.

the class DatabaseTest method indexCreationWorksWithoutErrors.

@Test
default void indexCreationWorksWithoutErrors() throws Exception {
    Transaction transaction = new CreateIndexTransaction();
    // get to ensure transaction is finished
    db().executeTransaction(transaction).get();
    assertTrue(transaction.wasSuccessful());
}
Also used : CreateIndexTransaction(com.djrapitops.plan.storage.database.transactions.init.CreateIndexTransaction) StoreConfigTransaction(com.djrapitops.plan.storage.database.transactions.StoreConfigTransaction) Transaction(com.djrapitops.plan.storage.database.transactions.Transaction) RemovePlayerTransaction(com.djrapitops.plan.storage.database.transactions.commands.RemovePlayerTransaction) CreateIndexTransaction(com.djrapitops.plan.storage.database.transactions.init.CreateIndexTransaction) Test(org.junit.jupiter.api.Test)

Aggregations

StoreConfigTransaction (com.djrapitops.plan.storage.database.transactions.StoreConfigTransaction)1 Transaction (com.djrapitops.plan.storage.database.transactions.Transaction)1 RemovePlayerTransaction (com.djrapitops.plan.storage.database.transactions.commands.RemovePlayerTransaction)1 CreateIndexTransaction (com.djrapitops.plan.storage.database.transactions.init.CreateIndexTransaction)1 Test (org.junit.jupiter.api.Test)1