Project

General

Profile

Revision c6a7335e

IDc6a7335eda9669ae245265391e22168bb5e4ccf2
Parent d50a2175
Child 1fab5922

Added by Andreas Müller over 2 years ago

ref #6682 adapt inverse MAN symbol in test

View differences:

cdmlib-model/src/test/java/eu/etaxonomy/cdm/format/TaxonRelationshipFormatterTest.java
118 118
    public void testGetTaggedTextMisappliedName() {
119 119

  
120 120
        reverse = true;
121
        String symbol = TaxonRelationshipType.MISAPPLIED_NAME_FOR().getInverseSymbol();
121
        String inverseSymbol = TaxonRelationshipType.MISAPPLIED_NAME_FOR().getInverseSymbol();
122
        String symbol = TaxonRelationshipType.MISAPPLIED_NAME_FOR().getSymbol();
123

  
122 124
        List<TaggedText> tags = formatter.getTaggedText(taxonRel, reverse, languages);
123 125
        String str = TaggedCacheHelper.createString(tags);
124 126
        //TODO no initials
125
        Assert.assertEquals(symbol + " \"Abies alba\" sensu Macfarlane 1918, err. sec. Cheek 1919: 123", str);
127
        Assert.assertEquals(inverseSymbol + " \"Abies alba\" sensu Macfarlane 1918, err. sec. Cheek 1919: 123", str);
126 128

  
127 129
        //reverse
128 130
        tags = formatter.getTaggedText(taxonRel, !reverse, languages);
129 131
        str = TaggedCacheHelper.createString(tags);
130 132
        System.out.println(str);
131
        Assert.assertEquals("– Pinus pinova Mill. sec. ToSecAuthor 1928, rel. sec. Cheek 1919: 123", str);
133
        Assert.assertEquals(symbol + " Pinus pinova Mill. sec. ToSecAuthor 1928, rel. sec. Cheek 1919: 123", str);
132 134
        //FIXME symbol
133 135

  
134 136

  
......
137 139
        tags = formatter.getTaggedText(taxonRel, reverse, languages);
138 140
        str = TaggedCacheHelper.createString(tags);
139 141
        System.out.println(str);
140
        Assert.assertEquals(symbol + " \"Abies alba\" auctores sensu Macfarlane 1918, err. sec. Cheek 1919: 123", str);
142
        Assert.assertEquals(inverseSymbol + " \"Abies alba\" auctores sensu Macfarlane 1918, err. sec. Cheek 1919: 123", str);
141 143

  
142 144

  
143 145

  
......
145 147
        tags = formatter.getTaggedText(taxonRel, reverse, languages);
146 148
        str = TaggedCacheHelper.createString(tags);
147 149
        System.out.println(str);
148
        Assert.assertEquals(symbol + " \"Abies alba\" auctores, err. sec. Cheek 1919: 123", str);
150
        Assert.assertEquals(inverseSymbol + " \"Abies alba\" auctores, err. sec. Cheek 1919: 123", str);
149 151

  
150 152
        fromTaxon.setAppendedPhrase("");
151 153
        tags = formatter.getTaggedText(taxonRel, reverse, languages);
152 154
        str = TaggedCacheHelper.createString(tags);
153 155
        System.out.println(str);
154
        Assert.assertEquals(symbol + " \"Abies alba\" auct., err. sec. Cheek 1919: 123", str);
156
        Assert.assertEquals(inverseSymbol + " \"Abies alba\" auct., err. sec. Cheek 1919: 123", str);
155 157

  
156 158
    }
157 159

  

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)