aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/com/juick
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2020-10-19 09:08:48 +0300
committerGravatar Vitaly Takmazov2020-10-19 09:18:55 +0300
commitf65f8a63587e0f42e1d8843b30ff15c8f74e3f86 (patch)
tree8a616237073bde3e60e706169afd1c0d77a2d95b /src/test/java/com/juick
parent06914c210bbf1130299c380eff1e300b5ea0b8f9 (diff)
Fix some JDT warnings
Diffstat (limited to 'src/test/java/com/juick')
-rw-r--r--src/test/java/com/juick/config/TestActivityConfiguration.java2
-rw-r--r--src/test/java/com/juick/server/tests/ServerTests.java1
2 files changed, 1 insertions, 2 deletions
diff --git a/src/test/java/com/juick/config/TestActivityConfiguration.java b/src/test/java/com/juick/config/TestActivityConfiguration.java
index 854bad06..d77b2d52 100644
--- a/src/test/java/com/juick/config/TestActivityConfiguration.java
+++ b/src/test/java/com/juick/config/TestActivityConfiguration.java
@@ -23,8 +23,6 @@ import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.io.Resource;
-import java.io.IOException;
-
@Configuration
public class TestActivityConfiguration {
@Value("classpath:test.p12")
diff --git a/src/test/java/com/juick/server/tests/ServerTests.java b/src/test/java/com/juick/server/tests/ServerTests.java
index ee726dbf..03f52623 100644
--- a/src/test/java/com/juick/server/tests/ServerTests.java
+++ b/src/test/java/com/juick/server/tests/ServerTests.java
@@ -756,6 +756,7 @@ public class ServerTests {
Scanner headerScanner = new Scanner(header).useDelimiter(EmailManager.MSGID_PATTERN);
int mid = Integer.parseInt(headerScanner.next());
int rid = Integer.parseInt(headerScanner.next());
+ headerScanner.close();
assertThat(mid, equalTo(123456));
assertThat(rid, equalTo(56));
}