Examples of UpdateDescriptionDocument


Examples of org.apache.wookie.w3c.updates.UpdateDescriptionDocument

    // Get all installed widgets
    IPersistenceManager persistenceManager = PersistenceManagerFactory.getPersistenceManager();
    IWidget[] widgets = persistenceManager.findAll(IWidget.class);
    for (IWidget widget: widgets){
      // Check for a valid update document; if there is one, create a new UpdateInformation object and add to list
      UpdateDescriptionDocument udd = UpdateUtils.checkForUpdate(widget.getUpdateLocation(), widget.getVersion());
      if (udd != null){
        UpdateInformation info = new UpdateInformation();
        info.setUpdateDescriptionDocument(udd);
        info.setWidget(widget);
        updates.add(info);
View Full Code Here

Examples of org.apache.wookie.w3c.updates.UpdateDescriptionDocument

  }
 
  @Test
  public void ac101() throws InvalidUDDException{
    W3CWidget widget = processWidgetNoErrors("http://dev.w3.org/2006/waf/widgets-updates/test-suite/test-cases/ta-acquisition10/001/ta-ac-001.wgt");
    @SuppressWarnings("unused")
    UpdateDescriptionDocument udd = new UpdateDescriptionDocument(widget.getUpdate());
  }
View Full Code Here

Examples of org.apache.wookie.w3c.updates.UpdateDescriptionDocument

  }

  @Test
  public void ac102() throws InvalidUDDException{
    W3CWidget widget = processWidgetNoErrors("http://dev.w3.org/2006/waf/widgets-updates/test-suite/test-cases/ta-acquisition10/002/ta-ac-002.wgt");
    @SuppressWarnings("unused")
    UpdateDescriptionDocument udd = new UpdateDescriptionDocument(widget.getUpdate());
  }
View Full Code Here

Examples of org.apache.wookie.w3c.updates.UpdateDescriptionDocument

  //TODO Requires manual testing - break the network connection during testing
  @Ignore
  @Test(expected=InvalidUDDException.class)
  public void ac13() throws InvalidUDDException{
    W3CWidget widget = processWidgetNoErrors("http://dev.w3.org/2006/waf/widgets-updates/test-suite/test-cases/ta-acquisition13/001/ta-ac-001.wgt");
    @SuppressWarnings("unused")
    UpdateDescriptionDocument udd = new UpdateDescriptionDocument(widget.getUpdate());
  }
View Full Code Here

Examples of org.apache.wookie.w3c.updates.UpdateDescriptionDocument

 
 
  @Test(expected=InvalidUDDException.class)
  public void pr201() throws InvalidUDDException{
    W3CWidget widget = processWidgetNoErrors("http://dev.w3.org/2006/waf/widgets-updates/test-suite/test-cases/ta-processing2/001/ta-pr-001.wgt");
    @SuppressWarnings("unused")
    UpdateDescriptionDocument udd = new UpdateDescriptionDocument(widget.getUpdate());
 
View Full Code Here

Examples of org.apache.wookie.w3c.updates.UpdateDescriptionDocument

    UpdateDescriptionDocument udd = new UpdateDescriptionDocument(widget.getUpdate());
 
  @Test(expected=InvalidUDDException.class)
  public void pr202() throws InvalidUDDException{
    W3CWidget widget = processWidgetNoErrors("http://dev.w3.org/2006/waf/widgets-updates/test-suite/test-cases/ta-processing2/002/ta-pr-002.wgt");
    @SuppressWarnings("unused")
    UpdateDescriptionDocument udd = new UpdateDescriptionDocument(widget.getUpdate());
 
View Full Code Here

Examples of org.apache.wookie.w3c.updates.UpdateDescriptionDocument

  }
 
  @Test
  public void pr220() throws InvalidUDDException{
    W3CWidget widget = processWidgetNoErrors("http://dev.w3.org/2006/waf/widgets-updates/test-suite/test-cases/ta-processing2/020/ta-pr-020.wgt");
    UpdateDescriptionDocument udd = new UpdateDescriptionDocument(widget.getUpdate());
    assertEquals("P A S S", udd.getDetails("en"));
  }
View Full Code Here

Examples of org.apache.wookie.w3c.updates.UpdateDescriptionDocument

    // Get all installed widgets
    IPersistenceManager persistenceManager = PersistenceManagerFactory.getPersistenceManager();
    IWidget[] widgets = persistenceManager.findAll(IWidget.class);
    for (IWidget widget: widgets){
      // Check for a valid update document; if there is one, create a new UpdateInformation object and add to list
      UpdateDescriptionDocument udd = UpdateUtils.checkForUpdate(widget.getUpdateLocation(), widget.getVersion());
      if (udd != null){
        UpdateInformation info = new UpdateInformation();
        info.setUpdateDescriptionDocument(udd);
        info.setWidget(widget);
        updates.add(info);
View Full Code Here

Examples of org.apache.wookie.w3c.updates.UpdateDescriptionDocument

public class UpdateDescriptionDocumentTest {

  @Test
  public void createDocument() throws InvalidUDDException, MalformedURLException{
    UpdateDescriptionDocument udd = new UpdateDescriptionDocument("test", new URL("http://incubator.apache.org/wookie"), "1.0");
    assertEquals("1.0", udd.getVersionTag());
    assertEquals("http://incubator.apache.org/wookie", udd.getUpdateSource().toString());
    assertEquals("test", udd.getDetails("en"));
  }
View Full Code Here

Examples of org.apache.wookie.w3c.updates.UpdateDescriptionDocument

    assertEquals("test", udd.getDetails("en"));
  }
 
  @Test (expected=InvalidUDDException.class)
  public void emptyDocument() throws InvalidUDDException{
    UpdateDescriptionDocument udd = new UpdateDescriptionDocument(null, null, null);
    Document doc = new Document();
    udd.fromXML(doc);
  }
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.