{
static final Node graphIRI = Node.createURI("http://example/graph") ;
@Test public void testCreateDrop1()
{
GraphStore gStore = getEmptyGraphStore() ;
Update u = new UpdateCreate(graphIRI) ;
UpdateAction.execute(u, gStore) ;
assertTrue(gStore.containsGraph(graphIRI)) ;
assertTrue(graphEmpty(gStore.getGraph(graphIRI))) ;
// With "auto SILENT" then these aren't errors.
boolean silentMode = true ;
if ( ! silentMode )
{
// try again - should fail (already exists)
try {
UpdateAction.execute(u, gStore) ;
fail() ;
} catch (UpdateException ex) {}
}
// Drop it.
u = new UpdateDrop(graphIRI) ;
UpdateAction.execute(u, gStore) ;
assertFalse(gStore.containsGraph(graphIRI)) ;
if ( ! silentMode )
{
// Drop it again. - should fail
try {