mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-11 07:55:47 +01:00
throw a EntryAlreadyExistsStoreException if a blob with the given id already exists
This commit is contained in:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user