(james-jspf) 03/07: Remove redundant test
| 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 6097a03220f4de5a552ab88100aa58dca8dc031e Author: Emerson Pinter <[email protected]> AuthorDate: Fri Jan 24 15:43:19 2025 -0300 Remove redundant test It is already being tested by method shouldHandleSPFNotFound. --- .../org/apache/james/jspf/SpfVerifierTest.java | 40 ---------------------- 1 file changed, 40 deletions(-) diff --git a/resolver/src/test/java/org/apache/james/jspf/SpfVerifierTest.java b/resolver/src/test/java/org/apache/james/jspf/SpfVerifierTest.java deleted file mode 100644 index 4effa0f..0000000 --- a/resolver/src/test/java/org/apache/james/jspf/SpfVerifierTest.java +++ /dev/null @@ -1,40 +0,0 @@ -/**************************************************************** - * Licensed to the Apache Software Foundation (ASF) under one * - * or more contributor license agreements. See the NOTICE file * - * distributed with this work for additional information * - * regarding copyright ownership. The ASF licenses this file * - * to you under the Apache License, Version 2.0 (the * - * "License"); you may not use this file except in compliance * - * with the License. You may obtain a copy of the License at * - * * - * http://www.apache.org/licenses/LICENSE-2.0 * - * * - * Unless required by applicable law or agreed to in writing, * - * software distributed under the License is distributed on an * - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * - * KIND, either express or implied. See the License for the * - * specific language governing permissions and limitations * - * under the License. * - ****************************************************************/ - -package org.apache.james.jspf; - -import org.junit.Test; -import org.apache.james.jspf.executor.SPFResult; -import org.apache.james.jspf.impl.DefaultSPF; -import org.apache.james.jspf.impl.SPF; - -public class SpfVerifierTest { - @Test - public void shouldHandleRecordNotFound() { - String ipAddress = "103.52.180.162"; - String hostName = "FMTA1-162.ncdelivery04.com"; - String from = "17191683732756478-181603-1-mxscout.com@delivery.forumofsecrets.com"; - - final SPF spfChecker = new DefaultSPF(); - spfChecker.setUseBestGuess(true); - - SPFResult spfResult = spfChecker.checkSPF(ipAddress, from, hostName); - spfResult.getResult(); - } -}