/** * Assert to verify that all properly named instances collected via {@link #enableInstances} can * disappear. Uses {@link NbTestCase#assertGC} on each of them. * * @param msg message to display in case of potential failure * @param names list of names of instances to test for and verify that they disappear * @since 1.53 */ public static void assertInstances(String msg, String... names) { InstancesHandler.assertGC(msg, names); }
/** * Assert to verify that all collected instances via {@link #enableInstances} can disappear. Uses * {@link NbTestCase#assertGC} on each of them. * * @param msg message to display in case of potential failure */ public static void assertInstances(String msg) { InstancesHandler.assertGC(msg); }