Revision 892efc69
Added by Andreas Kohlbecker almost 14 years ago
cdmlib-model/src/test/java/eu/etaxonomy/cdm/model/reference/PublicationBaseTest.java | ||
---|---|---|
62 | 62 |
place1 = "place1"; |
63 | 63 |
place2 = "place2"; |
64 | 64 |
|
65 |
ReferenceFactory refFactory = ReferenceFactory.newInstance(); |
|
66 |
publicationBase = refFactory.newBook(); |
|
67 | 65 |
|
68 |
publicationBase2 = refFactory.newArticle(); |
|
66 |
publicationBase = ReferenceFactory.newBook(); |
|
67 |
|
|
68 |
publicationBase2 = ReferenceFactory.newArticle(); |
|
69 | 69 |
|
70 | 70 |
} |
71 | 71 |
|
... | ... | |
92 | 92 |
|
93 | 93 |
assertEquals("Second publication place must be place2", place2, publicationBase.getPlacePublished()); |
94 | 94 |
} |
95 |
|
|
96 |
@Test |
|
97 |
public void testInReferenceValidation(){ |
|
98 |
IJournal journal = ReferenceFactory.newJournal(); |
|
99 |
publicationBase2.setInJournal(journal); |
|
100 |
//TODO: to validate it, the object has to be saved to the db |
|
101 |
IBookSection booksection = ((ReferenceBase)publicationBase2).castReferenceToBookSection(); |
|
102 |
|
|
103 |
|
|
104 |
} |
|
95 | 105 |
|
96 | 106 |
|
97 | 107 |
// /** |
Also available in: Unified diff
merging /branches/cdmlib/SPRINT-Chichorieae1/ to trunk