mirror of https://github.com/qortal/qortal
Qortal Core - Main Code Repository
Decentralized Data Network - Blockchain - TRUE Cross-Chain Trading - Application and Website Hosting - Much More - Qortal is the future internet infrastructure for the global digital world.
https://qortal.dev
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
663 B
27 lines
663 B
package test; |
|
|
|
import org.junit.jupiter.api.BeforeAll; |
|
|
|
import controller.Controller; |
|
|
|
import org.junit.jupiter.api.AfterAll; |
|
|
|
import repository.DataException; |
|
import repository.RepositoryFactory; |
|
import repository.RepositoryManager; |
|
import repository.hsqldb.HSQLDBRepositoryFactory; |
|
|
|
public class Common { |
|
|
|
@BeforeAll |
|
public static void setRepository() throws DataException { |
|
RepositoryFactory repositoryFactory = new HSQLDBRepositoryFactory(Controller.connectionUrl); |
|
RepositoryManager.setRepositoryFactory(repositoryFactory); |
|
} |
|
|
|
@AfterAll |
|
public static void closeRepository() throws DataException { |
|
RepositoryManager.closeRepositoryFactory(); |
|
} |
|
|
|
}
|
|
|