use of io.nuls.kernel.MicroKernelBootstrap in project nuls by nuls-io.
the class TransactionCacheStorageServiceTest method init.
@Before
public void init() {
try {
MicroKernelBootstrap mk = MicroKernelBootstrap.getInstance();
mk.init();
mk.start();
LevelDbModuleBootstrap bootstrap = new LevelDbModuleBootstrap();
bootstrap.init();
bootstrap.start();
service = NulsContext.getServiceBean(TransactionCacheStorageService.class);
} catch (Exception e) {
Log.error(e);
}
}
use of io.nuls.kernel.MicroKernelBootstrap in project nuls by nuls-io.
the class TransactionServiceImplTest method init.
@Before
public void init() {
MicroKernelBootstrap mk = MicroKernelBootstrap.getInstance();
mk.init();
mk.start();
LevelDbModuleBootstrap bootstrap = new LevelDbModuleBootstrap();
bootstrap.init();
bootstrap.start();
UtxoLedgerModuleBootstrap ledgerModuleBootstrap = new UtxoLedgerModuleBootstrap();
ledgerModuleBootstrap.init();
ledgerModuleBootstrap.start();
NettyNetworkModuleBootstrap networkModuleBootstrap = new NettyNetworkModuleBootstrap();
networkModuleBootstrap.init();
networkModuleBootstrap.start();
transactionService = SpringLiteContext.getBean(TransactionService.class);
initTxList();
}
use of io.nuls.kernel.MicroKernelBootstrap in project nuls by nuls-io.
the class AccountBaseServiceTest method beforeTest.
@BeforeClass
public static void beforeTest() {
MicroKernelBootstrap kernel = MicroKernelBootstrap.getInstance();
kernel.init();
kernel.start();
accountService = SpringLiteContext.getBean(AccountService.class);
accountBaseService = SpringLiteContext.getBean(AccountBaseService.class);
}
Aggregations