Package org.apache.wookie.w3c.impl

Examples of org.apache.wookie.w3c.impl.FeatureEntity


    assertEquals("test2", desc.getDescription());
  }
 
  @Test
  public void feature(){
    FeatureEntity feature = new FeatureEntity("http://test",true);
    assertEquals("http://test", feature.getName());
    assertEquals(true, feature.isRequired());
    assertFalse(feature.hasParams());
    ParamEntity param = new ParamEntity("name","value");
    List<IParamEntity> params = new ArrayList<IParamEntity>();
    params.add(param);
    feature = new FeatureEntity("http://test",true,params);
    assertTrue(feature.hasParams());
    feature.setRequired(false);
    assertFalse(feature.isRequired());
    feature.setName("http://test2");
    assertEquals("http://test2",feature.getName());
    ParamEntity param2 = new ParamEntity();
    param2.setName("name2");
    param2.setValue("value2");
    params.add(param2);
    assertEquals("name2", param2.getName());
    assertEquals("value2", param2.getValue());
    feature.setParams(params);
    assertEquals(2,feature.getParams().size());
  }
View Full Code Here


    assertEquals("test2", desc.getDescription());
  }
 
  @Test
  public void feature(){
    FeatureEntity feature = new FeatureEntity("http://test",true);
    assertEquals("http://test", feature.getName());
    assertEquals(true, feature.isRequired());
    assertFalse(feature.hasParams());
    ParamEntity param = new ParamEntity("name","value");
    List<IParamEntity> params = new ArrayList<IParamEntity>();
    params.add(param);
    feature = new FeatureEntity("http://test",true,params);
    assertTrue(feature.hasParams());
    feature.setRequired(false);
    assertFalse(feature.isRequired());
    feature.setName("http://test2");
    assertEquals("http://test2",feature.getName());
    ParamEntity param2 = new ParamEntity();
    param2.setName("name2");
    param2.setValue("value2");
    params.add(param2);
    assertEquals("name2", param2.getName());
    assertEquals("value2", param2.getValue());
    feature.setParams(params);
    assertEquals(2,feature.getParams().size());
  }
View Full Code Here

    assertEquals("test2", desc.getDescription());
  }
 
  @Test
  public void feature(){
    FeatureEntity feature = new FeatureEntity("http://test",true);
    assertEquals("http://test", feature.getName());
    assertEquals(true, feature.isRequired());
    assertFalse(feature.hasParams());
    ParamEntity param = new ParamEntity("name","value");
    List<IParamEntity> params = new ArrayList<IParamEntity>();
    params.add(param);
    feature = new FeatureEntity("http://test",true,params);
    assertTrue(feature.hasParams());
    feature.setRequired(false);
    assertFalse(feature.isRequired());
    feature.setName("http://test2");
    assertEquals("http://test2",feature.getName());
    ParamEntity param2 = new ParamEntity();
    param2.setName("name2");
    param2.setValue("value2");
    params.add(param2);
    assertEquals("name2", param2.getName());
    assertEquals("value2", param2.getValue());
    feature.setParams(params);
    assertEquals(2,feature.getParams().size());
  }
View Full Code Here

    assertEquals("test2", desc.getDescription());
  }
 
  @Test
  public void feature(){
    FeatureEntity feature = new FeatureEntity("http://test",true);
    assertEquals("http://test", feature.getName());
    assertEquals(true, feature.isRequired());
    assertFalse(feature.hasParams());
    ParamEntity param = new ParamEntity("name","value");
    List<IParam> params = new ArrayList<IParam>();
    params.add(param);
    feature = new FeatureEntity("http://test",true,params);
    assertTrue(feature.hasParams());
    feature.setRequired(false);
    assertFalse(feature.isRequired());
    feature.setName("http://test2");
    assertEquals("http://test2",feature.getName());
    ParamEntity param2 = new ParamEntity();
    param2.setName("name2");
    param2.setValue("value2");
    params.add(param2);
    assertEquals("name2", param2.getName());
    assertEquals("value2", param2.getValue());
    feature.setParameters(params);
    assertEquals(2,feature.getParameters().size());
  }
View Full Code Here

TOP

Related Classes of org.apache.wookie.w3c.impl.FeatureEntity

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.