Revision 6092
Added by Matt Jones almost 13 years ago
CrudServiceTest.java | ||
---|---|---|
35 | 35 |
|
36 | 36 |
import org.apache.commons.io.IOUtils; |
37 | 37 |
import org.dataone.service.exceptions.BaseException; |
38 |
import org.dataone.service.exceptions.NotFound; |
|
39 | 38 |
import org.dataone.service.types.AuthToken; |
40 | 39 |
import org.dataone.service.types.Checksum; |
41 | 40 |
import org.dataone.service.types.ChecksumAlgorithm; |
... | ... | |
47 | 46 |
import org.dataone.service.types.ObjectFormat; |
48 | 47 |
import org.dataone.service.types.ObjectInfo; |
49 | 48 |
import org.dataone.service.types.ObjectList; |
50 |
import org.dataone.service.types.Principal;
|
|
49 |
import org.dataone.service.types.Subject;
|
|
51 | 50 |
import org.dataone.service.types.SystemMetadata; |
52 | 51 |
|
53 | 52 |
import edu.ucsb.nceas.MCTestCase; |
... | ... | |
921 | 920 |
//set the size |
922 | 921 |
sm.setSize(testDoc.getBytes(MetaCatServlet.DEFAULT_ENCODING).length); |
923 | 922 |
//submitter |
924 |
Principal p = new Principal();
|
|
923 |
Subject p = new Subject();
|
|
925 | 924 |
p.setValue("joe"); |
926 | 925 |
sm.setSubmitter(p); |
927 | 926 |
sm.setRightsHolder(p); |
Also available in: Unified diff
Modified Metacat to build against the D1_SCHEMA_0_6_1 branch of the dataone schemas by incorporating the 0.6.1-SNAPSHOT version of d1_common and d1_libclient libraries, and refactoring Metacat code references to the d1 schema changed types.