Revision d774802a
Added by Andreas Müller almost 8 years ago
cdmlib-model/src/test/java/eu/etaxonomy/cdm/strategy/cache/reference/old/WebPageDefaultCacheStrategyTest.java | ||
---|---|---|
1 | 1 |
// $Id$ |
2 | 2 |
/** |
3 | 3 |
* Copyright (C) 2009 EDIT |
4 |
* European Distributed Institute of Taxonomy
|
|
4 |
* European Distributed Institute of Taxonomy |
|
5 | 5 |
* http://www.e-taxonomy.eu |
6 |
*
|
|
6 |
* |
|
7 | 7 |
* The contents of this file are subject to the Mozilla Public License Version 1.1 |
8 | 8 |
* See LICENSE.TXT at the top of this package for the full license terms. |
9 | 9 |
*/ |
... | ... | |
27 | 27 |
/** |
28 | 28 |
* @author a.mueller |
29 | 29 |
* @date 16.06.2010 |
30 |
*
|
|
30 |
* |
|
31 | 31 |
* UNDER CONSTRUCTION |
32 | 32 |
* |
33 | 33 |
*/ |
34 | 34 |
public class WebPageDefaultCacheStrategyTest { |
35 | 35 |
@SuppressWarnings("unused") |
36 | 36 |
private static final Logger logger = Logger.getLogger(WebPageDefaultCacheStrategyTest.class); |
37 |
|
|
37 |
|
|
38 | 38 |
private static IWebPage webPage1; |
39 | 39 |
private static Team team1; |
40 | 40 |
private static WebPageDefaultCacheStrategy defaultStrategy; |
41 | 41 |
private static final String detail1 = "55"; |
42 |
|
|
42 |
|
|
43 | 43 |
/** |
44 | 44 |
* @throws java.lang.Exception |
45 | 45 |
*/ |
... | ... | |
54 | 54 |
@Before |
55 | 55 |
public void setUp() throws Exception { |
56 | 56 |
webPage1 = ReferenceFactory.newWebPage(); |
57 |
webPage1.setCacheStrategy(defaultStrategy); |
|
58 | 57 |
team1 = Team.NewTitledInstance("Authorteam, D.", "AT."); |
59 | 58 |
} |
60 |
|
|
59 |
|
|
61 | 60 |
//**************************** TESTS *********************************** |
62 | 61 |
|
63 |
|
|
62 |
|
|
64 | 63 |
@Test |
65 | 64 |
@Ignore //under development |
66 | 65 |
public void testGetTitleCache(){ |
... | ... | |
71 | 70 |
//taken from Berlin Model, may be modified in future |
72 | 71 |
Assert.assertEquals("Unexpected title cache.", "Authorteam, D. - Flora of Israel Online - http://flora.huji.ac.il [accessed in 2011]", webPage1.getTitleCache()); |
73 | 72 |
} |
74 |
|
|
73 |
|
|
75 | 74 |
// @Test |
76 | 75 |
// //WebPages should usually not be used as nomencl.reference, therefore this is less important |
77 | 76 |
// public void testGetAbbrevTitleCache(){ |
Also available in: Unified diff
Further clean up reference cache strategies #5833