test_class.file: beanmother-core/src/test/java/io/beanmother/core/loader/FixtureTemplateWrapperTest.java
test_class.identifier: FixtureTemplateWrapperTest
test_case.body: @Test
      public void testComplexMap() {
          Map<String, Object> map = new LinkedHashMap<>();
          map.put("date", new Date());
          map.put("string", "string");
  
          List<Object> list = new ArrayList<>();
          list.add("string-in-list");
  
          Map<String, Object> mapInList = new LinkedHashMap<>();
          mapInList.put("string-in-map-in-list", "string-in-map-in-list");
          mapInList.put("date-in-map-in-list", new Date());
          list.add(mapInList);
  
          list.add(new ArrayList<>());
  
          map.put("list", list);
  
          FixtureMap fixtureMap = FixtureTemplateWrapper.wrap(map, null, null);
  
          assertTrue(fixtureMap.get("date") instanceof FixtureValue);
          assertTrue(fixtureMap.get("string") instanceof FixtureValue);
          assertTrue(fixtureMap.get("list") instanceof FixtureList);
  
          FixtureList fixtureList = (FixtureList) fixtureMap.get("list");
          assertTrue(fixtureList.get(0) instanceof FixtureValue);
          assertTrue(fixtureList.get(1) instanceof FixtureMap);
          assertTrue(fixtureList.get(2) instanceof FixtureList);
  
          FixtureMap fixtureMapInList = (FixtureMap) fixtureList.get(1);
          assertTrue(fixtureMapInList.get("string-in-map-in-list") instanceof FixtureValue);
          assertTrue(fixtureMapInList.get("date-in-map-in-list") instanceof FixtureValue);
      }
test_case.class_method_signature: FixtureTemplateWrapperTest.testComplexMap()
test_case.full_signature: @Test public void testComplexMap()
test_case.identifier: testComplexMap
test_case.invocations: put put add put put add add put wrap assertTrue get assertTrue get assertTrue get get assertTrue get assertTrue get assertTrue get get assertTrue get assertTrue get
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testComplexMap()
focal_class.file: beanmother-core/src/main/java/io/beanmother/core/loader/FixtureTemplateWrapper.java
focal_class.identifier: FixtureTemplateWrapper
focal_class.class_method_signature: FixtureTemplateWrapper.wrap(Map<String, ? extends Object> source, String fixtureName, FixtureTemplate parent)
focal_class.full_signature: @SuppressWarnings("unchecked") public static FixtureMap wrap(Map<String, ? extends Object> source, String fixtureName, FixtureTemplate parent)
focal_class.identifier: wrap
focal_class.modifiers: @SuppressWarnings("unchecked") public static
focal_class.parameters: (Map<String, ? extends Object> source, String fixtureName, FixtureTemplate parent)
focal_class.return: FixtureMap
focal_class.signature: FixtureMap wrap(Map<String, ? extends Object> source, String fixtureName, FixtureTemplate parent)
focal_class.class_method_signature: FixtureTemplateWrapper.wrap(List<? extends Object> source, String fixtureName, FixtureTemplate parent)
focal_class.full_signature: @SuppressWarnings("unchecked") public static FixtureList wrap(List<? extends Object> source, String fixtureName, FixtureTemplate parent)
focal_class.identifier: wrap
focal_class.modifiers: @SuppressWarnings("unchecked") public static
focal_class.parameters: (List<? extends Object> source, String fixtureName, FixtureTemplate parent)
focal_class.return: FixtureList
focal_class.signature: FixtureList wrap(List<? extends Object> source, String fixtureName, FixtureTemplate parent)
focal_class.class_method_signature: FixtureTemplateWrapper.wrap(Object source, String fixtureName, FixtureTemplate parent)
focal_class.full_signature: public static FixtureValue wrap(Object source, String fixtureName, FixtureTemplate parent)
focal_class.identifier: wrap
focal_class.modifiers: public static
focal_class.parameters: (Object source, String fixtureName, FixtureTemplate parent)
focal_class.return: FixtureValue
focal_class.signature: FixtureValue wrap(Object source, String fixtureName, FixtureTemplate parent)
focal_method.body: @SuppressWarnings("unchecked")
      public static FixtureMap wrap(Map<String, ? extends Object> source, String fixtureName, FixtureTemplate parent) {
          FixtureMap fixtureMap = new FixtureMap();
          fixtureMap.setFixtureName(fixtureName);
          fixtureMap.setParent(parent);
  
          for (Map.Entry<String, ? extends Object> entry : source.entrySet()) {
              String key = entry.getKey();
              if (entry.getValue() instanceof Map) {
                  fixtureMap.put(entry.getKey(), wrap((Map) entry.getValue(), key, fixtureMap));
              } else if (entry.getValue() instanceof List) {
                  fixtureMap.put(entry.getKey(), wrap((List) entry.getValue(), key, fixtureMap));
              } else {
                  FixtureValue wrapped = wrap(entry.getValue(), entry.getKey(), fixtureMap);
                  fixtureMap.put(entry.getKey(), wrapped);
              }
          }
  
          return fixtureMap;
      }
focal_method.class_method_signature: FixtureTemplateWrapper.wrap(Map<String, ? extends Object> source, String fixtureName, FixtureTemplate parent)
focal_method.full_signature: @SuppressWarnings("unchecked") public static FixtureMap wrap(Map<String, ? extends Object> source, String fixtureName, FixtureTemplate parent)
focal_method.identifier: wrap
focal_method.invocations: setFixtureName setParent entrySet getKey getValue put getKey wrap getValue getValue put getKey wrap getValue wrap getValue getKey put getKey
focal_method.modifiers: @SuppressWarnings("unchecked") public static
focal_method.parameters: (Map<String, ? extends Object> source, String fixtureName, FixtureTemplate parent)
focal_method.return: FixtureMap
focal_method.signature: FixtureMap wrap(Map<String, ? extends Object> source, String fixtureName, FixtureTemplate parent)