use of org.jivesoftware.smackx.httpfileupload.element.FileTooLargeError in project Smack by igniterealtime.
the class FileTooLargeErrorCreateTest method checkFileTooLargeErrorExtensionCreation.
@Test
public void checkFileTooLargeErrorExtensionCreation() {
FileTooLargeError fileTooLargeError = new FileTooLargeError(20000);
Assert.assertEquals(20000, fileTooLargeError.getMaxFileSize());
Assert.assertEquals(fileTooLargeErrorExtensionExample, fileTooLargeError.toXML().toString());
}
use of org.jivesoftware.smackx.httpfileupload.element.FileTooLargeError in project Smack by igniterealtime.
the class FileTooLargeErrorProviderTest method checkSlotErrorFileToLarge.
@Test
public void checkSlotErrorFileToLarge() throws Exception {
IQ fileTooLargeErrorIQ = PacketParserUtils.parseStanza(slotErrorFileToLarge);
Assert.assertEquals(IQ.Type.error, fileTooLargeErrorIQ.getType());
FileTooLargeError fileTooLargeError = FileTooLargeError.from(fileTooLargeErrorIQ);
Assert.assertEquals(20000, fileTooLargeError.getMaxFileSize());
}
Aggregations