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)