Search in sources :

Example 1 with DOMMountPointBuilder

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());
}
Also used : DOMMountPointBuilder(org.opendaylight.controller.md.sal.dom.api.DOMMountPointService.DOMMountPointBuilder) DOMMountPoint(org.opendaylight.controller.md.sal.dom.api.DOMMountPoint) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 DOMMountPoint (org.opendaylight.controller.md.sal.dom.api.DOMMountPoint)1 DOMMountPointBuilder (org.opendaylight.controller.md.sal.dom.api.DOMMountPointService.DOMMountPointBuilder)1