// get the directory for the wiki source ResourceLoader loader = new ResourceLoader("org/docgene/resources"); URL url = loader.getURL("input105"); File dir = new File(url.getFile()); File[] dirs = new File[1]; dirs[0] = dir; // parse the wiki source DefaultDirectoryParser parser = new DefaultDirectoryParser(false); parser.parseDirectoriesAndResolve(dirs); // check that there is no exception when parsing List<ResolverSAXHandler.ExceptionResult> exceptions = parser.getParserExceptions(); assertTrue("The parser should not have any exceptions", exceptions.isEmpty()); // get the model model = parser.getModel(); assertNotNull("ArticlesModel should not be null", model);
org.mdiutil.junit.OrderedRunner
annotation.docJGenerator Copyright (c) 2016-2023 Herve Girod. All rights reserved.