Package ro.isdc.wro.model.group

Examples of ro.isdc.wro.model.group.InvalidGroupNameException


   * Test that in DEPLOYMENT mode if {@link InvalidGroupNameException} is thrown, the response redirect to 404.
   */
  @Test
  public void testInvalidGroupNameExceptionThrownInDEPLOYMENTMode()
      throws Exception {
    testChainContinueWhenSpecificExceptionThrown(new InvalidGroupNameException(""));
  }
View Full Code Here


  @Deprecated
  public Group getGroupByName(final String name) {
    final WroModelInspector modelInspector = new WroModelInspector(this);
    final Group group = modelInspector.getGroupByName(name);
    if (group == null) {
      throw new InvalidGroupNameException(String.format("There is no such group: '%s'. Available groups are: [%s]", name,
          modelInspector.getGroupNamesAsString()));
    }
    return group;
  }
View Full Code Here

      Group group = groups.remove(candidate);
      if (group == null) {
        group = groups.remove("defaults");
      }
      if (group == null) {
        throw new InvalidGroupNameException("'" + candidate
            + "'. Available groups are: " + groups.keySet());
      }
      doContribution(group, modelAndView, groups);
    } catch (InvalidGroupNameException ex) {
      modelAndView.addObject(varName(), "");
View Full Code Here

TOP

Related Classes of ro.isdc.wro.model.group.InvalidGroupNameException

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.