test_class.file: gazeplay-games-commons/src/test/java/net/gazeplay/commons/gamevariants/difficulty/SourceSetTest.java
test_class.identifier: SourceSetTest
test_case.body: @Test
      void givenValidFile_givenValidDifficulty_shouldReturnList() throws FileNotFoundException {
          SourceSet sourceSet = new SourceSet("source-sets.json");
          Set<String> dirs = sourceSet.getResources(Difficulty.NORMAL);
  
          assertTrue(dirs.contains("grey"));
      }
test_case.class_method_signature: SourceSetTest.givenValidFile_givenValidDifficulty_shouldReturnList()
test_case.full_signature: @Test void givenValidFile_givenValidDifficulty_shouldReturnList()
test_case.identifier: givenValidFile_givenValidDifficulty_shouldReturnList
test_case.invocations: getResources assertTrue contains
test_case.modifiers: @Test
test_case.parameters: ()
test_case.return: void
test_case.signature: void givenValidFile_givenValidDifficulty_shouldReturnList()
focal_class.declarator: difficulties
focal_class.modifier: private final
focal_class.original_string: private final JsonObject difficulties;
focal_class.type: JsonObject
focal_class.var_name: difficulties
focal_class.file: gazeplay-games-commons/src/main/java/net/gazeplay/commons/gamevariants/difficulty/SourceSet.java
focal_class.identifier: SourceSet
focal_class.class_method_signature: SourceSet.SourceSet(String resourceFile)
focal_class.full_signature: public  SourceSet(String resourceFile)
focal_class.identifier: SourceSet
focal_class.modifiers: public
focal_class.parameters: (String resourceFile)
focal_class.signature:  SourceSet(String resourceFile)
focal_class.class_method_signature: SourceSet.getResources(Difficulty difficulty)
focal_class.full_signature: public Set<String> getResources(Difficulty difficulty)
focal_class.identifier: getResources
focal_class.modifiers: public
focal_class.parameters: (Difficulty difficulty)
focal_class.return: Set<String>
focal_class.signature: Set<String> getResources(Difficulty difficulty)
focal_method.body: public Set<String> getResources(Difficulty difficulty) {
          if (difficulties.has(difficulty.toString())) {
              Type setType = new TypeToken<Set<String>>() {
              }.getType();
              JsonElement element = difficulties.get(difficulty.toString());
              return new Gson().fromJson(element, setType);
          } else {
              return Collections.emptySet();
          }
      }
focal_method.class_method_signature: SourceSet.getResources(Difficulty difficulty)
focal_method.full_signature: public Set<String> getResources(Difficulty difficulty)
focal_method.identifier: getResources
focal_method.invocations: has toString getType get toString fromJson emptySet
focal_method.modifiers: public
focal_method.parameters: (Difficulty difficulty)
focal_method.return: Set<String>
focal_method.signature: Set<String> getResources(Difficulty difficulty)