Package com.calclab.emite.xep.dataforms

Examples of com.calclab.emite.xep.dataforms.Form.WithField()


  }

  @Test
  public void testFormResult() {
    final Form form = new Form(Form.Type.result);
    form.WithField(new Field(FieldType.HIDDEN).Var("FORM_TYPE").Value("jabber:bot"));
    form.WithField(new Field(FieldType.TEXT_SINGLE).Var("botname").Value("The Jabber Google Bot"));
    form.WithField(new Field(FieldType.BOOLEAN).Var("public").Value("0"));
    form.WithField(new Field(FieldType.TEXT_PRIVATE).Var("password").Value("v3r0na"));
    form.WithField(new Field(FieldType.LIST_MULTI).Var("features").Value("news").Value("search"));
    form.WithField(new Field(FieldType.LIST_SINGLE).Var("maxsubs").Value("50"));
View Full Code Here


  @Test
  public void testFormResult() {
    final Form form = new Form(Form.Type.result);
    form.WithField(new Field(FieldType.HIDDEN).Var("FORM_TYPE").Value("jabber:bot"));
    form.WithField(new Field(FieldType.TEXT_SINGLE).Var("botname").Value("The Jabber Google Bot"));
    form.WithField(new Field(FieldType.BOOLEAN).Var("public").Value("0"));
    form.WithField(new Field(FieldType.TEXT_PRIVATE).Var("password").Value("v3r0na"));
    form.WithField(new Field(FieldType.LIST_MULTI).Var("features").Value("news").Value("search"));
    form.WithField(new Field(FieldType.LIST_SINGLE).Var("maxsubs").Value("50"));
    form.WithField(new Field(FieldType.JID_MULTI).Var("invitelist").Value("juliet@capulet.com").Value("benvolio@montague.net"));
View Full Code Here

  @Test
  public void testFormResult() {
    final Form form = new Form(Form.Type.result);
    form.WithField(new Field(FieldType.HIDDEN).Var("FORM_TYPE").Value("jabber:bot"));
    form.WithField(new Field(FieldType.TEXT_SINGLE).Var("botname").Value("The Jabber Google Bot"));
    form.WithField(new Field(FieldType.BOOLEAN).Var("public").Value("0"));
    form.WithField(new Field(FieldType.TEXT_PRIVATE).Var("password").Value("v3r0na"));
    form.WithField(new Field(FieldType.LIST_MULTI).Var("features").Value("news").Value("search"));
    form.WithField(new Field(FieldType.LIST_SINGLE).Var("maxsubs").Value("50"));
    form.WithField(new Field(FieldType.JID_MULTI).Var("invitelist").Value("juliet@capulet.com").Value("benvolio@montague.net"));
    session.send(form);
View Full Code Here

  public void testFormResult() {
    final Form form = new Form(Form.Type.result);
    form.WithField(new Field(FieldType.HIDDEN).Var("FORM_TYPE").Value("jabber:bot"));
    form.WithField(new Field(FieldType.TEXT_SINGLE).Var("botname").Value("The Jabber Google Bot"));
    form.WithField(new Field(FieldType.BOOLEAN).Var("public").Value("0"));
    form.WithField(new Field(FieldType.TEXT_PRIVATE).Var("password").Value("v3r0na"));
    form.WithField(new Field(FieldType.LIST_MULTI).Var("features").Value("news").Value("search"));
    form.WithField(new Field(FieldType.LIST_SINGLE).Var("maxsubs").Value("50"));
    form.WithField(new Field(FieldType.JID_MULTI).Var("invitelist").Value("juliet@capulet.com").Value("benvolio@montague.net"));
    session.send(form);
    session.verifySent(parse(XEP_0004_5_1_SAMPLE_4).x());
View Full Code Here

    final Form form = new Form(Form.Type.result);
    form.WithField(new Field(FieldType.HIDDEN).Var("FORM_TYPE").Value("jabber:bot"));
    form.WithField(new Field(FieldType.TEXT_SINGLE).Var("botname").Value("The Jabber Google Bot"));
    form.WithField(new Field(FieldType.BOOLEAN).Var("public").Value("0"));
    form.WithField(new Field(FieldType.TEXT_PRIVATE).Var("password").Value("v3r0na"));
    form.WithField(new Field(FieldType.LIST_MULTI).Var("features").Value("news").Value("search"));
    form.WithField(new Field(FieldType.LIST_SINGLE).Var("maxsubs").Value("50"));
    form.WithField(new Field(FieldType.JID_MULTI).Var("invitelist").Value("juliet@capulet.com").Value("benvolio@montague.net"));
    session.send(form);
    session.verifySent(parse(XEP_0004_5_1_SAMPLE_4).x());
  }
View Full Code Here

    form.WithField(new Field(FieldType.HIDDEN).Var("FORM_TYPE").Value("jabber:bot"));
    form.WithField(new Field(FieldType.TEXT_SINGLE).Var("botname").Value("The Jabber Google Bot"));
    form.WithField(new Field(FieldType.BOOLEAN).Var("public").Value("0"));
    form.WithField(new Field(FieldType.TEXT_PRIVATE).Var("password").Value("v3r0na"));
    form.WithField(new Field(FieldType.LIST_MULTI).Var("features").Value("news").Value("search"));
    form.WithField(new Field(FieldType.LIST_SINGLE).Var("maxsubs").Value("50"));
    form.WithField(new Field(FieldType.JID_MULTI).Var("invitelist").Value("juliet@capulet.com").Value("benvolio@montague.net"));
    session.send(form);
    session.verifySent(parse(XEP_0004_5_1_SAMPLE_4).x());
  }
View Full Code Here

    form.WithField(new Field(FieldType.TEXT_SINGLE).Var("botname").Value("The Jabber Google Bot"));
    form.WithField(new Field(FieldType.BOOLEAN).Var("public").Value("0"));
    form.WithField(new Field(FieldType.TEXT_PRIVATE).Var("password").Value("v3r0na"));
    form.WithField(new Field(FieldType.LIST_MULTI).Var("features").Value("news").Value("search"));
    form.WithField(new Field(FieldType.LIST_SINGLE).Var("maxsubs").Value("50"));
    form.WithField(new Field(FieldType.JID_MULTI).Var("invitelist").Value("juliet@capulet.com").Value("benvolio@montague.net"));
    session.send(form);
    session.verifySent(parse(XEP_0004_5_1_SAMPLE_4).x());
  }

  @Test
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.