Package org.apache.abdera.ext.features

Examples of org.apache.abdera.ext.features.Feature.addType()


    @Test
    public void testType() throws Exception {
        Abdera abdera = Abdera.getInstance();
        Feature feature = abdera.getFactory().newElement(FeaturesHelper.FEATURE);
        feature.addType("image/jpg", "image/gif", "image/png", "image/*");
        String[] types = feature.getTypes();
        assertEquals(1, types.length);
        assertEquals("image/*", types[0]);
    }
}
View Full Code Here


  @Test
  public void testType() throws Exception {
    Abdera abdera = Abdera.getInstance();
     Feature feature = abdera.getFactory().newElement(FeaturesHelper.FEATURE);
     feature.addType("image/jpg","image/gif","image/png","image/*");
     String[] types = feature.getTypes();
     assertEquals(1,types.length);
     assertEquals("image/*", types[0]);
  }
}
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.