@Test public void testGetLastOperationProgressJsonError() { doReturn(OPERATION_PROGRESS_JSON).when(mockEnvironmentFieldRetriever).getField(HandlerField.LAST_PROGRESS.name()); doThrow(new JsonHelperException("")).when(mockJsonHelper).getObjectFromString(anyString(), any()); OperationProgress lastOperationProgress = launchDataWrapper.getLastOperationProgress(); verify(mockJsonHelper, times(1)).getObjectFromString(anyString(), any()); Assert.assertNull(lastOperationProgress); }
@Override public OperationProgress getLastOperationProgress() { return getLastProgressObject(OperationProgress.class); }
DefaultLaunchDataWrapper extends LaunchDataWrapper { @Override public OperationProgress getLastOperationProgress() { return getLastProgressObject(OperationProgress.class); } }
DefaultLaunchDataWrapper extends LaunchDataWrapper { @Override public OperationProgress getLastOperationProgress() { return getLastProgressObject(OperationProgress.class); } DefaultLaunchDataWrapper(String[] args);  DefaultLaunchDataWrapper(ArgumentRetriever argumentRetriever, EnvironmentFieldRetriever environmentRetriever, PropertyRetriever propertyRetriever);  DefaultLaunchDataWrapper(ArgumentRetriever argumentRetriever); }
DefaultLaunchDataWrapper extends LaunchDataWrapper { @Override public OperationProgress getLastOperationProgress() { return getLastProgressObject(OperationProgress.class); } DefaultLaunchDataWrapper(String[] args);  DefaultLaunchDataWrapper(ArgumentRetriever argumentRetriever, EnvironmentFieldRetriever environmentRetriever, PropertyRetriever propertyRetriever);  DefaultLaunchDataWrapper(ArgumentRetriever argumentRetriever); @Override String getPayload(); @Override OperationProgress getLastOperationProgress(); @Override T getLastProgressObject(Class<T> objectClass); @Override T getLastOperationProgressParam(String paramName, Class<T> objectClass); void setJsonHelper(JsonHelper jsonHelper); }
DefaultLaunchDataWrapper extends LaunchDataWrapper { @Override public OperationProgress getLastOperationProgress() { return getLastProgressObject(OperationProgress.class); } DefaultLaunchDataWrapper(String[] args);  DefaultLaunchDataWrapper(ArgumentRetriever argumentRetriever, EnvironmentFieldRetriever environmentRetriever, PropertyRetriever propertyRetriever);  DefaultLaunchDataWrapper(ArgumentRetriever argumentRetriever); @Override String getPayload(); @Override OperationProgress getLastOperationProgress(); @Override T getLastProgressObject(Class<T> objectClass); @Override T getLastOperationProgressParam(String paramName, Class<T> objectClass); void setJsonHelper(JsonHelper jsonHelper);  }