@Test public void spacesParameterToListExceptions() throws XWikiException { try { TagParamUtils.spacesParameterToList(null); Assert.fail("npe expected"); } catch (IllegalArgumentException expected) {} try { TagParamUtils.spacesParameterToList("'space1','space2"); Assert.fail("XWikiException expected"); } catch (XWikiException expected) {} try { TagParamUtils.spacesParameterToList("'space1','space2',"); Assert.fail("XWikiException expected"); } catch (XWikiException expected) {} try { TagParamUtils.spacesParameterToList("'space1', or 'space2'"); Assert.fail("XWikiException expected"); } catch (XWikiException expected) {} }
public static List<String> spacesParameterToList(String spaces) throws XWikiException { if (spaces == null) { throw new IllegalArgumentException("Parameter 'spaces' should not be null"); } return new HQLInListParser(spaces).getResults(); }
TagParamUtils { public static List<String> spacesParameterToList(String spaces) throws XWikiException { if (spaces == null) { throw new IllegalArgumentException("Parameter 'spaces' should not be null"); } return new HQLInListParser(spaces).getResults(); } }
TagParamUtils { public static List<String> spacesParameterToList(String spaces) throws XWikiException { if (spaces == null) { throw new IllegalArgumentException("Parameter 'spaces' should not be null"); } return new HQLInListParser(spaces).getResults(); } private  TagParamUtils(); }
TagParamUtils { public static List<String> spacesParameterToList(String spaces) throws XWikiException { if (spaces == null) { throw new IllegalArgumentException("Parameter 'spaces' should not be null"); } return new HQLInListParser(spaces).getResults(); } private  TagParamUtils(); static List<String> spacesParameterToList(String spaces); }
TagParamUtils { public static List<String> spacesParameterToList(String spaces) throws XWikiException { if (spaces == null) { throw new IllegalArgumentException("Parameter 'spaces' should not be null"); } return new HQLInListParser(spaces).getResults(); } private  TagParamUtils(); static List<String> spacesParameterToList(String spaces);  }