@Test public void should_start_vnc_by_default() { when(seleniumContainers.getVncContainerName()).thenReturn("vnc"); when(cubeRegistry.getCube("vnc")).thenReturn(cube); VncRecorderLifecycleManager vncRecorderLifecycleManager = new VncRecorderLifecycleManager(); vncRecorderLifecycleManager.seleniumContainersInstance = new Instance<SeleniumContainers>() { @Override public SeleniumContainers get() { return seleniumContainers; } }; vncRecorderLifecycleManager.startRecording(null, CubeDroneConfiguration.fromMap(new HashMap<String, String>()), cubeRegistry); verify(cube).create(); verify(cube).start(); }
public void startRecording(@Observes Before beforeTestMethod, CubeDroneConfiguration cubeDroneConfiguration, CubeRegistry cubeRegistry) { try { if (cubeDroneConfiguration.isRecording()) { initVncCube(cubeRegistry); vnc.create(); vnc.start(); } } catch (CubeControlException e) { Logger.getLogger(VncRecorderLifecycleManager.class.getName()).log(Level.WARNING, "Failed to start vnc", e); } }
VncRecorderLifecycleManager { public void startRecording(@Observes Before beforeTestMethod, CubeDroneConfiguration cubeDroneConfiguration, CubeRegistry cubeRegistry) { try { if (cubeDroneConfiguration.isRecording()) { initVncCube(cubeRegistry); vnc.create(); vnc.start(); } } catch (CubeControlException e) { Logger.getLogger(VncRecorderLifecycleManager.class.getName()).log(Level.WARNING, "Failed to start vnc", e); } } }
VncRecorderLifecycleManager { public void startRecording(@Observes Before beforeTestMethod, CubeDroneConfiguration cubeDroneConfiguration, CubeRegistry cubeRegistry) { try { if (cubeDroneConfiguration.isRecording()) { initVncCube(cubeRegistry); vnc.create(); vnc.start(); } } catch (CubeControlException e) { Logger.getLogger(VncRecorderLifecycleManager.class.getName()).log(Level.WARNING, "Failed to start vnc", e); } }  }
VncRecorderLifecycleManager { public void startRecording(@Observes Before beforeTestMethod, CubeDroneConfiguration cubeDroneConfiguration, CubeRegistry cubeRegistry) { try { if (cubeDroneConfiguration.isRecording()) { initVncCube(cubeRegistry); vnc.create(); vnc.start(); } } catch (CubeControlException e) { Logger.getLogger(VncRecorderLifecycleManager.class.getName()).log(Level.WARNING, "Failed to start vnc", e); } }  void startRecording(@Observes Before beforeTestMethod, CubeDroneConfiguration cubeDroneConfiguration,
        CubeRegistry cubeRegistry); void stopRecording(@Observes After afterTestMethod, TestResult testResult,
        CubeDroneConfiguration cubeDroneConfiguration, SeleniumContainers seleniumContainers); }
VncRecorderLifecycleManager { public void startRecording(@Observes Before beforeTestMethod, CubeDroneConfiguration cubeDroneConfiguration, CubeRegistry cubeRegistry) { try { if (cubeDroneConfiguration.isRecording()) { initVncCube(cubeRegistry); vnc.create(); vnc.start(); } } catch (CubeControlException e) { Logger.getLogger(VncRecorderLifecycleManager.class.getName()).log(Level.WARNING, "Failed to start vnc", e); } }  void startRecording(@Observes Before beforeTestMethod, CubeDroneConfiguration cubeDroneConfiguration,
        CubeRegistry cubeRegistry); void stopRecording(@Observes After afterTestMethod, TestResult testResult,
        CubeDroneConfiguration cubeDroneConfiguration, SeleniumContainers seleniumContainers);  }