@Test void testCloseDataset() throws Exception { final Dataset mockDataset = mock(Dataset.class); doThrow(new IOException()).when(mockDataset).close(); assertThrows(TrellisRuntimeException.class, () -> WebDAVUtils.closeDataset(mockDataset)); }
public static void closeDataset(final Dataset dataset) { try { dataset.close(); } catch (final Exception ex) { throw new TrellisRuntimeException("Error closing dataset", ex); } }
WebDAVUtils { public static void closeDataset(final Dataset dataset) { try { dataset.close(); } catch (final Exception ex) { throw new TrellisRuntimeException("Error closing dataset", ex); } } }
WebDAVUtils { public static void closeDataset(final Dataset dataset) { try { dataset.close(); } catch (final Exception ex) { throw new TrellisRuntimeException("Error closing dataset", ex); } } private  WebDAVUtils(); }
WebDAVUtils { public static void closeDataset(final Dataset dataset) { try { dataset.close(); } catch (final Exception ex) { throw new TrellisRuntimeException("Error closing dataset", ex); } } private  WebDAVUtils(); static void recursiveDelete(final ServiceBundler services, final Session session, final IRI identifier,
            final String baseUrl); static void closeDataset(final Dataset dataset); static CompletionStage<Void> recursiveCopy(final ServiceBundler services, final Session session,
            final IRI identifier, final IRI destination, final String baseUrl); static CompletionStage<Void> recursiveCopy(final ServiceBundler services, final Session session,
            final Resource resource, final IRI destination, final String baseUrl); static CompletionStage<Void> depth1Copy(final ServiceBundler services, final Session session,
            final Resource resource, final IRI destination, final String baseUrl); static CompletionStage<Void> copy(final ServiceBundler services, final Session session,
            final IRI identifier, final IRI destination, final String baseUrl); static CompletionStage<Void> copy(final ServiceBundler services, final Session session,
            final Resource resource, final IRI destination, final String baseUrl); static Function<Quad, Quad> skolemizeQuads(final ResourceService service, final String baseUrl); static String getLastSegment(final List<PathSegment> segments); static String getAllButLastSegment(final List<PathSegment> segments); static String externalUrl(final IRI identifier, final String baseUrl); }
WebDAVUtils { public static void closeDataset(final Dataset dataset) { try { dataset.close(); } catch (final Exception ex) { throw new TrellisRuntimeException("Error closing dataset", ex); } } private  WebDAVUtils(); static void recursiveDelete(final ServiceBundler services, final Session session, final IRI identifier,
            final String baseUrl); static void closeDataset(final Dataset dataset); static CompletionStage<Void> recursiveCopy(final ServiceBundler services, final Session session,
            final IRI identifier, final IRI destination, final String baseUrl); static CompletionStage<Void> recursiveCopy(final ServiceBundler services, final Session session,
            final Resource resource, final IRI destination, final String baseUrl); static CompletionStage<Void> depth1Copy(final ServiceBundler services, final Session session,
            final Resource resource, final IRI destination, final String baseUrl); static CompletionStage<Void> copy(final ServiceBundler services, final Session session,
            final IRI identifier, final IRI destination, final String baseUrl); static CompletionStage<Void> copy(final ServiceBundler services, final Session session,
            final Resource resource, final IRI destination, final String baseUrl); static Function<Quad, Quad> skolemizeQuads(final ResourceService service, final String baseUrl); static String getLastSegment(final List<PathSegment> segments); static String getAllButLastSegment(final List<PathSegment> segments); static String externalUrl(final IRI identifier, final String baseUrl);  }