Package com.jcabi.github.Limit

Examples of com.jcabi.github.Limit.Throttled


     * @throws Exception if some problem inside
     */
    @Test(expected = IllegalStateException.class)
    public void throwsWhenResourceIsAbsent() throws Exception {
        final Limit limit = Mockito.mock(Limit.class);
        final Throttled throttled = new Throttled(limit, 23);
        Mockito.when(limit.json()).thenReturn(
            Json.createObjectBuilder().add("absent", "absentValue").build()
        );
        throttled.json();
    }
View Full Code Here

TOP

Related Classes of com.jcabi.github.Limit.Throttled

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.