RCLJava { public static Node createNode(final String defaultName) { RCLJava.logger.debug("Initialize Node stack..."); return RCLJava.createNode(null, defaultName); } private  RCLJava(); static void rclJavaInit(final String... args); static boolean isInitialized(); static Node createNode(final String defaultName); static Node createNode(final String namespace, final String defaultName); static void spinOnce(final Node node); static void spin(final Node node); static boolean ok(); static void shutdown(); static String getRMWIdentifier(); static String getTypesupportIdentifier(); @SuppressWarnings("PMD.AvoidUsingNativeCode") static void setRMWImplementation(final String rmwImplementation); @SuppressWarnings("PMD.AvoidUsingNativeCode") static void loadLibrary(final String name); static long convertQoSProfileToHandle(final QoSProfile qosProfile); static void disposeQoSProfile(final long qosProfileHandle);  }
@Test public final void testCreateNode() { logger.debug(new Object(){}.getClass().getEnclosingMethod().getName()); boolean test = true; Node node = null; this.initRCLjava(); try { node = RCLJava.createNode("testNode"); node.getName(); node.close(); } catch (Exception e) { test = false; } finally { this.releaseRCLjava(); } Assert.assertTrue(ERROR_RUNTIME, test); }