Package com.orange.wro.taglib.config

Examples of com.orange.wro.taglib.config.FilesGroup


  public void failsWhenMinimizedFilesUnavailable() throws Exception {
   
    IGroupLoader loader = mock(IGroupLoader.class);
    when(loader.getMinimizedResources()).thenReturn(new HashMap<ResourceType, String>());
   
    when(wroConfig.getGroup(GROUP_NAME_FIRST)).thenReturn(new FilesGroup(GROUP_NAME_FIRST, loader));

    IncludeTag tag = getIncludeTag();
    tag.setGroupNames(GROUP_NAMES);

    try {
View Full Code Here


    IGroupLoader loader = mock(IGroupLoader.class);
    when(loader.getResources(ResourceType.JS)).thenReturn(new ArrayList<String>());
    when(loader.getResources(ResourceType.CSS)).thenReturn(new ArrayList<String>());
   
    when(wroConfig.getGroup(GROUP_NAME_FIRST)).thenReturn(new FilesGroup(GROUP_NAME_FIRST, loader));

    IncludeTag tag = getIncludeTag();
    tag.setGroupNames(GROUP_NAMES);
    tag.setExploded(true);
View Full Code Here

    private void writeGroups(StringBuilder output) {
        WroConfig config = WroConfig.getInstance();

        for (String groupName : groupNames) {

            FilesGroup group = config.getGroup(groupName);
            if (group == null) {
                throw new ConfigurationException("group '" + groupName
                        + "' was not found.");
            }
View Full Code Here

TOP

Related Classes of com.orange.wro.taglib.config.FilesGroup

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.