mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-09 09:09:38 +02:00
Bump "Error Prone" to 2.3.2
and gradle-errorprone-plugin to 0.6.
This commit is contained in:
parent
ec7badfda0
commit
b7ea226c56
65 changed files with 173 additions and 149 deletions
|
@ -66,6 +66,7 @@ public abstract class AbstractSmackIntTest {
|
|||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("ThreadPriorityCheck")
|
||||
protected void waitUntilTrue(Condition condition) throws TimeoutException, NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
|
||||
final long deadline = System.currentTimeMillis() + timeout;
|
||||
do {
|
||||
|
|
|
@ -51,7 +51,6 @@ import org.jivesoftware.smack.XMPPException;
|
|||
import org.jivesoftware.smack.debugger.ConsoleDebugger;
|
||||
import org.jivesoftware.smack.tcp.XMPPTCPConnection;
|
||||
import org.jivesoftware.smack.tcp.XMPPTCPConnectionConfiguration;
|
||||
import org.jivesoftware.smack.tcp.XMPPTCPConnectionConfiguration.Builder;
|
||||
import org.jivesoftware.smack.util.StringUtils;
|
||||
|
||||
import org.jivesoftware.smackx.debugger.EnhancedDebugger;
|
||||
|
@ -221,7 +220,7 @@ public class SmackIntegrationTestFramework {
|
|||
continue;
|
||||
}
|
||||
Class<?> retClass = method.getReturnType();
|
||||
if (!(retClass.equals(Void.TYPE))) {
|
||||
if (!retClass.equals(Void.TYPE)) {
|
||||
LOGGER.warning("SmackIntegrationTest annotation on method that does not return void");
|
||||
continue;
|
||||
}
|
||||
|
@ -560,7 +559,7 @@ public class SmackIntegrationTestFramework {
|
|||
accountPassword = StringUtils.insecureRandomString(16);
|
||||
}
|
||||
|
||||
Builder builder = getConnectionConfigurationBuilder(config);
|
||||
XMPPTCPConnectionConfiguration.Builder builder = getConnectionConfigurationBuilder(config);
|
||||
builder.setUsernameAndPassword(accountUsername, accountPassword)
|
||||
.setResource(middlefix + '-' + testRunResult.testRunId);
|
||||
|
||||
|
|
|
@ -148,11 +148,11 @@ public class FormTest extends AbstractSmackIntegrationTest {
|
|||
assertNotNull(completedForm.getField("name"));
|
||||
assertNotNull(completedForm.getField("description"));
|
||||
assertEquals(
|
||||
completedForm.getField("name").getValues().get(0),
|
||||
completedForm.getField("name").getValues().get(0).toString(),
|
||||
"Credit card number invalid");
|
||||
assertNotNull(completedForm.getField("time"));
|
||||
assertNotNull(completedForm.getField("age"));
|
||||
assertEquals("The age is bad", "20", completedForm.getField("age").getValues().get(0));
|
||||
assertEquals("The age is bad", "20", completedForm.getField("age").getValues().get(0).toString());
|
||||
|
||||
}
|
||||
finally {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue