Package org.apache.abdera.ext.features

Examples of org.apache.abdera.ext.features.Feature


    }

    @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

  }
 

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

TOP

Related Classes of org.apache.abdera.ext.features.Feature

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.