Examples of outputXMLString()


Examples of org.apache.wookie.w3c.util.WidgetOutputter.outputXMLString()

  public void outputString4() throws Exception{
    File testWidget = new File("build/widgets/localetest.wgt");
    W3CWidget widget = load(testWidget);
    WidgetOutputter outputter = new WidgetOutputter();
    outputter.setWidgetFolder("/widgets");
    String manifest = outputter.outputXMLString(widget);
    assertTrue(manifest.contains("id=\"http://www.getwookie.org/widgets/localetest\""));
    assertTrue(manifest.contains("xml:lang=\"fr\">tester les paramètres régionaux</name>"));
  }
@Test
  public void outputString5() throws Exception{
View Full Code Here

Examples of org.apache.wookie.w3c.util.WidgetOutputter.outputXMLString()

    W3CWidget widget = load(testWidget);
    widget.getIconsList().add(new IconEntity("icon.png",100,100));
    widget.getNames().get(0).setShort("shortName");
    WidgetOutputter outputter = new WidgetOutputter();
    outputter.setWidgetFolder("/widgets");
    String manifest = outputter.outputXMLString(widget);
    System.out.println(manifest);
    assertTrue(manifest.contains("id=\"http://www.getwookie.org/widgets/localetest\""));
    assertTrue(manifest.contains("xml:lang=\"fr\">tester les paramètres régionaux</name>"));
    assertTrue(manifest.contains("<icon src=\"icon.png\" height=\"100\" width=\"100\" />"));
    assertTrue(manifest.contains("name short=\"shortName\""));
View Full Code Here

Examples of org.apache.wookie.w3c.util.WidgetOutputter.outputXMLString()

    W3CWidget widget = load(testWidget);
    INameEntity name = widget.getNames().get(0);
    name.setName("Modified Widget");
    WidgetOutputter outputter = new WidgetOutputter();
    outputter.setWidgetFolder("/widgets");
    String manifest = outputter.outputXMLString(widget);
    assertTrue(manifest.contains("Modified Widget"));
    assertTrue(manifest.contains("<content src=\"index.html\""));
  }

  @Test
View Full Code Here

Examples of org.apache.wookie.w3c.util.WidgetOutputter.outputXMLString()

  public void outputString() throws Exception{
    File testWidget = new File("parser/java/src/test/resources/bubbles.wgt");
    W3CWidget widget = load(testWidget);
    WidgetOutputter outputter = new WidgetOutputter();
    outputter.setWidgetFolder("/widgets");
    String manifest = outputter.outputXMLString(widget);
    assertTrue(manifest.contains("id=\"http://www.opera.com/widgets/bubbles\""));
    assertTrue(manifest.contains("<content src=\"index.html\""));
  }
  @Test
  public void outputString2() throws Exception{
View Full Code Here

Examples of org.apache.wookie.w3c.util.WidgetOutputter.outputXMLString()

  public void outputString2() throws Exception{
    File testWidget = new File("parser/java/src/test/resources/natter.wgt");
    W3CWidget widget = load(testWidget);
    WidgetOutputter outputter = new WidgetOutputter();
    outputter.setWidgetFolder("/widgets");
    String manifest = outputter.outputXMLString(widget);
    assertTrue(manifest.contains("id=\"http://www.getwookie.org/widgets/natter\""));
    assertTrue(manifest.contains("<content src=\"index.htm\""));
    assertTrue(manifest.contains("name=\"moderator\" value=\"false\""));
  }
  @Test
View Full Code Here

Examples of org.apache.wookie.w3c.util.WidgetOutputter.outputXMLString()

  public void outputString3() throws Exception{
    File testWidget = new File("parser/java/src/test/resources/weather.wgt");
    W3CWidget widget = load(testWidget);
    WidgetOutputter outputter = new WidgetOutputter();
    outputter.setWidgetFolder("/widgets");
    String manifest = outputter.outputXMLString(widget);
    assertTrue(manifest.contains("id=\"http://www.getwookie.org/widgets/weather\""));
    assertTrue(manifest.contains("origin=\"http://newsrss.bbc.co.uk"));
  }
  @Test
  public void outputString4() throws Exception{
View Full Code Here

Examples of org.apache.wookie.w3c.util.WidgetOutputter.outputXMLString()

  public void outputString4() throws Exception{
    File testWidget = new File("parser/java/src/test/resources/localetest.wgt");
    W3CWidget widget = load(testWidget);
    WidgetOutputter outputter = new WidgetOutputter();
    outputter.setWidgetFolder("/widgets");
    String manifest = outputter.outputXMLString(widget);
    assertTrue(manifest.contains("id=\"http://www.getwookie.org/widgets/localetest\""));
    assertTrue(manifest.contains("xml:lang=\"fr\">tester les paramètres régionaux</name>"));
  }
@Test
  public void outputString5() throws Exception{
View Full Code Here

Examples of org.apache.wookie.w3c.util.WidgetOutputter.outputXMLString()

    W3CWidget widget = load(testWidget);
    widget.getIcons().add(new IconEntity("icon.png",100,100));
    widget.getNames().get(0).setShort("shortName");
    WidgetOutputter outputter = new WidgetOutputter();
    outputter.setWidgetFolder("/widgets");
    String manifest = outputter.outputXMLString(widget);
    System.out.println(manifest);
    assertTrue(manifest.contains("id=\"http://www.getwookie.org/widgets/localetest\""));
    assertTrue(manifest.contains("xml:lang=\"fr\">tester les paramètres régionaux</name>"));
    assertTrue(manifest.contains("<icon src=\"icon.png\" height=\"100\" width=\"100\" />"));
    assertTrue(manifest.contains("name short=\"shortName\""));
View Full Code Here

Examples of org.apache.wookie.w3c.util.WidgetOutputter.outputXMLString()

    W3CWidget widget = load(testWidget);
    IName name = widget.getNames().get(0);
    name.setName("Modified Widget");
    WidgetOutputter outputter = new WidgetOutputter();
    outputter.setWidgetFolder("/widgets");
    String manifest = outputter.outputXMLString(widget);
    assertTrue(manifest.contains("Modified Widget"));
    assertTrue(manifest.contains("<content src=\"index.html\""));
  }

  @Test
View Full Code Here

Examples of org.apache.wookie.w3c.util.WidgetOutputter.outputXMLString()

  public void outputString() throws Exception{
    File testWidget = new File("build/widgets/bubbles.wgt");
    W3CWidget widget = load(testWidget);
    WidgetOutputter outputter = new WidgetOutputter();
    outputter.setWidgetFolder("/widgets");
    String manifest = outputter.outputXMLString(widget);
    assertTrue(manifest.contains("id=\"http://www.opera.com/widgets/bubbles\""));
    assertTrue(manifest.contains("<content src=\"index.html\""));
  }
  @Test
  public void outputString2() throws Exception{
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.