test_class.declarator: javaExecutionEngine
test_class.modifier: @Autowired
      private
test_class.original_string: @Autowired
      private JavaExecutionEngine javaExecutionEngine;
test_class.type: JavaExecutionEngine
test_class.var_name: javaExecutionEngine
test_class.file: runtime-management/runtime-management-impl/src/test/java/io/cloudslang/runtime/impl/java/JavaExecutionCachedEngineTest.java
test_class.identifier: JavaExecutionCachedEngineTest
test_class.superclass: extends AbsExecutionCachedEngineTest
test_case.body: @Test
      public void testJavaExecutorReleasedAfterSuccessExecution() {
          final JavaExecutor javaExecutor = mock(JavaExecutor.class);
          JavaExecutionCachedEngine engine = new JavaExecutionCachedEngine() {
              public JavaExecutor allocateExecutor(Set<String> dependencies) {
                  return javaExecutor;
              }
          };
          engine.execute("", "", "", null);
          verify(javaExecutor).release();
      }
test_case.class_method_signature: JavaExecutionCachedEngineTest.testJavaExecutorReleasedAfterSuccessExecution()
test_case.full_signature: @Test public void testJavaExecutorReleasedAfterSuccessExecution()
test_case.identifier: testJavaExecutorReleasedAfterSuccessExecution
test_case.invocations: mock execute release verify
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testJavaExecutorReleasedAfterSuccessExecution()
focal_class.declarator: dependencyService
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private DependencyService dependencyService;
focal_class.type: DependencyService
focal_class.var_name: dependencyService
focal_class.declarator: cacheSize
focal_class.modifier: @Value("#{systemProperties['" + JavaExecutionConfigurationConsts.JAVA_EXECUTOR_CACHE_SIZE + "'] != null ? systemProperties['" + JavaExecutionConfigurationConsts.JAVA_EXECUTOR_CACHE_SIZE + "'] : " + JavaExecutionConfigurationConsts.JAVA_EXECUTOR_CACHE_DEFAULT_SIZE + "}")
      private
focal_class.original_string: @Value("#{systemProperties['" + JavaExecutionConfigurationConsts.JAVA_EXECUTOR_CACHE_SIZE + "'] != null ? systemProperties['" + JavaExecutionConfigurationConsts.JAVA_EXECUTOR_CACHE_SIZE + "'] : " + JavaExecutionConfigurationConsts.JAVA_EXECUTOR_CACHE_DEFAULT_SIZE + "}")
      private int cacheSize;
focal_class.type: int
focal_class.var_name: cacheSize
focal_class.file: runtime-management/runtime-management-impl/src/main/java/io/cloudslang/runtime/impl/java/JavaExecutionCachedEngine.java
focal_class.identifier: JavaExecutionCachedEngine
focal_class.interfaces: implements JavaExecutionEngine
focal_class.class_method_signature: JavaExecutionCachedEngine.execute(String dependency, String className, String methodName, JavaExecutionParametersProvider parametersProvider)
focal_class.full_signature: @Override public Object execute(String dependency, String className, String methodName, JavaExecutionParametersProvider parametersProvider)
focal_class.identifier: execute
focal_class.modifiers: @Override public
focal_class.parameters: (String dependency, String className, String methodName, JavaExecutionParametersProvider parametersProvider)
focal_class.return: Object
focal_class.signature: Object execute(String dependency, String className, String methodName, JavaExecutionParametersProvider parametersProvider)
focal_class.class_method_signature: JavaExecutionCachedEngine.getDependencyService()
focal_class.full_signature: @Override protected DependencyService getDependencyService()
focal_class.identifier: getDependencyService
focal_class.modifiers: @Override protected
focal_class.parameters: ()
focal_class.return: DependencyService
focal_class.signature: DependencyService getDependencyService()
focal_class.class_method_signature: JavaExecutionCachedEngine.getCacheSize()
focal_class.full_signature: @Override protected int getCacheSize()
focal_class.identifier: getCacheSize
focal_class.modifiers: @Override protected
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getCacheSize()
focal_class.class_method_signature: JavaExecutionCachedEngine.createNewExecutor(Set<String> filePaths)
focal_class.full_signature: @Override protected JavaExecutor createNewExecutor(Set<String> filePaths)
focal_class.identifier: createNewExecutor
focal_class.modifiers: @Override protected
focal_class.parameters: (Set<String> filePaths)
focal_class.return: JavaExecutor
focal_class.signature: JavaExecutor createNewExecutor(Set<String> filePaths)
focal_class.superclass: extends ExecutionCachedEngine<JavaExecutor>
focal_method.body: @Override
      public Object execute(String dependency, String className, String methodName, JavaExecutionParametersProvider parametersProvider) {
          JavaExecutor executor = allocateExecutor((dependency == null || dependency.isEmpty()) ? Sets.<String>newHashSet() :
                  Sets.newHashSet(dependency));
          try {
              return executor.execute(className, methodName, parametersProvider);
          } finally {
              releaseExecutor(executor);
          }
      }
focal_method.class_method_signature: JavaExecutionCachedEngine.execute(String dependency, String className, String methodName, JavaExecutionParametersProvider parametersProvider)
focal_method.full_signature: @Override public Object execute(String dependency, String className, String methodName, JavaExecutionParametersProvider parametersProvider)
focal_method.identifier: execute
focal_method.invocations: allocateExecutor isEmpty newHashSet newHashSet execute releaseExecutor
focal_method.modifiers: @Override public
focal_method.parameters: (String dependency, String className, String methodName, JavaExecutionParametersProvider parametersProvider)
focal_method.return: Object
focal_method.signature: Object execute(String dependency, String className, String methodName, JavaExecutionParametersProvider parametersProvider)