Package com.calclab.emite.xep.dataforms

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


  public void testFormReportedAndItems() {
    final Form form = new Form(Form.Type.result);
    form.setTitle("Joogle Search: verona");
    form.addToReported(new Field().Var("name"));
    form.addToReported(new Field().Var("url"));
    form.addItem(new Item().WithField(new Field().Var("name").Value("Comune di Verona - Benvenuti nel sito ufficiale")).WithField(
        new Field().Var("url").Value("http://www.comune.verona.it/")));
    form.addItem(new Item().WithField(new Field().Var("name").Value("benvenuto!")).WithField(new Field().Var("url").Value("http://www.hellasverona.it/")));
    form.addItem(new Item().WithField(new Field().Var("name").Value("Universita degli Studi di Verona - Home Page")).WithField(
        new Field().Var("url").Value("http://www.univr.it/")));
    form.addItem(new Item().WithField(new Field().Var("name").Value("Aeroporti del Garda")).WithField(
View Full Code Here


    form.setTitle("Joogle Search: verona");
    form.addToReported(new Field().Var("name"));
    form.addToReported(new Field().Var("url"));
    form.addItem(new Item().WithField(new Field().Var("name").Value("Comune di Verona - Benvenuti nel sito ufficiale")).WithField(
        new Field().Var("url").Value("http://www.comune.verona.it/")));
    form.addItem(new Item().WithField(new Field().Var("name").Value("benvenuto!")).WithField(new Field().Var("url").Value("http://www.hellasverona.it/")));
    form.addItem(new Item().WithField(new Field().Var("name").Value("Universita degli Studi di Verona - Home Page")).WithField(
        new Field().Var("url").Value("http://www.univr.it/")));
    form.addItem(new Item().WithField(new Field().Var("name").Value("Aeroporti del Garda")).WithField(
        new Field().Var("url").Value("http://www.aeroportoverona.it/")));
    form.addItem(new Item().WithField(new Field().Var("name").Value("Veronafiere - fiera di Verona")).WithField(
View Full Code Here

    form.addToReported(new Field().Var("name"));
    form.addToReported(new Field().Var("url"));
    form.addItem(new Item().WithField(new Field().Var("name").Value("Comune di Verona - Benvenuti nel sito ufficiale")).WithField(
        new Field().Var("url").Value("http://www.comune.verona.it/")));
    form.addItem(new Item().WithField(new Field().Var("name").Value("benvenuto!")).WithField(new Field().Var("url").Value("http://www.hellasverona.it/")));
    form.addItem(new Item().WithField(new Field().Var("name").Value("Universita degli Studi di Verona - Home Page")).WithField(
        new Field().Var("url").Value("http://www.univr.it/")));
    form.addItem(new Item().WithField(new Field().Var("name").Value("Aeroporti del Garda")).WithField(
        new Field().Var("url").Value("http://www.aeroportoverona.it/")));
    form.addItem(new Item().WithField(new Field().Var("name").Value("Veronafiere - fiera di Verona")).WithField(
        new Field().Var("url").Value("http://www.veronafiere.it/")));
View Full Code Here

    form.addItem(new Item().WithField(new Field().Var("name").Value("Comune di Verona - Benvenuti nel sito ufficiale")).WithField(
        new Field().Var("url").Value("http://www.comune.verona.it/")));
    form.addItem(new Item().WithField(new Field().Var("name").Value("benvenuto!")).WithField(new Field().Var("url").Value("http://www.hellasverona.it/")));
    form.addItem(new Item().WithField(new Field().Var("name").Value("Universita degli Studi di Verona - Home Page")).WithField(
        new Field().Var("url").Value("http://www.univr.it/")));
    form.addItem(new Item().WithField(new Field().Var("name").Value("Aeroporti del Garda")).WithField(
        new Field().Var("url").Value("http://www.aeroportoverona.it/")));
    form.addItem(new Item().WithField(new Field().Var("name").Value("Veronafiere - fiera di Verona")).WithField(
        new Field().Var("url").Value("http://www.veronafiere.it/")));
    session.send(form);
    session.verifySent(parse(XEP_0004_5_2_SAMPLE_8).x());
View Full Code Here

    form.addItem(new Item().WithField(new Field().Var("name").Value("benvenuto!")).WithField(new Field().Var("url").Value("http://www.hellasverona.it/")));
    form.addItem(new Item().WithField(new Field().Var("name").Value("Universita degli Studi di Verona - Home Page")).WithField(
        new Field().Var("url").Value("http://www.univr.it/")));
    form.addItem(new Item().WithField(new Field().Var("name").Value("Aeroporti del Garda")).WithField(
        new Field().Var("url").Value("http://www.aeroportoverona.it/")));
    form.addItem(new Item().WithField(new Field().Var("name").Value("Veronafiere - fiera di Verona")).WithField(
        new Field().Var("url").Value("http://www.veronafiere.it/")));
    session.send(form);
    session.verifySent(parse(XEP_0004_5_2_SAMPLE_8).x());
  }
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.