@Override public void setUp() throws Exception { routedConnectionFactory = LimeTestUtils.createInjector().getInstance(RoutedConnectionFactory.class); ACCEPTOR = new ConnectionAcceptor(); ACCEPTOR.start(); ConnectionSettings.ALLOW_WHILE_DISCONNECTED.setValue(true); ConnectionSettings.PREFERENCING_ACTIVE.setValue(false); }
@Override protected void setSettings() throws Exception { ConnectionSettings.NUM_CONNECTIONS.setValue(4); SearchSettings.GUESS_ENABLED.setValue(true); UltrapeerSettings.DISABLE_ULTRAPEER_MODE.setValue(false); UltrapeerSettings.EVER_ULTRAPEER_CAPABLE.setValue(true); UltrapeerSettings.FORCE_ULTRAPEER_MODE.setValue(true); ConnectionSettings.EVER_ACCEPTED_INCOMING.setValue(true); ConnectionSettings.CONNECT_ON_STARTUP.setValue(false); ConnectionSettings.LOCAL_IS_PRIVATE.setValue(false); FilterSettings.BLACK_LISTED_IP_ADDRESSES.set(new String[] {"*.*.*.*"}); FilterSettings.WHITE_LISTED_IP_ADDRESSES.set( new String[] {"127.*.*.*", InetAddress.getLocalHost().getHostAddress()}); ConnectionSettings.WATCHDOG_ACTIVE.setValue(false); ConnectionSettings.ALLOW_WHILE_DISCONNECTED.setValue(true); // ConnectionSettings.PORT.setValue(6332); UltrapeerSettings.NEED_MIN_CONNECT_TIME.setValue(false); }