use of org.mule.module.artifact.classloader.DefaultResourceReleaser in project mule by mulesoft.
the class ResourceReleaserTestCase method deregisterJdbcDriversSameClassLoaders.
@Test
public void deregisterJdbcDriversSameClassLoaders() throws Exception {
Driver jdbcDriver = mock(Driver.class);
registerDriver(jdbcDriver);
assertThat(list(getDrivers()), hasItem(jdbcDriver));
new DefaultResourceReleaser().release();
assertThat(list(getDrivers()), not(hasItem(jdbcDriver)));
}
Aggregations