Project

General

Profile

« Previous | Next » 

Revision 5a4e6f50

Added by Andreas Kohlbecker over 4 years ago

fixing titlecache usage for name rel footnotes - adapting tests

View differences:

src/main/java/eu/etaxonomy/dataportal/pages/PortalPage.java
250 250
                m.matches();
251 251
                return m.group(1);
252 252
            } else {
253
                return currentURL.getPath().replaceFirst("^"+ context.getBaseUri().getPath(), "");
253
                return currentURL.getPath().replaceFirst("^"+ context.getBaseUri().getPath() + "/", "");
254 254
            }
255 255
        } catch (MalformedURLException e) {
256 256
            throw new RuntimeException(e);
src/test/java/eu/etaxonomy/dataportal/selenium/tests/reference/NameRelationshipsTest.java
77 77

  
78 78
        List<BaseElement> nameRelationshipFootnotes = regItem.getNameRelationsipFootnotes();
79 79
        assertEquals(3, nameRelationshipFootnotes.size());
80
        assertEquals("1. Art.99.9 Turland, Wiersema, Barrie, Greuter, D.Hawksw., Herend., S.Knapp, Kusber, D.Z.Li, Marhold, T.W.May, McNeill, A.M.Monro, J.Prado, M.J.Price & Gideon F.Sm., International Code of Nomenclature for algae, fungi, and plants (Shenzhen Code) adopted by the Nineteenth International Botanical Congress Shenzhen, China, July 2017:22", nameRelationshipFootnotes .get(0).getText());
81
        assertEquals("2. Art. 88.9 Turland, Wiersema, Barrie, Greuter, D.Hawksw., Herend., S.Knapp, Kusber, D.Z.Li, Marhold, T.W.May, McNeill, A.M.Monro, J.Prado, M.J.Price & Gideon F.Sm., International Code of Nomenclature for algae, fungi, and plants (Shenzhen Code) adopted by the Nineteenth International Botanical Congress Shenzhen, China, July 2017:33", nameRelationshipFootnotes .get(1).getText());
80
        assertEquals("1. Art.99.9 Turland, N.J., Wiersema, J.H., Barrie, F.R. & al., International Code of Nomenclature for algae, fungi, and plants (Shenzhen Code) adopted by the Nineteenth International Botanical Congress Shenzhen, China, July 2017:22", nameRelationshipFootnotes .get(0).getText());
81
        assertEquals("2. Art. 88.9 Turland, N.J., Wiersema, J.H., Barrie, F.R. & al., International Code of Nomenclature for algae, fungi, and plants (Shenzhen Code) adopted by the Nineteenth International Botanical Congress Shenzhen, China, July 2017:33", nameRelationshipFootnotes .get(1).getText());
82 82
        assertEquals("3. Lem, Nonsens species of the developers Vol1", nameRelationshipFootnotes .get(2).getText());
83 83

  
84 84
    }
......
92 92
        assertEquals("Nodosilinea sensensia (Blanco) Heidari & Hauer ex Lem, Nonsens species of the developers Vol1 [non Nodosilinea sensensia nec Nodosilinea sensensia nec Nodosilinea blockensis orth. var. Nodosilinea sensensi1, 2]", accName.getText());
93 93

  
94 94
        List<BaseElement> footnotes = p.getHomotypicalGroupFootNotes();
95
        assertEquals("1. Art. 88.9 Turland, Wiersema, Barrie, Greuter, D.Hawksw., Herend., S.Knapp, Kusber, D.Z.Li, Marhold, T.W.May, McNeill, A.M.Monro, J.Prado, M.J.Price & Gideon F.Sm., International Code of Nomenclature for algae, fungi, and plants (Shenzhen Code) adopted by the Nineteenth International Botanical Congress Shenzhen, China, July 2017:33", footnotes.get(0).getText());
95
        assertEquals("1. Art. 88.9 Turland, N.J., Wiersema, J.H., Barrie, F.R. & al., International Code of Nomenclature for algae, fungi, and plants (Shenzhen Code) adopted by the Nineteenth International Botanical Congress Shenzhen, China, July 2017:33", footnotes.get(0).getText());
96 96
        assertEquals("2. Lem, Nonsens species of the developers Vol1", footnotes.get(1).getText());
97 97

  
98 98
    }

Also available in: Unified diff