1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-12-27 13:07:58 +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:
Gaston Dombiak 2004-10-23 05:10:47 +00:00 committed by gaston
parent 8704d5ac7b
commit fd62b99a59

View file

@ -209,16 +209,16 @@ public class StringUtilsTest extends TestCase {
public void testParsing() {
String error = "Error parsing node name";
assertEquals(error, StringUtils.parseName("yahoo.myjabber.net"), "");
assertEquals(error, StringUtils.parseName("yahoo.myjabber.net/registred"), "");
assertEquals(error, StringUtils.parseName("user@yahoo.myjabber.net/registred"), "user");
assertEquals(error, StringUtils.parseName("user@yahoo.myjabber.net"), "user");
assertEquals(error, "", StringUtils.parseName("yahoo.myjabber.net"));
assertEquals(error, "", StringUtils.parseName("yahoo.myjabber.net/registred"));
assertEquals(error, "user", StringUtils.parseName("user@yahoo.myjabber.net/registred"));
assertEquals(error, "user", StringUtils.parseName("user@yahoo.myjabber.net"));
error = "Error parsing server name";
String result = "yahoo.myjabber.net";
assertEquals(error, StringUtils.parseServer("yahoo.myjabber.net"), result);
assertEquals(error, StringUtils.parseServer("yahoo.myjabber.net/registred"), result);
assertEquals(error, StringUtils.parseServer("user@yahoo.myjabber.net/registred"), result);
assertEquals(error, StringUtils.parseServer("user@yahoo.myjabber.net"), result);
assertEquals(error, result, StringUtils.parseServer("yahoo.myjabber.net"));
assertEquals(error, result, StringUtils.parseServer("yahoo.myjabber.net/registred"));
assertEquals(error, result, StringUtils.parseServer("user@yahoo.myjabber.net/registred"));
assertEquals(error, result, StringUtils.parseServer("user@yahoo.myjabber.net"));
}
}