Search in sources :

Example 1 with MemoryExchangeStore

use of com.predic8.membrane.core.exchangestore.MemoryExchangeStore in project service-proxy by membrane.

the class ProxySSLConnectionMethodTest method setUp.

@Before
public void setUp() throws Exception {
    router = new HttpRouter();
    router.setExchangeStore(new MemoryExchangeStore());
    router.getRuleManager().addProxyAndOpenPortIfNew(new ProxyRule(new ProxyRuleKey(3129)));
    router.init();
}
Also used : MemoryExchangeStore(com.predic8.membrane.core.exchangestore.MemoryExchangeStore) ProxyRule(com.predic8.membrane.core.rules.ProxyRule) ProxyRuleKey(com.predic8.membrane.core.rules.ProxyRuleKey) HttpRouter(com.predic8.membrane.core.HttpRouter) Before(org.junit.Before)

Aggregations

HttpRouter (com.predic8.membrane.core.HttpRouter)1 MemoryExchangeStore (com.predic8.membrane.core.exchangestore.MemoryExchangeStore)1 ProxyRule (com.predic8.membrane.core.rules.ProxyRule)1 ProxyRuleKey (com.predic8.membrane.core.rules.ProxyRuleKey)1 Before (org.junit.Before)1