test_class.declarator: pojoConverter
test_class.modifier: private
test_class.original_string: private JsonPojoConverter pojoConverter;
test_class.type: JsonPojoConverter
test_class.var_name: pojoConverter
test_class.file: plugin-code/src/test/java/com/trivago/cluecumber/json/JsonPojoConverterTest.java
test_class.identifier: JsonPojoConverterTest
test_case.body: @Test
      public void convertJsonToReportPojosTest() throws CluecumberPluginException {
          String json = "[\n" +
                  "  {\n" +
                  "    \"line\": 1,\n" +
                  "    \"elements\": [\n" +
                  "      {\n" +
                  "        \"before\": [\n" +
                  "          {\n" +
                  "            \"result\": {\n" +
                  "              \"duration\": 5554929,\n" +
                  "              \"status\": \"passed\"\n" +
                  "            },\n" +
                  "            \"match\": {\n" +
                  "              \"location\": \"BeforeAfterScenario.before(Scenario)\"\n" +
                  "            }\n" +
                  "          }\n" +
                  "        ],\n" +
                  "        \"line\": 5,\n" +
                  "        \"name\": \"Test feature\",\n" +
                  "        \"description\": \"\",\n" +
                  "        \"id\": \"test;id\",\n" +
                  "        \"after\": [\n" +
                  "          {\n" +
                  "            \"result\": {\n" +
                  "              \"duration\": 153270,\n" +
                  "              \"status\": \"passed\"\n" +
                  "            },\n" +
                  "            \"match\": {\n" +
                  "              \"location\": \"BeforeAfterScenario.after(Scenario)\"\n" +
                  "            }\n" +
                  "          }\n" +
                  "        ],\n" +
                  "        \"type\": \"scenario\",\n" +
                  "        \"keyword\": \"Scenario\",\n" +
                  "        \"steps\": [\n" +
                  "          {\n" +
                  "            \"result\": {\n" +
                  "              \"duration\": 12453061125,\n" +
                  "              \"status\": \"passed\"\n" +
                  "            },\n" +
                  "            \"line\": 7,\n" +
                  "            \"name\": \"the start page is opened\",\n" +
                  "            \"match\": {\n" +
                  "              \"location\": \"PageSteps.theStartPageIsOpened()\"\n" +
                  "            },\n" +
                  "            \"keyword\": \"Given \"\n" +
                  "          },\n" +
                  "          {\n" +
                  "            \"result\": {\n" +
                  "              \"duration\": 292465492,\n" +
                  "              \"status\": \"passed\"\n" +
                  "            },\n" +
                  "            \"line\": 8,\n" +
                  "            \"name\": \"I see something\",\n" +
                  "            \"match\": {\n" +
                  "              \"location\": \"SomeSteps.iSeeSomething()\"\n" +
                  "            },\n" +
                  "            \"keyword\": \"Then \"\n" +
                  "          }\n" +
                  "        ],\n" +
                  "        \"tags\": [\n" +
                  "          {\n" +
                  "            \"line\": 3,\n" +
                  "            \"name\": \"@sometag\"\n" +
                  "          },\n" +
                  "          {\n" +
                  "            \"line\": 4,\n" +
                  "            \"name\": \"@someothertag\"\n" +
                  "          }\n" +
                  "        ]\n" +
                  "      }\n" +
                  "    ],\n" +
                  "    \"name\": \"Test\",\n" +
                  "    \"description\": \"\",\n" +
                  "    \"id\": \"test\",\n" +
                  "    \"keyword\": \"Feature\",\n" +
                  "    \"uri\": \"parallel/features/Test.feature\"\n" +
                  "  }\n" +
                  "]";
          Report[] reports = pojoConverter.convertJsonToReportPojos(json);
          assertThat(reports.length, is(1));
          Report report = reports[0];
          assertThat(report.getName(), is("Test"));
          assertThat(report.getId(), is("test"));
          assertThat(report.getFeatureIndex(), is(-1));
          assertThat(report.getTotalDuration(), is(12751234816L));
          assertThat(report.getDescription(), is(""));
          assertThat(report.getLine(), is(1));
          assertThat(report.getUri(), is("parallel/features/Test.feature"));
          assertThat(report.getElements().size(), is(1));
          Element element = report.getElements().get(0);
          assertThat(element.getStatus(), is(Status.PASSED));
          assertThat(element.getSteps().size(), is(2));
          assertThat(element.getBefore().size(), is(1));
          assertThat(element.getAfter().size(), is(1));
          assertThat(element.getScenarioIndex(), is(0));
          assertThat(element.getTotalDuration(), is(12751234816L));
          assertThat(element.getTotalNumberOfPassedSteps(), is(2));
          assertThat(element.getTotalNumberOfSkippedSteps(), is(0));
          assertThat(element.getTotalNumberOfFailedSteps(), is(0));
          assertThat(element.getAllResultMatches().size(), is(4));
      }
