(james-jspf) 01/06: Fix tests hostname so they are not skipped

[email protected]
Newsgroups gmane.comp.jakarta.james.devel
Message-ID <[email protected]>
This is an automated email from the ASF dual-hosted git repository.

btellier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-jspf.git

commit 2b9ac5569960c701b082c5f9962ea8828015d7cc
Author: Emerson Pinter <[email protected]>
AuthorDate: Wed Jan 22 13:01:15 2025 -0300

    Fix tests hostname so they are not skipped
    
    The tests with hostname without dot are beign ignored.
---
 .../org/apache/james/jspf/AsynchronousSPFExecutorIntegrationTest.java | 4 ++--
 .../src/test/java/org/apache/james/jspf/DefaultSPFResolverTest.java   | 2 +-
 .../org/apache/james/jspf/SynchronousSPFExecutorIntegrationTest.java  | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/resolver/src/test/java/org/apache/james/jspf/AsynchronousSPFExecutorIntegrationTest.java b/resolver/src/test/java/org/apache/james/jspf/AsynchronousSPFExecutorIntegrationTest.java
index 6943162..7103d27 100644
--- a/resolver/src/test/java/org/apache/james/jspf/AsynchronousSPFExecutorIntegrationTest.java
+++ b/resolver/src/test/java/org/apache/james/jspf/AsynchronousSPFExecutorIntegrationTest.java
@@ -67,10 +67,10 @@ public class AsynchronousSPFExecutorIntegrationTest {
     @Test
     public void shouldHandleSPFNotFound() {
         SPF spf = DefaultSPF.createAsync();
-        SPFResult result = spf.checkSPF("207.54.72.202","do_not_reply@de","de");
+        SPFResult result = spf.checkSPF("207.54.72.202","[email protected]","com.br");
         System.out.println(result.getResult());
         System.out.println(result.getExplanation());
         System.out.println(result.getHeader());
         assertEquals("none", result.getResult());
     }
-}
\ No newline at end of file
+}
diff --git a/resolver/src/test/java/org/apache/james/jspf/DefaultSPFResolverTest.java b/resolver/src/test/java/org/apache/james/jspf/DefaultSPFResolverTest.java
index 8378340..a84046d 100644
--- a/resolver/src/test/java/org/apache/james/jspf/DefaultSPFResolverTest.java
+++ b/resolver/src/test/java/org/apache/james/jspf/DefaultSPFResolverTest.java
@@ -31,7 +31,7 @@ public class DefaultSPFResolverTest {
     }
     @Test
     public void shouldHandleSPFNotFound() {
-        String spfResult = new DefaultSPF().checkSPF("207.54.72.202","do_not_reply@de","de").getResult();
+        String spfResult = new DefaultSPF().checkSPF("207.54.72.202","[email protected]","com.br").getResult();
         Assert.assertEquals("none", spfResult);
     }
 }
diff --git a/resolver/src/test/java/org/apache/james/jspf/SynchronousSPFExecutorIntegrationTest.java b/resolver/src/test/java/org/apache/james/jspf/SynchronousSPFExecutorIntegrationTest.java
index f78488e..4bfd81e 100644
--- a/resolver/src/test/java/org/apache/james/jspf/SynchronousSPFExecutorIntegrationTest.java
+++ b/resolver/src/test/java/org/apache/james/jspf/SynchronousSPFExecutorIntegrationTest.java
@@ -67,7 +67,7 @@ public class SynchronousSPFExecutorIntegrationTest {
     @Test
     public void shouldHandleSPFNotFound() {
         SPF spf = DefaultSPF.createSync();
-        SPFResult result = spf.checkSPF("207.54.72.202","do_not_reply@de","de");
+        SPFResult result = spf.checkSPF("207.54.72.202","[email protected]","com.br");
         System.out.println(result.getResult());
         System.out.println(result.getExplanation());
         System.out.println(result.getHeader());
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.