Package org.apache.wookie.w3c

Examples of org.apache.wookie.w3c.IFeatureEntity


        }
      }
     
      // FEATURE IS OPTIONAL - can be many
      if(tag.equals(IW3CXMLConfiguration.FEATURE_ELEMENT)) {
        IFeatureEntity feature = new FeatureEntity(this.features);
        feature.fromXML(child);
        if (feature.getName()!=null) fFeaturesList.add(feature);
      }
     
      // PREFERENCE IS OPTIONAL - can be many
      if(tag.equals(IW3CXMLConfiguration.PREFERENCE_ELEMENT)) {
        IPreferenceEntity preference = new PreferenceEntity();
View Full Code Here


 
  @Test
  public void ha(){
    W3CWidget widget = processWidgetNoErrors("http://dev.w3.org/2006/waf/widgets/test-suite/test-cases/ta-rZdcMBExBX/002/ha.wgt");
    assertEquals(2,widget.getFeatures().size());
    IFeatureEntity feature1 = widget.getFeatures().get(0);
    IFeatureEntity feature2 = widget.getFeatures().get(1);
    assertEquals("feature:a9bb79c1", feature1.getName());
    assertEquals("feature:a9bb79c1", feature2.getName());
    assertEquals(1,feature1.getParams().size());
    assertEquals(1,feature2.getParams().size());
    assertEquals("test",feature1.getParams().get(0).getName());
    assertEquals("test",feature2.getParams().get(0).getName());
    assertTrue(
      feature1.getParams().get(0).getValue().equals("pass1") && feature2.getParams().get(0).getValue().equals("pass2")
    ||  feature2.getParams().get(0).getValue().equals("pass1") && feature1.getParams().get(0).getValue().equals("pass2")
    );
  }
View Full Code Here

 
  @Test
  public void v9(){
    W3CWidget widget = processWidgetNoErrors("http://dev.w3.org/2006/waf/widgets/test-suite/test-cases/ta-EGkPfzCBOz/002/v9.wgt");
    assertEquals(1,widget.getFeatures().size());
    IFeatureEntity feature1 = widget.getFeatures().get(0);
    assertEquals("feature:a9bb79c1", feature1.getName());
    assertEquals(2,feature1.getParams().size());
    IParamEntity param1 = feature1.getParams().get(0);
    IParamEntity param2 = feature1.getParams().get(1);
    assertEquals("PASS",param1.getName());
    assertEquals("PASS",param2.getName());
    assertTrue(
      param1.getValue().equals("value1") && param2.getValue().equals("value2")
    ||  param1.getValue().equals("value2") && param2.getValue().equals("value1")
View Full Code Here

    String pass_value="feature:a9bb79c1";
    String id="029";
    String[] tests = {"lro","rlo","rtl","ltr"};
    for (String dir: tests){
      W3CWidget widget = getWidget(id,dir);
      IFeatureEntity feature = widget.getFeatures().get(0);
      assertEquals(pass_value, feature.getName());
   
  }
View Full Code Here

    String pass_value="feature:a9bb79c1";
    String id="029";
    String[] tests = {"lro","rlo","rtl","ltr"};
    for (String dir: tests){
      W3CWidget widget = getWidget(id,dir);
      IFeatureEntity feature = widget.getFeatures().get(0);
      assertEquals(pass_value, feature.getName());
   
  }
View Full Code Here

 
  @Test
  public void ha(){
    W3CWidget widget = processWidgetNoErrors("http://dev.w3.org/2006/waf/widgets/test-suite/test-cases/ta-rZdcMBExBX/002/ha.wgt");
    assertEquals(2,widget.getFeatures().size());
    IFeatureEntity feature1 = widget.getFeatures().get(0);
    IFeatureEntity feature2 = widget.getFeatures().get(1);
    assertEquals("feature:a9bb79c1", feature1.getName());
    assertEquals("feature:a9bb79c1", feature2.getName());
    assertEquals(1,feature1.getParams().size());
    assertEquals(1,feature2.getParams().size());
    assertEquals("test",feature1.getParams().get(0).getName());
    assertEquals("test",feature2.getParams().get(0).getName());
    assertTrue(
      feature1.getParams().get(0).getValue().equals("pass1") && feature2.getParams().get(0).getValue().equals("pass2")
    ||  feature2.getParams().get(0).getValue().equals("pass1") && feature1.getParams().get(0).getValue().equals("pass2")
    );
  }
View Full Code Here

 
  @Test
  public void v9(){
    W3CWidget widget = processWidgetNoErrors("http://dev.w3.org/2006/waf/widgets/test-suite/test-cases/ta-EGkPfzCBOz/002/v9.wgt");
    assertEquals(1,widget.getFeatures().size());
    IFeatureEntity feature1 = widget.getFeatures().get(0);
    assertEquals("feature:a9bb79c1", feature1.getName());
    assertEquals(2,feature1.getParams().size());
    IParamEntity param1 = feature1.getParams().get(0);
    IParamEntity param2 = feature1.getParams().get(1);
    assertEquals("PASS",param1.getName());
    assertEquals("PASS",param2.getName());
    assertTrue(
      param1.getValue().equals("value1") && param2.getValue().equals("value2")
    ||  param1.getValue().equals("value2") && param2.getValue().equals("value1")
View Full Code Here

 
  @Test
  public void ha(){
    W3CWidget widget = processWidgetNoErrors("http://dev.w3.org/2006/waf/widgets/test-suite/test-cases/ta-rZdcMBExBX/002/ha.wgt");
    assertEquals(2,widget.getFeatures().size());
    IFeatureEntity feature1 = widget.getFeatures().get(0);
    IFeatureEntity feature2 = widget.getFeatures().get(1);
    assertEquals("feature:a9bb79c1", feature1.getName());
    assertEquals("feature:a9bb79c1", feature2.getName());
    assertEquals(1,feature1.getParams().size());
    assertEquals(1,feature2.getParams().size());
    assertEquals("test",feature1.getParams().get(0).getName());
    assertEquals("test",feature2.getParams().get(0).getName());
    assertTrue(
      feature1.getParams().get(0).getValue().equals("pass1") && feature2.getParams().get(0).getValue().equals("pass2")
    ||  feature2.getParams().get(0).getValue().equals("pass1") && feature1.getParams().get(0).getValue().equals("pass2")
    );
  }
View Full Code Here

 
  @Test
  public void v9(){
    W3CWidget widget = processWidgetNoErrors("http://dev.w3.org/2006/waf/widgets/test-suite/test-cases/ta-EGkPfzCBOz/002/v9.wgt");
    assertEquals(1,widget.getFeatures().size());
    IFeatureEntity feature1 = widget.getFeatures().get(0);
    assertEquals("feature:a9bb79c1", feature1.getName());
    assertEquals(2,feature1.getParams().size());
    IParamEntity param1 = feature1.getParams().get(0);
    IParamEntity param2 = feature1.getParams().get(1);
    assertEquals("PASS",param1.getName());
    assertEquals("PASS",param2.getName());
    assertTrue(
      param1.getValue().equals("value1") && param2.getValue().equals("value2")
    ||  param1.getValue().equals("value2") && param2.getValue().equals("value1")
View Full Code Here

        }
      }
     
      // FEATURE IS OPTIONAL - can be many
      if(tag.equals(IW3CXMLConfiguration.FEATURE_ELEMENT)) {
        IFeatureEntity feature = new FeatureEntity(this.features);
        feature.fromXML(child);
        if (feature.getName()!=null) fFeaturesList.add(feature);
      }
     
      // PREFERENCE IS OPTIONAL - can be many
      if(tag.equals(IW3CXMLConfiguration.PREFERENCE_ELEMENT)) {
        IPreferenceEntity preference = new PreferenceEntity();
View Full Code Here

TOP

Related Classes of org.apache.wookie.w3c.IFeatureEntity

Copyright © 2018 www.massapicom. 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.