Search in sources :

Example 6 with MediaElement

use of org.jivesoftware.smackx.mediaelement.element.MediaElement in project Smack by igniterealtime.

the class SoftwareInfoIntegrationTest method createSoftwareInfoForm.

private static SoftwareInfoForm createSoftwareInfoForm() throws URISyntaxException {
    SoftwareInfoForm.Builder builder = SoftwareInfoForm.getBuilder();
    MediaElement mediaElement = MediaElement.builder().addUri(new MediaElement.Uri(new URI("http://example.org"), "test-type")).setHeightAndWidth(16, 16).build();
    SoftwareInfoForm softwareInfoForm = builder.setIcon(mediaElement).setOS("Linux").setOSVersion("Debian").setSoftware("Gajim").setSoftwareVersion("1.4.0").build();
    return softwareInfoForm;
}
Also used : MediaElement(org.jivesoftware.smackx.mediaelement.element.MediaElement) SoftwareInfoForm(org.jivesoftware.smackx.softwareinfo.form.SoftwareInfoForm) URI(java.net.URI)

Aggregations

MediaElement (org.jivesoftware.smackx.mediaelement.element.MediaElement)6 SoftwareInfoForm (org.jivesoftware.smackx.softwareinfo.form.SoftwareInfoForm)2 ParameterizedTest (org.junit.jupiter.params.ParameterizedTest)2 EnumSource (org.junit.jupiter.params.provider.EnumSource)2 URI (java.net.URI)1 QName (javax.xml.namespace.QName)1 UInt16 (org.jivesoftware.smack.datatypes.UInt16)1 FormField (org.jivesoftware.smackx.xdata.FormField)1 FormFieldChildElement (org.jivesoftware.smackx.xdata.FormFieldChildElement)1 TextSingleFormField (org.jivesoftware.smackx.xdata.TextSingleFormField)1