Revision 7668
Added by Jing Tao over 11 years ago
test/edu/ucsb/nceas/metacat/dataone/SolrQueryAccessFilterTest.java | ||
---|---|---|
104 | 104 |
Thread.sleep(10000); |
105 | 105 |
String resultId = query(querySession, id); |
106 | 106 |
assertTrue("In the testPublicReadable method, the query result should have the id "+id.getValue(), resultId.equals(id.getValue())); |
107 |
session = getSession(CREATEUSER, null); |
|
108 |
delete(session, id);
|
|
107 |
//session = getSession(CREATEUSER, null);
|
|
108 |
archive(session, id);
|
|
109 | 109 |
} |
110 | 110 |
|
111 | 111 |
|
... | ... | |
176 | 176 |
} |
177 | 177 |
|
178 | 178 |
/* |
179 |
* Delete the given id.
|
|
179 |
* Archive the given id.
|
|
180 | 180 |
*/ |
181 |
private void delete(Session session, Identifier id) throws Exception {
|
|
182 |
MNodeService.getInstance(request).delete(session, id);
|
|
181 |
private void archive(Session session, Identifier id) throws Exception {
|
|
182 |
MNodeService.getInstance(request).archive(session, id);
|
|
183 | 183 |
} |
184 | 184 |
|
185 | 185 |
|
Also available in: Unified diff
Change the delete to archive.