Search in sources :

Example 6 with ClientProvider

use of com.yahoo.jdisc.service.ClientProvider in project vespa by vespa-engine.

the class NonWorkingClientTestCase method requireThatHandleTimeoutThrowsException.

@Test
public void requireThatHandleTimeoutThrowsException() {
    ClientProvider client = new NonWorkingClientProvider();
    try {
        client.handleTimeout(null, null);
        fail();
    } catch (UnsupportedOperationException e) {
    }
}
Also used : ClientProvider(com.yahoo.jdisc.service.ClientProvider) Test(org.junit.Test)

Example 7 with ClientProvider

use of com.yahoo.jdisc.service.ClientProvider in project vespa by vespa-engine.

the class NonWorkingClientTestCase method requireThatStartDoesNotThrow.

@Test
public void requireThatStartDoesNotThrow() {
    ClientProvider client = new NonWorkingClientProvider();
    client.start();
}
Also used : ClientProvider(com.yahoo.jdisc.service.ClientProvider) Test(org.junit.Test)

Aggregations

ClientProvider (com.yahoo.jdisc.service.ClientProvider)7 Test (org.junit.Test)6 ComponentId (com.yahoo.component.ComponentId)1 JdiscBindingsConfig (com.yahoo.container.jdisc.JdiscBindingsConfig)1 Handlers (com.yahoo.container.jdisc.JdiscBindingsConfig.Handlers)1 HashMap (java.util.HashMap)1 CoreMatchers.containsString (org.hamcrest.CoreMatchers.containsString)1