Examples of AssetStorageUnit


Examples of com.github.dandelion.core.storage.AssetStorageUnit

    request.setAttribute(WebConstants.DANDELION_CONTEXT_ATTRIBUTE, context);
  }
 
  @Test
  public void should_return_the_internal_url(){
    AssetStorageUnit asu = new AssetStorageUnit("jquery-js", singletonMap("webjar", "jquery.js"));
    String location = locator.getLocation(asu, request);
    assertThat(location).isEqualTo("/webjars/jquery/1.11.0/jquery.js");
  }
View Full Code Here

Examples of com.github.dandelion.core.storage.AssetStorageUnit

    request.setAttribute(WebConstants.DANDELION_CONTEXT_ATTRIBUTE, context);
  }
 
  @Test
  public void should_return_the_internal_url(){
    AssetStorageUnit asu = new AssetStorageUnit("jquery-js", singletonMap("webjar", "jquery.js"));
    String location = locator.getLocation(asu, request);
    assertThat(location).isEqualTo("META-INF/resources/webjars/jquery/1.11.0/jquery.js");
  }
View Full Code Here

Examples of com.github.dandelion.core.storage.AssetStorageUnit

    assertThat(location).isEqualTo("META-INF/resources/webjars/jquery/1.11.0/jquery.js");
  }
 
  @Test
  public void should_return_the_content() throws MalformedURLException{
    AssetStorageUnit asu = new AssetStorageUnit("jquery-js", singletonMap("webjar", "jquery.js"));
    String content = locator.getContent(asu, request);
    assertThat(content).contains("jQuery JavaScript Library v1.11.0");
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.