Tabnine Logo
TestUtils.parseExtensionElement
Code IndexAdd Tabnine to your IDE (free)

How to use
parseExtensionElement
method
in
org.jivesoftware.smack.test.util.TestUtils

Best Java code snippets using org.jivesoftware.smack.test.util.TestUtils.parseExtensionElement (Showing top 5 results out of 315)

origin: igniterealtime/Smack

public static <EE extends ExtensionElement> EE parseExtensionElement(String elementString)
        throws Exception {
  return parseExtensionElement(getParser(elementString));
}
origin: igniterealtime/Smack

  @Test
  public void parseTest() throws Exception {
    // @formatter:off
    final String capsExtensionString =
      "<c xmlns='http://jabber.org/protocol/caps'"
      + " hash='sha-1'"
      + " node='http://foo.example.org/bar'"
      + " ver='QgayPKawpkPSDYmwt/WM94uA1u0='/>";
    // @formatter:on
    CapsExtension capsExtension = TestUtils.parseExtensionElement(capsExtensionString);
    assertNotNull(capsExtension);
  }
}
origin: igniterealtime/Smack

@Test
public void testParseOxEmeElement() throws Exception {
  ExplicitMessageEncryptionElement eme = TestUtils.parseExtensionElement(OX_EME_ELEMENT);
  assertEquals(ExplicitMessageEncryptionProtocol.openpgpV0, eme.getProtocol());
}
origin: igniterealtime/Smack

  @Test
  public void testParseUnknownEmeElement() throws Exception {
    ExplicitMessageEncryptionElement eme = TestUtils.parseExtensionElement(UNKNOWN_EME_ELEMENT);
    assertEquals(UNKNOWN_NAMESPACE, eme.getEncryptionNamespace());
    assertEquals(UNKNOWN_NAME, eme.getName());
  }
}
origin: igniterealtime/Smack

    "</x>";
DataForm dataForm = TestUtils.parseExtensionElement(formFieldUsingNamespacePrefix);
org.jivesoftware.smack.test.utilTestUtilsparseExtensionElement

Popular methods of TestUtils

  • getParser
  • getIQParser
  • getMessageParser

Popular in Java

  • Start an intent from android
  • runOnUiThread (Activity)
  • setRequestProperty (URLConnection)
  • getSupportFragmentManager (FragmentActivity)
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now