use of org.opendaylight.controller.md.sal.dom.api.DOMMountPointService.DOMMountPointBuilder in project controller by opendaylight.
the class MountPointServiceTest method createSimpleMountPoint.
@Test
public void createSimpleMountPoint() {
Optional<DOMMountPoint> mountNotPresent = mountService.getMountPoint(PATH);
assertFalse(mountNotPresent.isPresent());
DOMMountPointBuilder mountBuilder = mountService.createMountPoint(PATH);
mountBuilder.register();
Optional<DOMMountPoint> mountPresent = mountService.getMountPoint(PATH);
assertTrue(mountPresent.isPresent());
}
Aggregations