Package org.gstreamer.query

Examples of org.gstreamer.query.PositionQuery$API


   * Example test method
   */

  @Test
  public void simple() {
    _stem_ impl = new _stem_Impl();
   
    impl.say("Hello World");
  }
View Full Code Here


        assertTrue("Returned query not instance of PositionQuery", query instanceof PositionQuery);
    }
    @Test
    public void getPositionQueryFormat() {
        for (Format format : Format.values()) {
            PositionQuery query = new PositionQuery(format);
            assertEquals("Format returned from getFormat() is incorrect" , format, query.getFormat());
        }
    }
View Full Code Here

            assertEquals("Format returned from getFormat() is incorrect" , format, query.getFormat());
        }
    }
    @Test
    public void getPosition() {
        PositionQuery query = new PositionQuery(Format.TIME);
        final long POSITION = 0xdeadbeef;
        query.setPosition(Format.TIME, POSITION);
        assertEquals("Incorrect position returned", POSITION, query.getPosition());
    }
View Full Code Here

        query.setPosition(Format.TIME, POSITION);
        assertEquals("Incorrect position returned", POSITION, query.getPosition());
    }
    @Test
    public void positionQueryToString() {
        PositionQuery query = new PositionQuery(Format.TIME);
        query.setPosition(Format.TIME, 1234);
        String s = query.toString();
        assertTrue("toString() did not return format", s.contains("format=TIME"));
        assertTrue("toString() did not return position", s.contains("position=1234"));
    }
View Full Code Here

TOP

Related Classes of org.gstreamer.query.PositionQuery$API

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.