Search in sources :

Example 1 with HttpMethod

use of org.apache.geode.management.internal.web.http.HttpMethod in project geode by apache.

the class LinkTest method shouldBeMockable.

@Test
public void shouldBeMockable() throws Exception {
    Link mockLink = mock(Link.class);
    URI href = null;
    HttpMethod method = HttpMethod.CONNECT;
    String relation = "";
    mockLink.setHref(href);
    mockLink.setMethod(method);
    mockLink.setRelation(relation);
    verify(mockLink, times(1)).setHref(href);
    verify(mockLink, times(1)).setMethod(method);
    verify(mockLink, times(1)).setRelation(relation);
}
Also used : URI(java.net.URI) HttpMethod(org.apache.geode.management.internal.web.http.HttpMethod) UnitTest(org.apache.geode.test.junit.categories.UnitTest) Test(org.junit.Test)

Aggregations

URI (java.net.URI)1 HttpMethod (org.apache.geode.management.internal.web.http.HttpMethod)1 UnitTest (org.apache.geode.test.junit.categories.UnitTest)1 Test (org.junit.Test)1