コード例 #1
0
  private void testFillRemoteViewerUrl(
      String toRepalce, String baseUrl, String resourceUrl, String expected) {
    ConsoleOptions options = new ConsoleOptions();
    when(getQueryParameters().getOptions()).thenReturn(getValidOptions(GraphicsType.SPICE));
    getQuery().fillRemoteViewerUrl(options, toRepalce, baseUrl, resourceUrl);

    assertEquals(expected, options.getRemoteViewerNewerVersionUrl());
  }
コード例 #2
0
 private ConsoleOptions getValidOptions(GraphicsType graphicsType) {
   ConsoleOptions options = new ConsoleOptions(graphicsType);
   options.setVmId(Guid.Empty);
   return options;
 }