Convert ValidatorTest to EmailValidatorIT
Change-Id: I28b1746ed1eeeed8d52d4522f57d310259baf37e
This commit is contained in:
@@ -1,6 +1,9 @@
|
|||||||
|
RESOURCES = glob(["src/test/resources/**/*"])
|
||||||
|
|
||||||
java_library(
|
java_library(
|
||||||
name = "lib",
|
name = "lib",
|
||||||
testonly = 1,
|
testonly = 1,
|
||||||
|
resources = RESOURCES,
|
||||||
srcs = ["src/test/java/com/google/gerrit/acceptance/Dummy.java"],
|
srcs = ["src/test/java/com/google/gerrit/acceptance/Dummy.java"],
|
||||||
visibility = ["//visibility:public"],
|
visibility = ["//visibility:public"],
|
||||||
exports = [
|
exports = [
|
||||||
|
@@ -12,17 +12,19 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
package com.google.gerrit.server.mail.send;
|
package com.google.gerrit.acceptance.server.mail;
|
||||||
|
|
||||||
import static com.google.common.truth.Truth.assertThat;
|
import static com.google.common.truth.Truth.assertThat;
|
||||||
import static com.google.common.truth.Truth.assert_;
|
import static com.google.common.truth.Truth.assert_;
|
||||||
|
|
||||||
|
import com.google.gerrit.acceptance.AbstractDaemonTest;
|
||||||
|
import com.google.gerrit.server.mail.send.OutgoingEmailValidator;
|
||||||
import java.io.BufferedReader;
|
import java.io.BufferedReader;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
import java.io.InputStreamReader;
|
import java.io.InputStreamReader;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
public class ValidatorTest {
|
public class EmailValidatorIT extends AbstractDaemonTest {
|
||||||
private static final String UNSUPPORTED_PREFIX = "#! ";
|
private static final String UNSUPPORTED_PREFIX = "#! ";
|
||||||
|
|
||||||
@Test
|
@Test
|
Reference in New Issue
Block a user