Search in sources :

Example 1 with RxPublisherFactory

use of com.nexblocks.authguard.emb.rxjava.RxPublisherFactory in project AuthGuard by AuthGuard.

the class MessageBusTest method setup.

@BeforeAll
void setup() {
    final ObjectNode configNode = new ObjectNode(JsonNodeFactory.instance);
    configNode.set("channels", new ArrayNode(JsonNodeFactory.instance).add("accounts").add("auth"));
    final ConfigContext configContext = new JacksonConfigContext(configNode);
    messageBus = new MessageBus(new RxPublisherFactory(), configContext);
}
Also used : JacksonConfigContext(com.nexblocks.authguard.config.JacksonConfigContext) ObjectNode(com.fasterxml.jackson.databind.node.ObjectNode) RxPublisherFactory(com.nexblocks.authguard.emb.rxjava.RxPublisherFactory) ArrayNode(com.fasterxml.jackson.databind.node.ArrayNode) JacksonConfigContext(com.nexblocks.authguard.config.JacksonConfigContext) ConfigContext(com.nexblocks.authguard.config.ConfigContext) BeforeAll(org.junit.jupiter.api.BeforeAll)

Aggregations

ArrayNode (com.fasterxml.jackson.databind.node.ArrayNode)1 ObjectNode (com.fasterxml.jackson.databind.node.ObjectNode)1 ConfigContext (com.nexblocks.authguard.config.ConfigContext)1 JacksonConfigContext (com.nexblocks.authguard.config.JacksonConfigContext)1 RxPublisherFactory (com.nexblocks.authguard.emb.rxjava.RxPublisherFactory)1 BeforeAll (org.junit.jupiter.api.BeforeAll)1