mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2025-09-09 10:19:41 +02:00
Bump errorprone to 2.2.0
This commit is contained in:
parent
214218c49b
commit
3132d9a224
17 changed files with 59 additions and 87 deletions
|
@ -21,7 +21,6 @@ import static org.junit.Assert.assertFalse;
|
|||
import static org.junit.Assert.assertNotNull;
|
||||
import static org.junit.Assert.assertNull;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
import static org.junit.Assert.fail;
|
||||
|
||||
import org.jivesoftware.smack.DummyConnection;
|
||||
import org.jivesoftware.smack.packet.Message;
|
||||
|
@ -343,7 +342,7 @@ public class ChatConnectionTest {
|
|||
try {
|
||||
chatServer.join();
|
||||
} catch (InterruptedException e) {
|
||||
fail();
|
||||
throw new AssertionError(e);
|
||||
}
|
||||
waitListener.waitAndReset();
|
||||
}
|
||||
|
|
|
@ -683,9 +683,9 @@ public class RosterTest extends InitSmackIm {
|
|||
connection.processStanza(response);
|
||||
|
||||
// Verify the roster update request
|
||||
assertSame("A roster set MUST contain one and only one <item/> element.",
|
||||
1,
|
||||
rosterRequest.getRosterItemCount());
|
||||
if (rosterRequest.getRosterItemCount() != 1) {
|
||||
throw new AssertionError("A roster set MUST contain one and only one <item/> element.");
|
||||
}
|
||||
verifyUpdateRequest(rosterRequest);
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -180,9 +180,9 @@ public class SubscriptionPreApprovalTest extends InitSmackIm {
|
|||
connection.processStanza(response);
|
||||
|
||||
// Verify the roster update request
|
||||
assertSame("A roster set MUST contain one and only one <item/> element.",
|
||||
1,
|
||||
rosterRequest.getRosterItemCount());
|
||||
if (rosterRequest.getRosterItemCount() != 1) {
|
||||
throw new AssertionError("A roster set MUST contain one and only one <item/> element.");
|
||||
}
|
||||
verifyRosterUpdateRequest(rosterRequest);
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue