Package net.sf.gluebooster.java.booster.basic.resources

Examples of net.sf.gluebooster.java.booster.basic.resources.MemoryResourceSystem


  
  @Test
  public void testWriting() throws Exception{
    String ROOT = "root";
   
    MemoryResourceSystem resources = new MemoryResourceSystem();
    DocumentationContext documentationContext = new DocumentationContext();
    documentationContext.setLocale(Locale.GERMAN);
    documentationContext.setAttribute(ResourceSystem.class, resources);
    documentationContext.setAttribute(DocumentationContext.DOCUMENTATION_TARGET_PARAMETER, ROOT);
   
    SoftwareDocumentationBoostUtils.createSoftwareDocumentation(this,
        documentationContext, true, true);
    
    //check whether a h2 is present (the chapter hierarchy is ok)
    boolean h2Present = false;
   
    //checks
    for (Entry<String, ByteArrayOutputStream > entry: resources.getStorage().entrySet()){
      if (entry.getKey().endsWith("index.html")){
       
        String text = entry.getValue().toString();
        h2Present |= text.contains("<h2>");
        
View Full Code Here

TOP

Related Classes of net.sf.gluebooster.java.booster.basic.resources.MemoryResourceSystem

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.