Project

General

Profile

« Previous | Next » 

Revision 112716b9

Added by Cherian Mathew almost 9 years ago

Fix LanguageString issue with test data

View differences:

eu.etaxonomy.taxeditor.test/src/test/java/eu/etaxonomy/taxeditor/session/CdmEntitySessionAwareTest.java
41 41
import eu.etaxonomy.cdm.model.taxon.Taxon;
42 42
import eu.etaxonomy.taxeditor.httpinvoker.RemotingSessionAwareTest;
43 43
import eu.etaxonomy.taxeditor.remoting.cache.EntityCacherDebugResult;
44
import eu.etaxonomy.taxeditor.session.ICdmEntitySessionEnabled;
45 44

  
46 45
/**
47 46
 * @author cmathew
......
189 188
        polytomousKeyService.merge(pkey);
190 189

  
191 190
        pkey = CdmBase.deproxy(polytomousKeyService.find(polytomousKeyUuid),PolytomousKey.class);
192
        sessionOwner = new MockSessionOwner();
193 191

  
194 192

  
195 193
        pkeynode = pkey.getRoot();
......
200 198
            node.setStatement(KeyStatement.NewInstance(english,newStatement));
201 199
        }
202 200

  
203

  
204 201
        Assert.assertEquals(pkeynode.getChildAt(1).getTaxon(), taxon);
205 202

  
206 203
        polytomousKeyService.merge(pkey);
207 204

  
208 205
        pkey = CdmBase.deproxy(polytomousKeyService.find(polytomousKeyUuid),PolytomousKey.class);
209
        sessionOwner = new MockSessionOwner();
210

  
211 206

  
212 207
        pkeynode = pkey.getRoot();
213 208
        for(PolytomousKeyNode node : pkeynode.getChildren()) {
......
224 219
    @Test
225 220
    public void savePolytomousKeyNodeDataWithSameSubKey() {
226 221

  
227
        ICdmEntitySessionEnabled sessionOwner = new MockSessionOwner();
228
        cdmEntitySessionManager.bind(sessionOwner);
229 222
        PolytomousKey pkey = CdmBase.deproxy(polytomousKeyService.find(polytomousKeyUuid),PolytomousKey.class);
230 223

  
231 224

  
eu.etaxonomy.taxeditor.test/src/test/resources/eu/etaxonomy/taxeditor/lazyloading/CdmEntityCacherTest.xml
120 120
  <OriginalSourceBase DTYPE="IdentifiableSource" id="23710" created="2014-03-10 10:06:57.0" uuid="95e05e82-499d-4b8a-ad6b-1085f74a7496" updated="2014-03-10 10:07:33.0" sourcedObj_type="eu.etaxonomy.cdm.model.description.PolytomousKey" sourcedObj_id="1550" createdby_id="30" updatedby_id="30" citation_id="1730" sourceType="PTS"/>
121 121
  <OriginalSourceBase DTYPE="IdentifiableSource" id="23711" created="2014-03-10 10:06:48.0" uuid="f77555fe-0d98-4c9f-98ed-a5bca6b1e342" updated="2014-03-10 10:07:33.0" sourcedObj_type="eu.etaxonomy.cdm.model.description.PolytomousKey" sourcedObj_id="1550" createdby_id="30" updatedby_id="30" citation_id="50" sourceType="PTS"/>
122 122

  
123
  
123
  <LanguageString id="10"/>
124 124
</dataset>
eu.etaxonomy.taxeditor.test/src/test/resources/eu/etaxonomy/taxeditor/operation/TaxonNameEditorTest.xml
34 34

  
35 35
  <SynonymRelationship id="50" created="2010-12-21 15:09:45.0" uuid="60d1466f-5823-4a69-a071-1887d0c1e72b" doubtful="false" partial="false" proparte="false"  relatedfrom_id="388" relatedto_id="387" />
36 36

  
37
  
37
  <LanguageString id="10"/>
38 38
</dataset>

Also available in: Unified diff