You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by rc...@apache.org on 2020/08/17 09:11:37 UTC
[james-project] 26/26: [Refactoring] Remove useless @Rule in
JPAHealthCheckTest
This is an automated email from the ASF dual-hosted git repository.
rcordier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git
commit 9e4f7083e1df407c9aa09575806364f979b60cd3
Author: Rene Cordier <rc...@linagora.com>
AuthorDate: Thu Aug 13 17:14:58 2020 +0700
[Refactoring] Remove useless @Rule in JPAHealthCheckTest
---
.../org/apache/james/jpa/healthcheck/JPAHealthCheckTest.java | 10 ++--------
1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/server/data/data-jpa/src/test/java/org/apache/james/jpa/healthcheck/JPAHealthCheckTest.java b/server/data/data-jpa/src/test/java/org/apache/james/jpa/healthcheck/JPAHealthCheckTest.java
index 38e8326..16f880b 100644
--- a/server/data/data-jpa/src/test/java/org/apache/james/jpa/healthcheck/JPAHealthCheckTest.java
+++ b/server/data/data-jpa/src/test/java/org/apache/james/jpa/healthcheck/JPAHealthCheckTest.java
@@ -25,18 +25,12 @@ import org.apache.james.backends.jpa.JpaTestCluster;
import org.apache.james.core.healthcheck.Result;
import org.apache.james.core.healthcheck.ResultStatus;
import org.apache.james.mailrepository.jpa.JPAUrl;
-import org.junit.Rule;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
-import org.junit.rules.ExpectedException;
class JPAHealthCheckTest {
-
- private JPAHealthCheck jpaHealthCheck;
- private JpaTestCluster jpaTestCluster;
-
- @Rule
- ExpectedException expectedException = ExpectedException.none();
+ JPAHealthCheck jpaHealthCheck;
+ JpaTestCluster jpaTestCluster;
@BeforeEach
void setUp() {
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org