@Test public void testStartBackupFirst() throws Exception { for (TestableServer backupServer : backupServers) { backupServer.start(); } for (TestableServer liveServer : liveServers) { liveServer.start(); } waitForTopology(liveServers.get(0).getServer(), liveServers.size(), liveServers.size()); sendCrashReceive(); }
public void run() { try { server.start(); } catch (Exception e) { e.printStackTrace(); } }
@Override @Before public void setUp() throws Exception { super.setUp(); createConfigs(); setLiveIdentity(); liveServer.start(); waitForServerToStart(liveServer.getServer()); if (backupServer != null) { setBackupIdentity(); if (startBackupServer) { backupServer.start(); waitForBackup(); } } }