test_class.file: gazeplay-commons/src/test/java/net/gazeplay/commons/utils/games/ResourceFileManagerTest.java
test_class.identifier: ResourceFileManagerTest
test_case.body: @Test
      void canGetAllImmediateFoldersInResourcePackage() {
          String sep = File.separator;
  
          Set<String> set = ResourceFileManager.getResourceFolders("data/biboule/images");
          assert (set.iterator().next().equals(String.format("data%1$sbiboule%1$simages", sep)));
          set = ResourceFileManager.getResourceFolders("data/common/default/images");
          assert (set.iterator().next().equals(String.format("data%1$scommon%1$sdefault%1$simages", sep)));
          set = ResourceFileManager.getResourceFolders("data");
          assert (set.contains(String.format("data%1$scommon%1$sdefault%1$simages", sep)));
          assert (set.contains(String.format("data%1$sbiboule%1$simages", sep)));
      }
test_case.class_method_signature: ResourceFileManagerTest.canGetAllImmediateFoldersInResourcePackage()
test_case.full_signature: @Test void canGetAllImmediateFoldersInResourcePackage()
test_case.identifier: canGetAllImmediateFoldersInResourcePackage
test_case.invocations: getResourceFolders equals next iterator format getResourceFolders equals next iterator format getResourceFolders contains format contains format
test_case.modifiers: @Test
test_case.parameters: ()
test_case.return: void
test_case.signature: void canGetAllImmediateFoldersInResourcePackage()
focal_class.file: gazeplay-commons/src/main/java/net/gazeplay/commons/utils/games/ResourceFileManager.java
focal_class.identifier: ResourceFileManager
focal_class.class_method_signature: ResourceFileManager.getResourcePaths(String path)
focal_class.full_signature: public static Set<String> getResourcePaths(String path)
focal_class.identifier: getResourcePaths
focal_class.modifiers: public static
focal_class.parameters: (String path)
focal_class.return: Set<String>
focal_class.signature: Set<String> getResourcePaths(String path)
focal_class.class_method_signature: ResourceFileManager.getResourceFolders(String path)
focal_class.full_signature: public static Set<String> getResourceFolders(String path)
focal_class.identifier: getResourceFolders
focal_class.modifiers: public static
focal_class.parameters: (String path)
focal_class.return: Set<String>
focal_class.signature: Set<String> getResourceFolders(String path)
focal_class.class_method_signature: ResourceFileManager.resourceExists(String location)
focal_class.full_signature: public static boolean resourceExists(String location)
focal_class.identifier: resourceExists
focal_class.modifiers: public static
focal_class.parameters: (String location)
focal_class.return: boolean
focal_class.signature: boolean resourceExists(String location)
focal_class.class_method_signature: ResourceFileManager.getMatchingResources(String location)
focal_class.full_signature: public static Set<String> getMatchingResources(String location)
focal_class.identifier: getMatchingResources
focal_class.modifiers: public static
focal_class.parameters: (String location)
focal_class.return: Set<String>
focal_class.signature: Set<String> getMatchingResources(String location)
focal_class.class_method_signature: ResourceFileManager.createExtensionRegex(Set<String> fileExtensions)
focal_class.full_signature: static String createExtensionRegex(Set<String> fileExtensions)
focal_class.identifier: createExtensionRegex
focal_class.modifiers: static
focal_class.parameters: (Set<String> fileExtensions)
focal_class.return: String
focal_class.signature: String createExtensionRegex(Set<String> fileExtensions)
focal_method.body: public static Set<String> getResourceFolders(String path) {
          Set<String> resources = getResourcePaths(path);
          Set<String> result = new HashSet<>();
          for (String r : resources) {
              String parent = new File(r).getParent();
              result.add(parent);
          }
  
          return result;
      }
focal_method.class_method_signature: ResourceFileManager.getResourceFolders(String path)
focal_method.full_signature: public static Set<String> getResourceFolders(String path)
focal_method.identifier: getResourceFolders
focal_method.invocations: getResourcePaths getParent add
focal_method.modifiers: public static
focal_method.parameters: (String path)
focal_method.return: Set<String>
focal_method.signature: Set<String> getResourceFolders(String path)