Project

General

Profile

« Previous | Next » 

Revision 9378

Added by Jing Tao about 9 years ago

Rearrange some test cases.

View differences:

test/edu/ucsb/nceas/metacat/dataone/MNodeServiceTest.java
144 144
    suite.addTest(new MNodeServiceTest("testCreate"));
145 145
    suite.addTest(new MNodeServiceTest("testCreateInvalidIdentifier"));
146 146
    suite.addTest(new MNodeServiceTest("testUpdate"));
147
    suite.addTest(new MNodeServiceTest("testUpdateSystemMetadata"));
148
    suite.addTest(new MNodeServiceTest("testUpdateObsoletesAndObsoletedBy"));
149
    suite.addTest(new MNodeServiceTest("testArchive"));
150
    suite.addTest(new MNodeServiceTest("testUpdateSciMetadata"));
147 151
    // this requires MN certificate
148 152
    suite.addTest(new MNodeServiceTest("testDelete"));
149 153
    
......
153 157
    suite.addTest(new MNodeServiceTest("testGetSystemMetadata"));
154 158
    suite.addTest(new MNodeServiceTest("testDescribe"));
155 159
    suite.addTest(new MNodeServiceTest("testListObjects"));
160
    suite.addTest(new MNodeServiceTest("testGetSID"));
156 161
    // this requires CN certificate
157 162
    suite.addTest(new MNodeServiceTest("testSynchronizationFailed"));
158 163
    
......
172 177
    suite.addTest(new MNodeServiceTest("testGetOREPackage"));
173 178
    suite.addTest(new MNodeServiceTest("testReadDeletedObject"));
174 179
    suite.addTest(new MNodeServiceTest("testCreateAndUpdateXMLWithUnmatchingEncoding"));
175
    suite.addTest(new MNodeServiceTest("testGetSID"));
176 180
    suite.addTest(new MNodeServiceTest("testListViews"));
177
    suite.addTest(new MNodeServiceTest("testUpdateSystemMetadata"));
178
    suite.addTest(new MNodeServiceTest("testUpdateObsoletesAndObsoletedBy"));
179
    suite.addTest(new MNodeServiceTest("testArchive"));
180
    suite.addTest(new MNodeServiceTest("testUpdateSciMetadata"));
181
   
181 182
    
182 183
    
183 184
    return suite;
......
627 628
      object = new ByteArrayInputStream(st2.getBytes("UTF-8"));
628 629
      SystemMetadata sysmeta2 = createSystemMetadata(newPid, session.getSubject(), object);
629 630
      sysmeta2.setFormatId(ObjectFormatCache.getInstance().getFormat("eml://ecoinformatics.org/eml-2.1.1").getFormatId());
630
      //sysmeta2.setObsoletes(guid);
631
      sysmeta2.setObsoletes(guid);
631 632
      Checksum sum1= sysmeta2.getChecksum();
632 633
      System.out.println("the checksum before sending is "+sum1.getValue());
633 634
      object = new ByteArrayInputStream(st2.getBytes("UTF-8"));

Also available in: Unified diff