Project

General

Profile

« Previous | Next » 

Revision 9282

Added by Jing Tao almost 9 years ago

Increased the serial version during the test.

View differences:

test/edu/ucsb/nceas/metacat/dataone/MNodeServiceTest.java
484 484
      
485 485
      SystemMetadata newSysMeta = createSystemMetadata(newPid, session.getSubject(), object);
486 486
      newSysMeta.setArchived(true);
487
      System.out.println("the pid is =======!!!!!!!!!!!! "+pid.getValue());
487 488
      // do the update
488 489
      Identifier updatedPid = 
489 490
        MNodeService.getInstance(request).update(session, pid, object, newPid, newSysMeta);
......
509 510
      }
510 511
      
511 512
      //update the authoritative node on the existing pid (newPid)
513
      SystemMetadata meta = MNodeService.getInstance(request).getSystemMetadata(session, newPid);
514
      BigInteger version = meta.getSerialVersion();
515
      version.add(BigInteger.ONE);
516
      newSysMeta.setSerialVersion(version);
512 517
      NodeReference newMN = new NodeReference();
513 518
      newMN.setValue("urn:node:river1");
514 519
      newSysMeta.setAuthoritativeMemberNode(newMN);

Also available in: Unified diff