@Test public void checkExecutionWithLogCallAndArguments() { execution.executeWithLog(computationManager, input); Mockito.verify(factory, Mockito.times(1)) .create(same(network), same(detector), same(filter), same(computationManager), anyInt()); Mockito.verify(analysis, Mockito.times(1)) .runWithLog(eq("variantId"), same(parameters), same(contingencies)); }
@Override public CompletableFuture<SecurityAnalysisResultWithLog> executeWithLog(ComputationManager computationManager, SecurityAnalysisExecutionInput data) { SecurityAnalysisInput input = buildInput(data); SecurityAnalysis securityAnalysis = buildSecurityAnalysis(input, computationManager); return securityAnalysis.runWithLog(input.getNetworkVariant().getVariantId(), input.getParameters(), input.getContingenciesProvider()); }
SecurityAnalysisExecutionImpl implements SecurityAnalysisExecution { @Override public CompletableFuture<SecurityAnalysisResultWithLog> executeWithLog(ComputationManager computationManager, SecurityAnalysisExecutionInput data) { SecurityAnalysisInput input = buildInput(data); SecurityAnalysis securityAnalysis = buildSecurityAnalysis(input, computationManager); return securityAnalysis.runWithLog(input.getNetworkVariant().getVariantId(), input.getParameters(), input.getContingenciesProvider()); } }
SecurityAnalysisExecutionImpl implements SecurityAnalysisExecution { @Override public CompletableFuture<SecurityAnalysisResultWithLog> executeWithLog(ComputationManager computationManager, SecurityAnalysisExecutionInput data) { SecurityAnalysisInput input = buildInput(data); SecurityAnalysis securityAnalysis = buildSecurityAnalysis(input, computationManager); return securityAnalysis.runWithLog(input.getNetworkVariant().getVariantId(), input.getParameters(), input.getContingenciesProvider()); } SecurityAnalysisExecutionImpl(SecurityAnalysisFactory factory);  SecurityAnalysisExecutionImpl(SecurityAnalysisFactory factory, SecurityAnalysisInputBuildStrategy inputBuildStrategy); }
SecurityAnalysisExecutionImpl implements SecurityAnalysisExecution { @Override public CompletableFuture<SecurityAnalysisResultWithLog> executeWithLog(ComputationManager computationManager, SecurityAnalysisExecutionInput data) { SecurityAnalysisInput input = buildInput(data); SecurityAnalysis securityAnalysis = buildSecurityAnalysis(input, computationManager); return securityAnalysis.runWithLog(input.getNetworkVariant().getVariantId(), input.getParameters(), input.getContingenciesProvider()); } SecurityAnalysisExecutionImpl(SecurityAnalysisFactory factory);  SecurityAnalysisExecutionImpl(SecurityAnalysisFactory factory, SecurityAnalysisInputBuildStrategy inputBuildStrategy); @Override CompletableFuture<SecurityAnalysisResult> execute(ComputationManager computationManager, SecurityAnalysisExecutionInput data); @Override CompletableFuture<SecurityAnalysisResultWithLog> executeWithLog(ComputationManager computationManager, SecurityAnalysisExecutionInput data); }
SecurityAnalysisExecutionImpl implements SecurityAnalysisExecution { @Override public CompletableFuture<SecurityAnalysisResultWithLog> executeWithLog(ComputationManager computationManager, SecurityAnalysisExecutionInput data) { SecurityAnalysisInput input = buildInput(data); SecurityAnalysis securityAnalysis = buildSecurityAnalysis(input, computationManager); return securityAnalysis.runWithLog(input.getNetworkVariant().getVariantId(), input.getParameters(), input.getContingenciesProvider()); } SecurityAnalysisExecutionImpl(SecurityAnalysisFactory factory);  SecurityAnalysisExecutionImpl(SecurityAnalysisFactory factory, SecurityAnalysisInputBuildStrategy inputBuildStrategy); @Override CompletableFuture<SecurityAnalysisResult> execute(ComputationManager computationManager, SecurityAnalysisExecutionInput data); @Override CompletableFuture<SecurityAnalysisResultWithLog> executeWithLog(ComputationManager computationManager, SecurityAnalysisExecutionInput data);  }