Package org.apache.clerezza.platform.content.representations.core

Examples of org.apache.clerezza.platform.content.representations.core.ThumbnailService


 
  @Test
  public void thumbnailConditionTest() throws IOException {
    ByteArrayOutputStream bous = new ByteArrayOutputStream();
    OutputStream out = new ConditionalOutputStream(bous,
        new ThumbnailCondition(new ThumbnailService() {

      @Override
      public UriRef getThumbnailUri(UriRef infoBitUri, Integer width, Integer height, boolean exact) {
        Assert.assertEquals(uri, infoBitUri);
        Assert.assertEquals(Integer.valueOf(700), width);
View Full Code Here

TOP

Related Classes of org.apache.clerezza.platform.content.representations.core.ThumbnailService

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.