Search in sources :

Example 1 with LsidRegistryImpl

use of eu.etaxonomy.cdm.api.service.lsid.impl.LsidRegistryImpl in project cdmlib by cybertaxonomy.

the class LSIDAuthorityServiceTest method setUp.

@Before
public void setUp() throws Exception {
    unknownLsid = new LSID("fred.org", "dagg", "1", null);
    knownLsid = new LSID("example.org", "taxonconcepts", "1", null);
    XMLUnit.setControlParser("org.apache.xerces.jaxp.DocumentBuilderFactoryImpl");
    XMLUnit.setTestParser("org.apache.xerces.jaxp.DocumentBuilderFactoryImpl");
    XMLUnit.setSAXParserFactory("org.apache.xerces.jaxp.SAXParserFactoryImpl");
    XMLUnit.setIgnoreWhitespace(true);
    ((LsidRegistryImpl) lsidRegistry).init();
}
Also used : LSID(eu.etaxonomy.cdm.model.common.LSID) LsidRegistryImpl(eu.etaxonomy.cdm.api.service.lsid.impl.LsidRegistryImpl) Before(org.junit.Before)

Example 2 with LsidRegistryImpl

use of eu.etaxonomy.cdm.api.service.lsid.impl.LsidRegistryImpl in project cdmlib by cybertaxonomy.

the class LSIDMetadataServiceTest method setUp.

@Before
public void setUp() throws Exception {
    lsid = new LSID("example.org", "taxonconcepts", "1", null);
    ((LsidRegistryImpl) lsidRegistry).init();
}
Also used : LSID(eu.etaxonomy.cdm.model.common.LSID) LsidRegistryImpl(eu.etaxonomy.cdm.api.service.lsid.impl.LsidRegistryImpl) Before(org.junit.Before)

Example 3 with LsidRegistryImpl

use of eu.etaxonomy.cdm.api.service.lsid.impl.LsidRegistryImpl in project cdmlib by cybertaxonomy.

the class LSIDRegistryTest method setUp.

@Before
public void setUp() {
    try {
        lsid = new LSID("urn:lsid:example.org:names:1");
        ipniLsid = new LSID("urn:lsid:ipni.org:names:1");
        unknownAuthorityLsid = new LSID("urn:lsid:fred.org:dagg:1");
    } catch (MalformedLSIDException mle) {
        Assert.fail();
    }
    ((LsidRegistryImpl) lsidRegistry).init();
}
Also used : LSID(eu.etaxonomy.cdm.model.common.LSID) MalformedLSIDException(com.ibm.lsid.MalformedLSIDException) LsidRegistryImpl(eu.etaxonomy.cdm.api.service.lsid.impl.LsidRegistryImpl) Before(org.junit.Before)

Example 4 with LsidRegistryImpl

use of eu.etaxonomy.cdm.api.service.lsid.impl.LsidRegistryImpl in project cdmlib by cybertaxonomy.

the class LSIDDataServiceTest method setUp.

@Before
public void setUp() throws Exception {
    unknownLsid = new LSID("fred.org", "dagg", "1", null);
    knownLsid = new LSID("example.org", "taxonconcepts", "1", null);
    ((LsidRegistryImpl) lsidRegistry).init();
}
Also used : LSID(eu.etaxonomy.cdm.model.common.LSID) LsidRegistryImpl(eu.etaxonomy.cdm.api.service.lsid.impl.LsidRegistryImpl) Before(org.junit.Before)

Aggregations

LsidRegistryImpl (eu.etaxonomy.cdm.api.service.lsid.impl.LsidRegistryImpl)4 LSID (eu.etaxonomy.cdm.model.common.LSID)4 Before (org.junit.Before)4 MalformedLSIDException (com.ibm.lsid.MalformedLSIDException)1