mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-27 00:32:07 +01:00
Modified order of param in assertEquals to honor expected and actual values.
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2396 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
8704d5ac7b
commit
fd62b99a59
1 changed files with 8 additions and 8 deletions
|
@ -209,16 +209,16 @@ public class StringUtilsTest extends TestCase {
|
||||||
|
|
||||||
public void testParsing() {
|
public void testParsing() {
|
||||||
String error = "Error parsing node name";
|
String error = "Error parsing node name";
|
||||||
assertEquals(error, StringUtils.parseName("yahoo.myjabber.net"), "");
|
assertEquals(error, "", StringUtils.parseName("yahoo.myjabber.net"));
|
||||||
assertEquals(error, StringUtils.parseName("yahoo.myjabber.net/registred"), "");
|
assertEquals(error, "", StringUtils.parseName("yahoo.myjabber.net/registred"));
|
||||||
assertEquals(error, StringUtils.parseName("user@yahoo.myjabber.net/registred"), "user");
|
assertEquals(error, "user", StringUtils.parseName("user@yahoo.myjabber.net/registred"));
|
||||||
assertEquals(error, StringUtils.parseName("user@yahoo.myjabber.net"), "user");
|
assertEquals(error, "user", StringUtils.parseName("user@yahoo.myjabber.net"));
|
||||||
|
|
||||||
error = "Error parsing server name";
|
error = "Error parsing server name";
|
||||||
String result = "yahoo.myjabber.net";
|
String result = "yahoo.myjabber.net";
|
||||||
assertEquals(error, StringUtils.parseServer("yahoo.myjabber.net"), result);
|
assertEquals(error, result, StringUtils.parseServer("yahoo.myjabber.net"));
|
||||||
assertEquals(error, StringUtils.parseServer("yahoo.myjabber.net/registred"), result);
|
assertEquals(error, result, StringUtils.parseServer("yahoo.myjabber.net/registred"));
|
||||||
assertEquals(error, StringUtils.parseServer("user@yahoo.myjabber.net/registred"), result);
|
assertEquals(error, result, StringUtils.parseServer("user@yahoo.myjabber.net/registred"));
|
||||||
assertEquals(error, StringUtils.parseServer("user@yahoo.myjabber.net"), result);
|
assertEquals(error, result, StringUtils.parseServer("user@yahoo.myjabber.net"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue