test_class.declarator: PLUGIN_ID = "ANY_PLUGIN_ID"
test_class.modifier: final static
test_class.original_string: final static String PLUGIN_ID = "ANY_PLUGIN_ID";
test_class.type: String
test_class.var_name: PLUGIN_ID
test_class.declarator: rootPath
test_class.original_string: Path rootPath;
test_class.type: Path
test_class.var_name: rootPath
test_class.declarator: directories = "sublevel2/sublevel3/sublevel4"
test_class.modifier: final
test_class.original_string: final String directories = "sublevel2/sublevel3/sublevel4";
test_class.type: String
test_class.var_name: directories
test_class.declarator: files = {
              "rootPackage.jar",
              "file0.txt",
              "sublevel2/package2.jar",
              "sublevel2/file.txt",
              "sublevel2/sublevel3/package3.jar",
              "sublevel2/sublevel3/file.json",
              "sublevel2/sublevel3/sublevel4/package4.jar",
              "sublevel2/sublevel3/sublevel4/file.txt",
      }
test_class.original_string: String[] files = {
              "rootPackage.jar",
              "file0.txt",
              "sublevel2/package2.jar",
              "sublevel2/file.txt",
              "sublevel2/sublevel3/package3.jar",
              "sublevel2/sublevel3/file.json",
              "sublevel2/sublevel3/sublevel4/package4.jar",
              "sublevel2/sublevel3/sublevel4/file.txt",
      };
test_class.type: String[]
test_class.var_name: files
test_class.file: nicobar-core/src/test/java/com/netflix/nicobar/core/plugin/ScriptCompilerPluginSpecTest.java
test_class.identifier: ScriptCompilerPluginSpecTest
test_case.body: @Test
      public void testAddRuntimeResources() throws IOException {
  
          ScriptCompilerPluginSpec pluginSpec = new ScriptCompilerPluginSpec.Builder(PLUGIN_ID)
                  .addRuntimeResources(ImmutableSet.of(
                          Paths.get(rootPath.toString(), files[0]),
                          Paths.get(rootPath.toString(), files[1]),
                          Paths.get(rootPath.toString(), files[2])
                  ))
                  .build();
          assertEquals(3, pluginSpec.getRuntimeResources().size());
  
  
          // pure jars + recursively = true
          pluginSpec = new ScriptCompilerPluginSpec.Builder(PLUGIN_ID)
                  .addRuntimeResources(rootPath, Collections.singleton("jar"), true)
                  .build();
          assertEquals(4, pluginSpec.getRuntimeResources().size());
  
  
          // files "txt" + recursively = false
          pluginSpec = new ScriptCompilerPluginSpec.Builder(PLUGIN_ID)
                  .addRuntimeResources(rootPath, Collections.singleton("txt"), false)
                  .build();
          assertEquals(1, pluginSpec.getRuntimeResources().size());
          assertTrue(pluginSpec.getRuntimeResources().iterator().next().endsWith("file0.txt"));
  
  
          // files "txt", "json" + recursively = true
          pluginSpec = new ScriptCompilerPluginSpec.Builder(PLUGIN_ID)
                  .addRuntimeResources(rootPath, ImmutableSet.of("txt", "json"), true)
                  .build();
          assertEquals(4, pluginSpec.getRuntimeResources().size());
      }
test_case.class_method_signature: ScriptCompilerPluginSpecTest.testAddRuntimeResources()
test_case.full_signature: @Test public void testAddRuntimeResources()
test_case.identifier: testAddRuntimeResources
test_case.invocations: build addRuntimeResources of get toString get toString get toString assertEquals size getRuntimeResources build addRuntimeResources singleton assertEquals size getRuntimeResources build addRuntimeResources singleton assertEquals size getRuntimeResources assertTrue endsWith next iterator getRuntimeResources build addRuntimeResources of assertEquals size getRuntimeResources
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testAddRuntimeResources()
focal_class.declarator: pluginId
focal_class.modifier: private final
focal_class.original_string: private final String pluginId;
focal_class.type: String
focal_class.var_name: pluginId
focal_class.declarator: runtimeResources
focal_class.modifier: private final
focal_class.original_string: private final Set<Path> runtimeResources;
focal_class.type: Set<Path>
focal_class.var_name: runtimeResources
focal_class.declarator: pluginClassName
focal_class.modifier: private final
focal_class.original_string: private final String pluginClassName;
focal_class.type: String
focal_class.var_name: pluginClassName
focal_class.declarator: pluginMetadata
focal_class.modifier: private final
focal_class.original_string: private final Map<String, String> pluginMetadata;
focal_class.type: Map<String, String>
focal_class.var_name: pluginMetadata
focal_class.declarator: compilerParameters
focal_class.modifier: private final
focal_class.original_string: private final Map<String, Object> compilerParameters;
focal_class.type: Map<String, Object>
focal_class.var_name: compilerParameters
focal_class.declarator: moduleDependencies
focal_class.modifier: private final
focal_class.original_string: private final Set<ModuleId> moduleDependencies;
focal_class.type: Set<ModuleId>
focal_class.var_name: moduleDependencies
focal_class.file: nicobar-core/src/main/java/com/netflix/nicobar/core/plugin/ScriptCompilerPluginSpec.java
focal_class.identifier: ScriptCompilerPluginSpec
focal_class.class_method_signature: ScriptCompilerPluginSpec.ScriptCompilerPluginSpec(String pluginId, Set<ModuleId> moduleDependencies, Set<Path> runtimeResources, String pluginClassName, Map<String, String> pluginMetadata, Map<String, Object> compilerParams)
focal_class.full_signature: protected  ScriptCompilerPluginSpec(String pluginId, Set<ModuleId> moduleDependencies, Set<Path> runtimeResources, String pluginClassName, Map<String, String> pluginMetadata, Map<String, Object> compilerParams)
focal_class.identifier: ScriptCompilerPluginSpec
focal_class.modifiers: protected
focal_class.parameters: (String pluginId, Set<ModuleId> moduleDependencies, Set<Path> runtimeResources, String pluginClassName, Map<String, String> pluginMetadata, Map<String, Object> compilerParams)
focal_class.signature:  ScriptCompilerPluginSpec(String pluginId, Set<ModuleId> moduleDependencies, Set<Path> runtimeResources, String pluginClassName, Map<String, String> pluginMetadata, Map<String, Object> compilerParams)
focal_class.class_method_signature: ScriptCompilerPluginSpec.getPluginId()
focal_class.full_signature: public String getPluginId()
focal_class.identifier: getPluginId
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getPluginId()
focal_class.class_method_signature: ScriptCompilerPluginSpec.getRuntimeResources()
focal_class.full_signature: public Set<Path> getRuntimeResources()
focal_class.identifier: getRuntimeResources
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Set<Path>
focal_class.signature: Set<Path> getRuntimeResources()
focal_class.class_method_signature: ScriptCompilerPluginSpec.getModuleDependencies()
focal_class.full_signature: public Set<ModuleId> getModuleDependencies()
focal_class.identifier: getModuleDependencies
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Set<ModuleId>
focal_class.signature: Set<ModuleId> getModuleDependencies()
focal_class.class_method_signature: ScriptCompilerPluginSpec.getPluginMetadata()
focal_class.full_signature: public Map<String, String> getPluginMetadata()
focal_class.identifier: getPluginMetadata
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Map<String, String>
focal_class.signature: Map<String, String> getPluginMetadata()
focal_class.class_method_signature: ScriptCompilerPluginSpec.getCompilerParams()
focal_class.full_signature: public Map<String, Object> getCompilerParams()
focal_class.identifier: getCompilerParams
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Map<String, Object>
focal_class.signature: Map<String, Object> getCompilerParams()
focal_class.class_method_signature: ScriptCompilerPluginSpec.getPluginClassName()
focal_class.full_signature: public String getPluginClassName()
focal_class.identifier: getPluginClassName
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getPluginClassName()
focal_method.body: public Set<Path> getRuntimeResources() {
          return runtimeResources;
      }
focal_method.class_method_signature: ScriptCompilerPluginSpec.getRuntimeResources()
focal_method.full_signature: public Set<Path> getRuntimeResources()
focal_method.identifier: getRuntimeResources
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: Set<Path>
focal_method.signature: Set<Path> getRuntimeResources()