ExampleXmlGenerator { public String getExampleXml() { return exampleXml; } ExampleXmlGenerator(Log log, Class<?> clazz); String getExampleXml();  }
@Test public void test_1() throws Exception { ExampleXmlGenerator exampleXmlGenerator = new ExampleXmlGenerator(LOG, BasicCase.class); String exampleXml = exampleXmlGenerator.getExampleXml(); assertEquals(getResourceAsString("/exampleXml1"), exampleXml); }
@Test public void test_2() throws Exception { ExampleXmlGenerator exampleXmlGenerator = new ExampleXmlGenerator(LOG, DatetimeCase.class); String exampleXml = exampleXmlGenerator.getExampleXml(); Pattern pattern = Pattern.compile("<xmlGregorianCalendar>[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}(.+?)</xmlGregorianCalendar>"); Matcher matcher = pattern.matcher(exampleXml); assertTrue(matcher.find()); }
@Test public void test_3() throws Exception { ExampleXmlGenerator exampleXmlGenerator = new ExampleXmlGenerator(LOG, EdgeCase.class); String exampleXml = exampleXmlGenerator.getExampleXml(); assertEquals(getResourceAsString("/exampleXml2"), exampleXml); }
@Test public void test_6() throws Exception { ExampleXmlGenerator exampleXmlGenerator = new ExampleXmlGenerator(LOG, XmlTypeInterfaceCase.class); String exampleXml = exampleXmlGenerator.getExampleXml(); assertEquals("", exampleXml); }