diff --git a/java/com/google/gerrit/acceptance/AbstractDaemonTest.java b/java/com/google/gerrit/acceptance/AbstractDaemonTest.java index 6c141262d9..07c80f5a58 100644 --- a/java/com/google/gerrit/acceptance/AbstractDaemonTest.java +++ b/java/com/google/gerrit/acceptance/AbstractDaemonTest.java @@ -184,7 +184,6 @@ import org.junit.AfterClass; import org.junit.Before; import org.junit.ClassRule; import org.junit.Rule; -import org.junit.rules.ExpectedException; import org.junit.rules.TemporaryFolder; import org.junit.rules.TestRule; import org.junit.runner.Description; @@ -201,10 +200,6 @@ public abstract class AbstractDaemonTest { @ConfigSuite.Parameter public Config baseConfig; @ConfigSuite.Name private String configName; - @Deprecated // Use GerritJUnit#assertThrows - @Rule - public ExpectedException exception = ExpectedException.none(); - @Rule public TestRule testRunner = new TestRule() { diff --git a/java/com/google/gerrit/testing/GerritBaseTests.java b/java/com/google/gerrit/testing/GerritBaseTests.java index 5d4abe63fd..3eb8f19a7e 100644 --- a/java/com/google/gerrit/testing/GerritBaseTests.java +++ b/java/com/google/gerrit/testing/GerritBaseTests.java @@ -15,12 +15,6 @@ package com.google.gerrit.testing; import org.junit.Ignore; -import org.junit.Rule; -import org.junit.rules.ExpectedException; @Ignore -public abstract class GerritBaseTests { - @Deprecated // Use GerritJUnit#assertThrows - @Rule - public ExpectedException exception = ExpectedException.none(); -} +public abstract class GerritBaseTests {}