test_case.class_method_signature: JsonPojoConverterTest.convertJsonToReportPojosTest()
test_case.full_signature: @Test public void convertJsonToReportPojosTest()
test_case.identifier: convertJsonToReportPojosTest
test_case.invocations: convertJsonToReportPojos assertThat is assertThat getName is assertThat getId is assertThat getFeatureIndex is assertThat getTotalDuration is assertThat getDescription is assertThat getLine is assertThat getUri is assertThat size getElements is get getElements assertThat getStatus is assertThat size getSteps is assertThat size getBefore is assertThat size getAfter is assertThat getScenarioIndex is assertThat getTotalDuration is assertThat getTotalNumberOfPassedSteps is assertThat getTotalNumberOfSkippedSteps is assertThat getTotalNumberOfFailedSteps is assertThat size getAllResultMatches is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void convertJsonToReportPojosTest()
focal_class.declarator: gsonParserWithProcessors
focal_class.modifier: private final
focal_class.original_string: private final Gson gsonParserWithProcessors;
focal_class.type: Gson
focal_class.var_name: gsonParserWithProcessors
focal_class.file: plugin-code/src/main/java/com/trivago/cluecumber/json/JsonPojoConverter.java
focal_class.identifier: JsonPojoConverter
focal_class.class_method_signature: JsonPojoConverter.JsonPojoConverter(
              final ReportJsonPostProcessor reportJsonPostProcessor,
              final ElementJsonPostProcessor elementJsonPostProcessor
      )
focal_class.full_signature: @Inject public  JsonPojoConverter(
              final ReportJsonPostProcessor reportJsonPostProcessor,
              final ElementJsonPostProcessor elementJsonPostProcessor
      )
focal_class.identifier: JsonPojoConverter
focal_class.modifiers: @Inject public
focal_class.parameters: (
              final ReportJsonPostProcessor reportJsonPostProcessor,
              final ElementJsonPostProcessor elementJsonPostProcessor
      )
focal_class.signature:  JsonPojoConverter(
              final ReportJsonPostProcessor reportJsonPostProcessor,
              final ElementJsonPostProcessor elementJsonPostProcessor
      )
focal_class.class_method_signature: JsonPojoConverter.readJsonStream(InputStream in)
focal_class.full_signature: public List<Report> readJsonStream(InputStream in)
focal_class.identifier: readJsonStream
focal_class.modifiers: public
focal_class.parameters: (InputStream in)
focal_class.return: List<Report>
focal_class.signature: List<Report> readJsonStream(InputStream in)
focal_class.class_method_signature: JsonPojoConverter.convertJsonToReportPojos(final String json)
focal_class.full_signature: public Report[] convertJsonToReportPojos(final String json)
focal_class.identifier: convertJsonToReportPojos
focal_class.modifiers: public
focal_class.parameters: (final String json)
focal_class.return: Report[]
focal_class.signature: Report[] convertJsonToReportPojos(final String json)
focal_method.body: public Report[] convertJsonToReportPojos(final String json) throws CluecumberPluginException {
          Report[] reports;
          try {
              reports = gsonParserWithProcessors.fromJson(json, Report[].class);
          } catch (JsonParseException e) {
              throw new CluecumberPluginException(e.getMessage());
          }
          return reports;
      }
focal_method.class_method_signature: JsonPojoConverter.convertJsonToReportPojos(final String json)
focal_method.full_signature: public Report[] convertJsonToReportPojos(final String json)
focal_method.identifier: convertJsonToReportPojos
focal_method.invocations: fromJson getMessage
focal_method.modifiers: public
focal_method.parameters: (final String json)
focal_method.return: Report[]
focal_method.signature: Report[] convertJsonToReportPojos(final String json)