Project

General

Profile

« Previous | Next » 

Revision 9171

Added by Jing Tao over 9 years ago

Change the test case base on the change on checking sid of the create method.

View differences:

test/edu/ucsb/nceas/metacat/dataone/CNodeServiceTest.java
1050 1050
          SystemMetadata sysmeta4 = createSystemMetadata(newPid3, session.getSubject(), object4);
1051 1051
          sysmeta4.setObsoletes(newPid2);
1052 1052
          sysmeta4.setSeriesId(seriesId);
1053
          try {
1053
          /*try {
1054 1054
              CNodeService.getInstance(request).create(session, newPid3, object4, sysmeta4);
1055 1055
              fail("we can't reach here since the sid is using an old one ");
1056 1056
          } catch (InvalidSystemMetadata eee) {
1057 1057
              
1058
          } 
1058
          } */
1059 1059
          
1060
          sysmeta4.setSeriesId(newPid3);
1060
          /*sysmeta4.setSeriesId(newPid3);
1061 1061
          try {
1062 1062
              CNodeService.getInstance(request).create(session, newPid3, object4, sysmeta4);
1063 1063
              fail("we can't reach here since the sid is using the pid ");
1064 1064
          } catch (InvalidSystemMetadata eee) {
1065 1065
              
1066
          } 
1066
          }*/
1067 1067
          
1068 1068
          //test archive a series id by v1
1069 1069
          try {

Also available in: Unified diff