fix test failures due to previous refactoring of abstract replication test classes

This commit is contained in:
Fredrik Teschke
2015-02-14 06:51:39 +01:00
parent ebb47e2900
commit 6b6c657452
7 changed files with 41 additions and 62 deletions
@@ -6,18 +6,15 @@ import static org.hamcrest.Matchers.equalTo;
import org.junit.Test;
import com.sap.sse.common.mail.MailException;
import com.sap.sse.mail.MailService;
import com.sap.sse.mail.replication.testsupport.AbstractMailServiceReplicationTest;
public class SimpleMailServiceReplicationTest extends AbstractMailServiceReplicationTest {
@Test
public void testReplicationOfSendMail() throws InterruptedException,
IllegalAccessException, MailException {
MailService master = testSetUp.getMaster();
MailService replica = testSetUp.getReplica();
master.sendMail("test@ing.me", "oh what a beatiful mail", "to be sent on this day");
testSetUp.getReplicaReplicator().waitUntilQueueIsEmpty();
replicaReplicator.waitUntilQueueIsEmpty();
Thread.sleep(3000);
assertThat("mail was not sent on replica",