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);
}
Aggregations