Package de.bitzeche.video.transcoding.zencoder.job

Examples of de.bitzeche.video.transcoding.zencoder.job.ZencoderWatermark


public class ZencoderWatermarkTest {

  @Test
  public void testWithoutOptions() throws ParserConfigurationException {
    ZencoderWatermark watermark = new ZencoderWatermark("http://url/");
    String doc = StringUtil.stripSpacesAndLineBreaksFrom( watermark );
    String expected = "<?xmlversion=\"1.0\"encoding=\"UTF-8\"?><watermark><url>http://url/</url><x>-10</x><y>-10</y></watermark>";
    // System.out.println(doc);
    Assert.assertEquals(doc, expected);
  }
View Full Code Here


    Assert.assertEquals(doc, expected);
  }

  @Test
  public void testWithOptions() throws ParserConfigurationException {
    ZencoderWatermark watermark = new ZencoderWatermark("http://url/");
    watermark.setHeight(10);
    watermark.setWidth(200);
    watermark.setX("21%");
    watermark.setY("12345");

    String doc = StringUtil.stripSpacesAndLineBreaksFrom( watermark );
    String expected = "<?xmlversion=\"1.0\"encoding=\"UTF-8\"?><watermark><url>http://url/</url><x>21%</x><y>12345</y><width>200</width><height>10</height></watermark>";
    // System.out.println(doc);
    Assert.assertEquals(doc, expected);
View Full Code Here

  }

  @Test
  public void createJobAndCheckXML() {

    ZencoderWatermark watermark = new ZencoderWatermark("http://url/");
    ZencoderWatermark watermark2 = new ZencoderWatermark("http://url/");
    ZencoderNotification notif = new ZencoderNotification("test@test.de");
    ZencoderNotification notif2 = new ZencoderNotification("test2@test.de");
    ZencoderThumbnail thumb = new ZencoderThumbnail();
    thumb.setInterval(10);
    List<ZencoderS3AccessControlRight> rights = new ArrayList<ZencoderS3AccessControlRight>();
View Full Code Here

TOP

Related Classes of de.bitzeche.video.transcoding.zencoder.job.ZencoderWatermark

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.