@Before
  public void setup() {
    FOO = mock(ServiceEndPoint.class);
    when(FOO.getId()).thenReturn("foo");

    FOO2 = mock(ServiceEndPoint.class);
    when(FOO2.getId()).thenReturn("foo");
    when(FOO2.getPayload()).thenReturn("2");

    BAR = mock(ServiceEndPoint.class);
    when(BAR.getId()).thenReturn("bar");
  }
示例#2
0
 public DictionaryClient(ServiceEndPoint endPoint, Client jerseyClient) {
   this(Payload.valueOf(endPoint.getPayload()).getServiceUrl(), jerseyClient);
 }