Package serializers.protobuf.MediaContentHolder

Examples of serializers.protobuf.MediaContentHolder.Image


  public void checkAllFields(MediaContent content) {
      checkMediaField(content);
      List<Image> list = content.getImageList();
      assetEquals(2, list.size());
     
      Image image = list.get(0);
      assetEquals(image.getUri(), "http://javaone.com/keynote_large.jpg");
      assetEquals(image.getSize(), Size.LARGE);
      assetEquals(image.getTitle(), "Javaone Keynote");
      assetEquals(image.getWidth(), 0);
      assetEquals(image.getHeight(), 0);
     
      image = list.get(1);
      assetEquals(image.getUri(), "http://javaone.com/keynote_thumbnail.jpg");
      assetEquals(image.getSize(), Size.SMALL);
      assetEquals(image.getTitle(), "Javaone Keynote");
      assetEquals(image.getWidth(), 0);
      assetEquals(image.getHeight(), 0);
  }
View Full Code Here

TOP

Related Classes of serializers.protobuf.MediaContentHolder.Image

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.