use of cz.metacentrum.perun.core.bl.SearcherBl in project perun by CESNET.
the class urn_perun_group_resource_attribute_def_def_adNameTest method setUp.
@Before
public void setUp() throws Exception {
classInstance = new urn_perun_group_resource_attribute_def_def_adName();
attributeToCheck = new Attribute();
sess = mock(PerunSessionImpl.class);
reqAttribute = new Attribute();
PerunBl perunBl = mock(PerunBl.class);
when(sess.getPerunBl()).thenReturn(perunBl);
AttributesManagerBl attributesManagerBl = mock(AttributesManagerBl.class);
when(perunBl.getAttributesManagerBl()).thenReturn(attributesManagerBl);
when(attributesManagerBl.getAttribute(sess, resource, AttributesManager.NS_RESOURCE_ATTR_DEF + ":adOuName")).thenReturn(reqAttribute);
SearcherBl searcherBl = mock(SearcherBl.class);
when(perunBl.getSearcherBl()).thenReturn(searcherBl);
}
Aggregations