test_class.declarator: parser = new YamlFixtureParser()
test_class.original_string: YamlFixtureParser parser = new YamlFixtureParser();
test_class.type: YamlFixtureParser
test_class.var_name: parser
test_class.file: beanmother-core/src/test/java/io/beanmother/core/loader/parser/YamlFixtureParserTest.java
test_class.identifier: YamlFixtureParserTest
test_case.body: @Test
      public void testParse() throws IOException, URISyntaxException {
          URI uri = ClassUtils.getDefaultClassLoader().getResource("fixtures/this.yml").toURI();
          String fixtureStr = new String(Files.readAllBytes(Paths.get(uri)));
  
          Map<String, FixtureMap> fixtureMaps = parser.parse(fixtureStr);
  
          FixtureMap beanmother = fixtureMaps.get("beanmother");
          assertTrue(beanmother.isRoot());
          assertEquals(beanmother.getFixtureName(), "beanmother");
  
          assertTrue(beanmother.get("id") instanceof FixtureValue);
          assertEquals(beanmother.get("id"), new FixtureValue(1));
          assertEquals(beanmother.get("title"), new FixtureValue("beanmother"));
          assertEquals(beanmother.get("url"), new FixtureValue("https://github.com/keepcosmos/beanmother"));
          assertTrue(beanmother.get("authors") instanceof FixtureList);
      }
test_case.class_method_signature: YamlFixtureParserTest.testParse()
test_case.full_signature: @Test public void testParse()
test_case.identifier: testParse
test_case.invocations: toURI getResource getDefaultClassLoader readAllBytes get parse get assertTrue isRoot assertEquals getFixtureName assertTrue get assertEquals get assertEquals get assertEquals get assertTrue get
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testParse()
focal_class.file: beanmother-core/src/main/java/io/beanmother/core/loader/parser/YamlFixtureParser.java
focal_class.identifier: YamlFixtureParser
focal_class.interfaces: implements FixtureParser
focal_class.class_method_signature: YamlFixtureParser.parse(String fixture)
focal_class.full_signature: @SuppressWarnings("unchecked") @Override public Map<String, FixtureMap> parse(String fixture)
focal_class.identifier: parse
focal_class.modifiers: @SuppressWarnings("unchecked") @Override public
focal_class.parameters: (String fixture)
focal_class.return: Map<String, FixtureMap>
focal_class.signature: Map<String, FixtureMap> parse(String fixture)
focal_class.class_method_signature: YamlFixtureParser.buildYaml()
focal_class.full_signature: private Yaml buildYaml()
focal_class.identifier: buildYaml
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: Yaml
focal_class.signature: Yaml buildYaml()
focal_method.body: @SuppressWarnings("unchecked")
      @Override
      public Map<String, FixtureMap> parse(String fixture) {
          Map<String, ? extends Object> fixtures = buildYaml().loadAs(fixture, Map.class);;
          Map<String, FixtureMap> fixtureMaps = new HashMap<>();
  
          for (String key : fixtures.keySet()) {
              if (fixtures.get(key) instanceof Map) {
                  FixtureMap fixtureMap = FixtureTemplateWrapper.wrap((Map) fixtures.get(key), key, null);
                  fixtureMap.setRoot(true);
                  fixtureMaps.put(key, fixtureMap);
              } else {
                  throw new FixtureFormatException(key, " the root of fixture data should be key - value");
              }
          }
  
          return fixtureMaps;
      }
focal_method.class_method_signature: YamlFixtureParser.parse(String fixture)
focal_method.full_signature: @SuppressWarnings("unchecked") @Override public Map<String, FixtureMap> parse(String fixture)
focal_method.identifier: parse
focal_method.invocations: loadAs buildYaml keySet get wrap get setRoot put
focal_method.modifiers: @SuppressWarnings("unchecked") @Override public
focal_method.parameters: (String fixture)
focal_method.return: Map<String, FixtureMap>
focal_method.signature: Map<String, FixtureMap> parse(String fixture)