Remove ExpectedException rules
Change-Id: I0eaebb7bce357bd22ed8f8c1313aea59370789a6
This commit is contained in:
		| @@ -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() { | ||||
|   | ||||
| @@ -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 {} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Dave Borowitz
					Dave Borowitz