public class ControllerContextTest {
- private static final ControllerContext controllerContext = new ControllerContext();
+ private static final ControllerContext controllerContext = ControllerContext.getInstance();
@BeforeClass
public static void init() throws FileNotFoundException {
assertTrue(instanceIdentifier.getSchemaNode() instanceof ContainerSchemaNode);
assertEquals(2, ((ContainerSchemaNode)instanceIdentifier.getSchemaNode()).getChildNodes().size());
}
-
+
@Test
public void testToInstanceIdentifierChoice() throws FileNotFoundException {
InstanceIdWithSchemaNode instanceIdentifier = controllerContext.toInstanceIdentifier("simple-nodes:food/beer");