mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-09 17:19:39 +02:00
Merge branch '4.2'
This commit is contained in:
commit
ca54f65b3e
346 changed files with 7037 additions and 5593 deletions
|
@ -20,6 +20,7 @@ import java.io.ByteArrayInputStream;
|
|||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.util.Arrays;
|
||||
|
||||
import org.igniterealtime.smack.inttest.AbstractSmackIntegrationTest;
|
||||
|
@ -43,7 +44,16 @@ public class FileTransferIntegrationTest extends AbstractSmackIntegrationTest {
|
|||
ftManagerTwo = FileTransferManager.getInstanceFor(conTwo);
|
||||
}
|
||||
|
||||
private static final byte[] dataToSend = StringUtils.insecureRandomString(1024 * 4 * 5).getBytes();
|
||||
private static final byte[] dataToSend;
|
||||
|
||||
static {
|
||||
try {
|
||||
dataToSend = StringUtils.insecureRandomString(1024 * 4 * 5).getBytes(StringUtils.UTF8);
|
||||
}
|
||||
catch (UnsupportedEncodingException e) {
|
||||
throw new AssertionError(e);
|
||||
}
|
||||
}
|
||||
|
||||
@SmackIntegrationTest
|
||||
public void fileTransferTest() throws Exception {
|
||||
|
|
|
@ -50,7 +50,7 @@ public class FormTest extends AbstractSmackIntegrationTest {
|
|||
* @throws NotConnectedException
|
||||
*/
|
||||
@SuppressWarnings("deprecation")
|
||||
@SmackIntegrationTest
|
||||
@SmackIntegrationTest
|
||||
public void testFilloutForm() throws NotConnectedException, InterruptedException {
|
||||
Form formToSend = new Form(DataForm.Type.form);
|
||||
formToSend.setInstructions(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue