Skip to content

Commit 2034c58

Browse files
committed
Move thown field to the top of the class
1 parent 6ddf85e commit 2034c58

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

gcloud-java-pubsub/src/test/java/com/google/cloud/pubsub/BaseSystemTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@
4444
*/
4545
public abstract class BaseSystemTest {
4646

47+
@Rule
48+
public ExpectedException thrown = ExpectedException.none();
49+
4750
/**
4851
* Returns the Pub/Sub service used to issue requests. This service can be such that it interacts
4952
* with the remote Pub/Sub service (for integration tests) or with an emulator
@@ -58,9 +61,6 @@ public abstract class BaseSystemTest {
5861
*/
5962
protected abstract String formatForTest(String resourceName);
6063

61-
@Rule
62-
public ExpectedException thrown = ExpectedException.none();
63-
6464
@Test
6565
public void testCreateGetAndDeleteTopic() {
6666
String name = formatForTest("test-create-get-delete-topic");

0 commit comments

Comments
 (0)