Revision f16aa6b9
Added by Katja Luther almost 3 years ago
cdmlib-model/src/test/java/eu/etaxonomy/cdm/strategy/cache/media/MediaDefaultCacheStrategyTest.java | ||
---|---|---|
42 | 42 |
media.setArtist(person); |
43 | 43 |
Assert.assertEquals("Wrong title cache for media with artist", "Artist", media.getTitleCache()); |
44 | 44 |
|
45 |
MediaRepresentation representation = MediaRepresentation.NewInstance(null, null, new URI("www.abc.de/myFileName.jpg"), 0, null);
|
|
45 |
MediaRepresentation representation = MediaRepresentation.NewInstance(null, null, new URI("www.abc.de/myFileName"), 0, null); |
|
46 | 46 |
media.addRepresentation(representation); |
47 | 47 |
Assert.assertEquals("Wrong title cache for media with artist", "Artist", media.getTitleCache()); |
48 | 48 |
|
49 | 49 |
media.setArtist(null); |
50 |
Assert.assertEquals("Wrong title cache for media", "myFileName.jpg", media.getTitleCache());
|
|
50 |
Assert.assertEquals("Wrong title cache for media", "myFileName", media.getTitleCache()); |
|
51 | 51 |
media.removeRepresentation(representation); |
52 | 52 |
|
53 | 53 |
representation = MediaRepresentation.NewInstance(null, null, new URI("www.abc.de/"), 0, null); |
Also available in: Unified diff
fix #9663: remove additional text and file ending - adapt tests