Project

General

Profile

« Previous | Next » 

Revision 9372

Added by Jing Tao about 9 years ago

In the hasReservation method, it doesn't throw the IdentifierNotUnqiue exception.

View differences:

test/edu/ucsb/nceas/metacat/dataone/MockCNode.java
29 29
import org.dataone.service.exceptions.NotFound;
30 30
import org.dataone.service.exceptions.NotImplemented;
31 31
import org.dataone.service.exceptions.ServiceFailure;
32
//import org.dataone.service.exceptions.IdentifierNotUnique;
32 33
import org.dataone.service.types.v1.Identifier;
33 34
import org.dataone.service.types.v1.NodeReference;
34 35
import org.dataone.service.types.v1.NodeType;
......
103 104
    @Override
104 105
    public boolean hasReservation(Session session, Subject subject, Identifier pid) 
105 106
    	throws InvalidToken, ServiceFailure, NotFound,
106
        NotAuthorized, IdentifierNotUnique, NotImplemented {
107
        NotAuthorized, NotImplemented {
107 108
    	// always return true
108 109
        return true;
109 110
    }

Also available in: Unified diff