throw a EntryAlreadyExistsStoreException if a blob with the given id already exists

This commit is contained in:
Sebastian Sdorra
2012-12-07 14:25:55 +01:00
parent 202d1741cd
commit fe1621a9d3
4 changed files with 78 additions and 4 deletions

View File

@@ -122,6 +122,17 @@ public abstract class BlobStoreTestBase extends AbstractTestBase
assertEquals("Other Text", read(blob));
}
/**
* Method description
*
*/
@Test(expected = EntryAlreadyExistsStoreException.class)
public void testCreateAlreadyExistingEntry()
{
assertNotNull(store.create("1"));
store.create("1");
}
/**
* Method description
*