- public void testEmailAndDNS() throws IOException, InterruptedException, SQLException, NamingException {
+ public void testEmailAndDNSSuccess() throws IOException, InterruptedException, SQLException, NamingException {
+ testEmailAndDNS(0, 0, true, true);
+ }
+
+ @After
+ public void test() throws SQLException, IOException {
+ purgeDatabase();
+ }
+
+ @Test
+ public void testEmailAndDNSFail() throws IOException, InterruptedException, SQLException, NamingException {
+ testEmailAndDNS(1, 0, false, true);
+ purgeDatabase();
+ testEmailAndDNS(2, 0, false, true);
+ }
+
+ public void testEmailAndDNS(int dnsVariant, int emailVariant, boolean successDNS, boolean successMail) throws IOException, InterruptedException, SQLException, NamingException {