Search in sources :

Example 1 with SearcherBl

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);
}
Also used : Attribute(cz.metacentrum.perun.core.api.Attribute) PerunBl(cz.metacentrum.perun.core.bl.PerunBl) PerunSessionImpl(cz.metacentrum.perun.core.impl.PerunSessionImpl) AttributesManagerBl(cz.metacentrum.perun.core.bl.AttributesManagerBl) SearcherBl(cz.metacentrum.perun.core.bl.SearcherBl) Before(org.junit.Before)

Aggregations

Attribute (cz.metacentrum.perun.core.api.Attribute)1 AttributesManagerBl (cz.metacentrum.perun.core.bl.AttributesManagerBl)1 PerunBl (cz.metacentrum.perun.core.bl.PerunBl)1 SearcherBl (cz.metacentrum.perun.core.bl.SearcherBl)1 PerunSessionImpl (cz.metacentrum.perun.core.impl.PerunSessionImpl)1 Before (org.junit.Before)1