Search in sources :

Example 11 with IArticle

use of eu.etaxonomy.cdm.model.reference.IArticle in project cdmlib by cybertaxonomy.

the class MatchStrategyFactoryTest method getDefaultFullArticle.

/**
 * Like {@link #getMatchingFullArticle() matching full article} with additional
 * title, abbrevTitle and pages
 */
private IArticle getDefaultFullArticle() {
    IArticle article = getMatchingFullArticle();
    article.setTitle("Article title");
    article.setAbbrevTitle("Art. tit.");
    article.setPages("22-33");
    ((Reference) article).updateCaches();
    return article;
}
Also used : Reference(eu.etaxonomy.cdm.model.reference.Reference) IArticle(eu.etaxonomy.cdm.model.reference.IArticle)

Aggregations

IArticle (eu.etaxonomy.cdm.model.reference.IArticle)11 Reference (eu.etaxonomy.cdm.model.reference.Reference)7 IJournal (eu.etaxonomy.cdm.model.reference.IJournal)6 Test (org.junit.Test)6 IBook (eu.etaxonomy.cdm.model.reference.IBook)3 URI (eu.etaxonomy.cdm.common.URI)2 Team (eu.etaxonomy.cdm.model.agent.Team)2 IBookSection (eu.etaxonomy.cdm.model.reference.IBookSection)2 InputStreamReader (java.io.InputStreamReader)2 Person (eu.etaxonomy.cdm.model.agent.Person)1 TeamOrPersonBase (eu.etaxonomy.cdm.model.agent.TeamOrPersonBase)1 IntextReference (eu.etaxonomy.cdm.model.common.IntextReference)1 INonViralName (eu.etaxonomy.cdm.model.name.INonViralName)1 IZoologicalName (eu.etaxonomy.cdm.model.name.IZoologicalName)1 Rank (eu.etaxonomy.cdm.model.name.Rank)1 IGeneric (eu.etaxonomy.cdm.model.reference.IGeneric)1 INomenclaturalReference (eu.etaxonomy.cdm.model.reference.INomenclaturalReference)1 StringNotParsableException (eu.etaxonomy.cdm.strategy.exceptions.StringNotParsableException)1 CdmTransactionalIntegrationTest (eu.etaxonomy.cdm.test.integration.CdmTransactionalIntegrationTest)1 InvocationTargetException (java.lang.reflect.InvocationTargetException)1