Project

General

Profile

« Previous | Next » 

Revision 6840

cannot check for deleted data since it is forever available (archived)

View differences:

test/edu/ucsb/nceas/metacat/replication/ReplicationTest.java
347 347
			
348 348
			assertEquals(object, replicatedObject);
349 349
			
350
			// delete the object
351
			targetMetacat.delete(docid);
352 350
			
353
			// wait for replication (forced)
354
			Thread.sleep(forceReplicationSleep);
355
			
356
			// check that it is missing
357
			replicatedObject = null;
358
			try {
359
	    		is = m.read(docid);
360
				replicatedObject = IOUtils.toString(is, MetaCatServlet.DEFAULT_ENCODING);
361
			} catch (DocumentNotFoundException dnfe) {
362
				// expect this
363
				assertTrue(true);
364
			}
365
			assertNull(replicatedObject);
366
			
367
			
368 351
		} catch (Exception e) {
369 352
			e.printStackTrace();
370 353
			fail(e.getMessage());

Also available in: Unified diff