### Question:
RangerAbstractResourceMatcher implements RangerResourceMatcher { boolean isAllValuesRequested(String resource) { boolean result = StringUtils.isEmpty(resource) || WILDCARD_ASTERISK.equals(resource); if (LOG.isDebugEnabled()) { LOG.debug("isAllValuesRequested(" + resource + "): " + result); } return result; }  @Override void setResourceDef(RangerResourceDef resourceDef); @Override void setPolicyResource(RangerPolicyResource policyResource); @Override void init(); @Override boolean isMatchAny(); @Override boolean isSingleAndExactMatch(String resource); String getOption(String name); String getOption(String name, String defaultValue); boolean getBooleanOption(String name); boolean getBooleanOption(String name, boolean defaultValue); char getCharOption(String name, char defaultValue); @Override String toString( ); StringBuilder toString(StringBuilder sb); boolean applyExcludes(boolean allValuesRequested, boolean resultWithoutExcludes); final static String WILDCARD_ASTERISK; final static String OPTIONS_SEP; final static String OPTION_NV_SEP; final static String OPTION_IGNORE_CASE; final static String OPTION_WILD_CARD; }### Answer:
@Test public void test_isAllPossibleValues() { RangerAbstractResourceMatcher matcher = new AbstractMatcherWrapper(); for (String resource : new String[] { null, "", "*"}) { assertTrue(matcher.isAllValuesRequested(resource)); } for (String resource : new String[] { " ", "\t", "\n", "foo"}) { assertFalse(matcher.isAllValuesRequested(resource)); } }