Ejemplo n.º 1
0
 /**
  * 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);
 }
Ejemplo n.º 2
0
 /**
  * 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);
 }