]> source.dussan.org Git - jgit.git/commitdiff
UploadPackTest: Stop using deprecated PacketLineIn constants 65/150665/2
authorDavid Pursehouse <david.pursehouse@gmail.com>
Mon, 7 Oct 2019 00:50:40 +0000 (09:50 +0900)
committerMatthias Sohn <matthias.sohn@sap.com>
Mon, 7 Oct 2019 14:32:02 +0000 (16:32 +0200)
The DELIM and END constants are deprecated and using them causes
warnings. Replace them with the accessor methods.

Change-Id: Iadb27000755e8fd8c61d9218591f9d110b8265c8
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/UploadPackTest.java

index 9d8c6506699c611e0ace4766f319f94aa3f1c8e1..5d9f32d40b6751cabc9fe3bacb9633bda2358ff7 100644 (file)
@@ -2015,12 +2015,12 @@ public class UploadPackTest {
 
                ByteArrayInputStream recvStream = uploadPackV2(
                        "command=fetch\n",
-                       PacketLineIn.DELIM,
+                       PacketLineIn.delimiter(),
                        "sideband-all\n",
                        "want " + fooChild.toObjectId().getName() + "\n",
                        "want " + barChild.toObjectId().getName() + "\n",
                        "have " + fooParent.toObjectId().getName() + "\n",
-                       PacketLineIn.END);
+                       PacketLineIn.end());
                PacketLineIn pckIn = new PacketLineIn(recvStream);
 
                assertThat(pckIn.readString(), is("\001acknowledgments"));
@@ -2036,11 +2036,11 @@ public class UploadPackTest {
                server.getConfig().setBoolean("uploadpack", null, "allowsidebandall", true);
 
                ByteArrayInputStream recvStream = uploadPackV2("command=fetch\n",
-                               PacketLineIn.DELIM,
+                               PacketLineIn.delimiter(),
                                "want " + commit.getName() + "\n",
                                "sideband-all\n",
                                "done\n",
-                               PacketLineIn.END);
+                               PacketLineIn.end());
                PacketLineIn pckIn = new PacketLineIn(recvStream);
 
                String s;
@@ -2083,12 +2083,12 @@ public class UploadPackTest {
                                });
                        },
                        "command=fetch\n",
-                       PacketLineIn.DELIM,
+                       PacketLineIn.delimiter(),
                        "want " + commit2.getName() + "\n",
                        "sideband-all\n",
                        "packfile-uris https\n",
                        "done\n",
-                       PacketLineIn.END);
+                       PacketLineIn.end());
                PacketLineIn pckIn = new PacketLineIn(recvStream);
 
                String s;