File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
exist-core/src/test/java/org/exist/xquery/update Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -53,10 +53,11 @@ public void setUp() throws Exception {
5353 collectionService = (CollectionManagementService ) exist .getRoot ().getService ("CollectionManagementService" ,"1.0" );
5454
5555 testCollection = collectionService .createCollection (TEST_COLLECTION_URI .lastSegment ().toString ());
56- final XMLResource doc = (XMLResource ) testCollection .createResource (TEST_XML_URI .toString (), XMLResource .RESOURCE_TYPE );
56+ try ( final XMLResource doc = (XMLResource ) testCollection .createResource (TEST_XML_URI .toString (), XMLResource .RESOURCE_TYPE )) {
5757
58- doc .setContent ("<list><item>initial</item></list>" );
59- testCollection .storeResource (doc );
58+ doc .setContent ("<list><item>initial</item></list>" );
59+ testCollection .storeResource (doc );
60+ };
6061 }
6162
6263 @ After
You can’t perform that action at this time.
0 commit comments