File tree Expand file tree Collapse file tree
src/test/java/gov/loc/repository/bagit/verify Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2727import gov .loc .repository .bagit .exceptions .MissingBagitFileException ;
2828import gov .loc .repository .bagit .exceptions .MissingPayloadDirectoryException ;
2929import gov .loc .repository .bagit .exceptions .MissingPayloadManifestException ;
30+ import gov .loc .repository .bagit .exceptions .PayloadOxumDoesNotExistException ;
3031import gov .loc .repository .bagit .hash .StandardSupportedAlgorithms ;
3132import gov .loc .repository .bagit .reader .BagReader ;
3233
@@ -65,6 +66,13 @@ public void testQuickVerify() throws Exception{
6566 sut .quicklyVerify (bag , true );
6667 }
6768
69+ @ Test (expected =PayloadOxumDoesNotExistException .class )
70+ public void testExceptionIsThrownWhenPayloadOxumDoesntExist () throws Exception {
71+ Bag bag = reader .read (rootDir );
72+ sut .quicklyVerify (bag , true );
73+
74+ }
75+
6876 @ Test (expected =InvalidPayloadOxumException .class )
6977 public void testInvalidByteSizeForQuickVerify () throws Exception {
7078 Path badRootDir = Paths .get (getClass ().getClassLoader ().getResource ("badPayloadOxumByteSize/bag" ).toURI ());
You can’t perform that action at this time.
0 commit comments