Package org.seleniumhq.selenium.fluent

Examples of org.seleniumhq.selenium.fluent.Period.timeUnit()


public class PeriodTest {

    @Test
    public void testMillis() {
        Period period = Period.millis(123);
        assertThat(period.timeUnit(), equalTo(TimeUnit.MILLISECONDS));
        assertThat(period.howLong(), equalTo(123));
        assertThat(period.toString(), equalTo("millis(123)"));
    }

    @Test
View Full Code Here


    }

    @Test
    public void testSecs() {
        Period period = Period.secs(456);
        assertThat(period.timeUnit(), equalTo(TimeUnit.SECONDS));
        assertThat(period.howLong(), equalTo(456));
        assertThat(period.toString(), equalTo("secs(456)"));
    }

    @Test
View Full Code Here

    }

    @Test
    public void testMins() {
        Period period = Period.mins(789);
        assertThat(period.timeUnit(), equalTo(TimeUnit.MINUTES));
        assertThat(period.howLong(), equalTo(789));
        assertThat(period.toString(), equalTo("mins(789)"));

    }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.