summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.http.test/tst
diff options
context:
space:
mode:
authorDavid Pursehouse <david.pursehouse@gmail.com>2018-08-24 11:18:47 +0900
committerDavid Pursehouse <david.pursehouse@gmail.com>2018-08-25 14:16:30 +0900
commit3f8b9cb5fa74b8ea57023ab86b230093cd8e0e5e (patch)
tree39f5eadd28332c8d2811ce09497be31f135c8bb0 /org.eclipse.jgit.http.test/tst
parent40e9c384052a9b86ed0b51dc435d83e58515e48d (diff)
downloadjgit-3f8b9cb5fa74b8ea57023ab86b230093cd8e0e5e.tar.gz
jgit-3f8b9cb5fa74b8ea57023ab86b230093cd8e0e5e.zip
HttpClientTests: Use assertEquals to assert about response code
The current usage of assertThat causes a warning in Eclipse: "The expression of type int is boxed into Integer". Replace it with assertEquals which does not cause this warning, and is consistent with how such assertions are done in other tests. Change-Id: Id3de3548353bf6be069b6ede89c605d094b6d3f4 Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
Diffstat (limited to 'org.eclipse.jgit.http.test/tst')
-rw-r--r--org.eclipse.jgit.http.test/tst/org/eclipse/jgit/http/test/HttpClientTests.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/org.eclipse.jgit.http.test/tst/org/eclipse/jgit/http/test/HttpClientTests.java b/org.eclipse.jgit.http.test/tst/org/eclipse/jgit/http/test/HttpClientTests.java
index 61f272c4cd..ed3860ed65 100644
--- a/org.eclipse.jgit.http.test/tst/org/eclipse/jgit/http/test/HttpClientTests.java
+++ b/org.eclipse.jgit.http.test/tst/org/eclipse/jgit/http/test/HttpClientTests.java
@@ -367,7 +367,7 @@ public class HttpClientTests extends HttpTestCase {
c.setRequestMethod("GET");
c.setRequestProperty("Git-Protocol", "version=2");
c.connect();
- assertThat(c.getResponseCode(), is(200));
+ assertEquals(200, c.getResponseCode());
PacketLineIn pckIn = new PacketLineIn(c.getInputStream());
@@ -388,7 +388,7 @@ public class HttpClientTests extends HttpTestCase {
c.setRequestMethod("GET");
c.setRequestProperty("Git-Protocol", "version=2");
c.connect();
- assertThat(c.getResponseCode(), is(200));
+ assertEquals(200, c.getResponseCode());
PacketLineIn pckIn = new PacketLineIn(c.getInputStream());
assertThat(pckIn.readString(), is("version 2"));
@@ -434,6 +434,6 @@ public class HttpClientTests extends HttpTestCase {
assertTrue(s.matches("[0-9a-f]{40} [A-Za-z/]*"));
}
- assertThat(c.getResponseCode(), is(200));
+ assertEquals(200, c.getResponseCode());
}
}