Revision 45528416
Added by Katja Luther almost 15 years ago
cdmlib-model/src/test/java/eu/etaxonomy/cdm/strategy/cache/reference/CdDvdDefaultCacheStrategyTest.java | ||
---|---|---|
12 | 12 |
import org.junit.Test; |
13 | 13 |
|
14 | 14 |
import eu.etaxonomy.cdm.model.common.TimePeriod; |
15 |
import eu.etaxonomy.cdm.model.reference.CdDvd; |
|
15 |
import eu.etaxonomy.cdm.model.reference.ICdDvd; |
|
16 |
import eu.etaxonomy.cdm.model.reference.ReferenceBase; |
|
17 |
import eu.etaxonomy.cdm.model.reference.ReferenceFactory; |
|
16 | 18 |
|
17 | 19 |
public class CdDvdDefaultCacheStrategyTest { |
18 | 20 |
@SuppressWarnings("unused") |
19 | 21 |
private static Logger logger = Logger.getLogger(CdDvdDefaultCacheStrategyTest.class); |
20 | 22 |
|
21 |
CdDvd cdDvd;
|
|
23 |
ReferenceBase cdDvd;
|
|
22 | 24 |
String title; |
23 | 25 |
String publisher; |
24 | 26 |
String place; |
25 | 27 |
TimePeriod publicationDate; |
26 |
CdDvdDefaultCacheStrategy<CdDvd> instance;
|
|
28 |
CdDvdDefaultCacheStrategy<ReferenceBase> instance;
|
|
27 | 29 |
|
28 | 30 |
@BeforeClass |
29 | 31 |
public static void setUpBeforeClass() throws Exception { |
... | ... | |
35 | 37 |
|
36 | 38 |
@Before |
37 | 39 |
public void setUp() throws Exception { |
38 |
this.cdDvd = CdDvd.NewInstance(); |
|
40 |
ReferenceFactory refFactory = ReferenceFactory.newInstance(); |
|
41 |
this.cdDvd = refFactory.newCdDvd(); |
|
39 | 42 |
title = "A nice CD title"; |
40 | 43 |
cdDvd.setTitle(title); |
41 | 44 |
publisher = "An ugly publisher"; |
Also available in: Unified diff
merging branches/cdmlib/2.2 [7345:7377] to trunk
see also:
https://dev.e-taxonomy.eu/trac/changeset?new=branches%2Fcdmlib%2F2.2%407377&old=branches%2Fcdmlib%2F2.2%407345