mirror of
https://github.com/runelite/plugin-hub.git
synced 2025-12-23 22:48:49 -05:00
package: Fix assertEquals argument order
This commit is contained in:
@@ -176,7 +176,7 @@ public class PluginTest
|
||||
"repository=https://github.com/runelite/example-plugin.git\n" +
|
||||
"commit=0000000000000000000000000000000000000000");
|
||||
|
||||
Assert.assertEquals(new ProcessBuilder(
|
||||
Assert.assertEquals(0, new ProcessBuilder(
|
||||
new File("./create_new_plugin.py").getAbsolutePath(),
|
||||
"--noninteractive",
|
||||
"--output_directory", p.repositoryDirectory.getAbsolutePath(),
|
||||
@@ -186,7 +186,7 @@ public class PluginTest
|
||||
"--description", "An example greeter plugin")
|
||||
.inheritIO()
|
||||
.start()
|
||||
.waitFor(), 0);
|
||||
.waitFor());
|
||||
|
||||
return p;
|
||||
}
|
||||
|
||||
@@ -55,11 +55,11 @@ public class UploadConfigurationTest
|
||||
.build())
|
||||
.execute())
|
||||
{
|
||||
Assert.assertEquals(res.code(), 200);
|
||||
Assert.assertEquals(res.body().string(), "ok");
|
||||
Assert.assertEquals(200, res.code());
|
||||
Assert.assertEquals("ok", res.body().string());
|
||||
}
|
||||
|
||||
RecordedRequest r2 = server.takeRequest();
|
||||
Assert.assertEquals(r2.getHeader("Authorization"), "Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==");
|
||||
Assert.assertEquals("Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==", r2.getHeader("Authorization"));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user