@Test public void parseConfiguration02() throws IOException { WorkloadParser parser = new WorkloadParser(); Reader reader = new StringReader(ResourcesUtils.loadAsString("workloads/config02.json")); Workload config = parser.parse(reader); assertNotNull(config); assertEquals(config.getVersion(), WorkloadConstants.CURRENT_VERSION); }
public Workload parse(Reader reader) throws IOException { ObjectMapper mapper = MapperFactory.initMapper(); JsonNode root = mapper.readTree(reader); return parseWorkload(mapper, root); }
WorkloadParser { public Workload parse(Reader reader) throws IOException { ObjectMapper mapper = MapperFactory.initMapper(); JsonNode root = mapper.readTree(reader); return parseWorkload(mapper, root); } }
WorkloadParser { public Workload parse(Reader reader) throws IOException { ObjectMapper mapper = MapperFactory.initMapper(); JsonNode root = mapper.readTree(reader); return parseWorkload(mapper, root); }  }
WorkloadParser { public Workload parse(Reader reader) throws IOException { ObjectMapper mapper = MapperFactory.initMapper(); JsonNode root = mapper.readTree(reader); return parseWorkload(mapper, root); }  Workload parse(Reader reader); void parse(Writer writer, Workload workload); }
WorkloadParser { public Workload parse(Reader reader) throws IOException { ObjectMapper mapper = MapperFactory.initMapper(); JsonNode root = mapper.readTree(reader); return parseWorkload(mapper, root); }  Workload parse(Reader reader); void parse(Writer writer, Workload workload);  }