Package org.gstreamer.query

Examples of org.gstreamer.query.DurationQuery


        assertTrue("toString() did not return format", s.contains("format=TIME"));
        assertTrue("toString() did not return position", s.contains("position=1234"));
    }
    @Test
    public void newDurationQuery() {
        Query query = new DurationQuery(Format.TIME);
        assertNotNull("Query.newDuration returned null", query);
        assertTrue("Returned query not instance of DurationQuery", query instanceof DurationQuery);
    }
View Full Code Here


    }
   
    @Test
    public void getDurationQueryFormat() {
        for (Format format : Format.values()) {
            DurationQuery query = new DurationQuery(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 getDuration() {
        DurationQuery query = new DurationQuery(Format.TIME);
        final long DURATION = 0xdeadbeef;
        query.setDuration(Format.TIME, DURATION);
        assertEquals("Incorrect duration returned", DURATION, query.getDuration());
    }
View Full Code Here

        query.setDuration(Format.TIME, DURATION);
        assertEquals("Incorrect duration returned", DURATION, query.getDuration());
    }
    @Test
    public void durationQueryToString() {
        DurationQuery query = new DurationQuery(Format.TIME);
        query.setDuration(Format.TIME, 1234);
        String s = query.toString();
        assertTrue("toString() did not return format", s.contains("format=TIME"));
        assertTrue("toString() did not return duration", s.contains("duration=1234"));
    }
View Full Code Here

TOP

Related Classes of org.gstreamer.query.DurationQuery

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.