public virtual void testRegisterUserProcessor() { UserProcessor userProcessor = new SimpleServerUserProcessor(); UserProcessorRegisterHelper.registerUserProcessor(userProcessor, userProcessors); Assert.Single(userProcessors); }
private void InitializeInstanceFields() { addr = "127.0.0.1:" + port; concurrent = maxThread + workQueue; serverUserProcessor = new SimpleServerUserProcessor(max_timeout, coreThread, maxThread, 60, workQueue); clientUserProcessor = new SimpleClientUserProcessor(max_timeout, coreThread, maxThread, 60, workQueue); }
public virtual void testInterestRepeatException() { UserProcessor userProcessor = new SimpleServerUserProcessor(); UserProcessor repeatedUserProcessor = new SimpleServerUserProcessor(); try { UserProcessorRegisterHelper.registerUserProcessor(userProcessor, userProcessors); UserProcessorRegisterHelper.registerUserProcessor(repeatedUserProcessor, userProcessors); } catch (Exception) { } Assert.Single(userProcessors); }
private void InitializeInstanceFields() { addr = "127.0.0.1:" + port; serverUserProcessor = new SimpleServerUserProcessor(timeout * 2); }