예제 #1
0
  @Test
  public void testOutputPOJOs() throws Exception {
    AnalysisInput input = new ResourceAnalysisInput(getClass(), VALID);

    AnalysisJob job = new AnalysisJob("Valid", "A.1.0", Variant.Roundtrip, input);
    job.setSchemaOnly();

    AnalysisRun run = AnalysisFacade.executeAnalysisJob(job);

    AnalysisOutput result = run.getResult(SchemaAnalysisTool.class);
    assertFalse(result.getHtmlOutput().isEmpty());
  }
예제 #2
0
  @Test
  public void testValid() throws Exception {
    AnalysisInput input = new ResourceAnalysisInput(getClass(), VALID);

    AnalysisJob job = new AnalysisJob("Valid", "A.1.0", Variant.Roundtrip, input);
    job.setSchemaOnly();

    AnalysisRun run = AnalysisFacade.executeAnalysisJob(job);

    AnalysisOutput result = run.getResult(SchemaAnalysisTool.class);
    assertEquals(0, result.numFindings());
  }