From: Jakub Morvay Date: Sun, 11 Nov 2018 20:55:16 +0000 (+0100) Subject: Fix continuation indentation in restconf UTs X-Git-Tag: release/neon~102 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=e0348041c1759f520f1f2993cc139647a41fb29e;p=netconf.git Fix continuation indentation in restconf UTs According to our java style guide, when line-wrapping, each line after the first (each continuation line) is indented at least +4 from the original line. Format RestconfSchemaServiceTest and ParserIdentifierTest according to that. Change-Id: Iac8ad245624c6d4a2bc2df635517d8c7d5d80fef Signed-off-by: Jakub Morvay --- diff --git a/restconf/restconf-nb-rfc8040/src/test/java/org/opendaylight/restconf/nb/rfc8040/services/simple/impl/RestconfSchemaServiceTest.java b/restconf/restconf-nb-rfc8040/src/test/java/org/opendaylight/restconf/nb/rfc8040/services/simple/impl/RestconfSchemaServiceTest.java index c74cd7a376..22278e304e 100644 --- a/restconf/restconf-nb-rfc8040/src/test/java/org/opendaylight/restconf/nb/rfc8040/services/simple/impl/RestconfSchemaServiceTest.java +++ b/restconf/restconf-nb-rfc8040/src/test/java/org/opendaylight/restconf/nb/rfc8040/services/simple/impl/RestconfSchemaServiceTest.java @@ -83,11 +83,13 @@ public class RestconfSchemaServiceTest { this.mountPointService = new DOMMountPointServiceImpl(); // create and register mount points - mountPointService.createMountPoint( - YangInstanceIdentifier.of(QName.create("mount:point:1", "2016-01-01", "cont"))) - .addInitialSchemaContext(schemaContextBehindMountPoint).register(); - mountPointService.createMountPoint( - YangInstanceIdentifier.of(QName.create("mount:point:2", "2016-01-01", "cont"))).register(); + mountPointService + .createMountPoint(YangInstanceIdentifier.of(QName.create("mount:point:1", "2016-01-01", "cont"))) + .addInitialSchemaContext(schemaContextBehindMountPoint) + .register(); + mountPointService + .createMountPoint(YangInstanceIdentifier.of(QName.create("mount:point:2", "2016-01-01", "cont"))) + .register(); this.schemaService = new RestconfSchemaServiceImpl(this.mockContextHandler, DOMMountPointServiceHandler.newInstance(mountPointService), sourceProvider); diff --git a/restconf/restconf-nb-rfc8040/src/test/java/org/opendaylight/restconf/nb/rfc8040/utils/parser/ParserIdentifierTest.java b/restconf/restconf-nb-rfc8040/src/test/java/org/opendaylight/restconf/nb/rfc8040/utils/parser/ParserIdentifierTest.java index 2ca00cf7a5..4d29d7eca7 100644 --- a/restconf/restconf-nb-rfc8040/src/test/java/org/opendaylight/restconf/nb/rfc8040/utils/parser/ParserIdentifierTest.java +++ b/restconf/restconf-nb-rfc8040/src/test/java/org/opendaylight/restconf/nb/rfc8040/utils/parser/ParserIdentifierTest.java @@ -115,11 +115,15 @@ public class ParserIdentifierTest { this.mountPointService = new DOMMountPointServiceImpl(); // create and register mount point - mountPoint = mountPointService.createMountPoint(YangInstanceIdentifier.builder() - .node(QName.create("mount:point", "2016-06-02", "mount-container")) - .node(QName.create("mount:point", "2016-06-02", "point-number")) - .build()) - .addInitialSchemaContext(this.schemaContextOnMountPoint).register().getInstance(); + final YangInstanceIdentifier mountPointId = YangInstanceIdentifier.builder() + .node(QName.create("mount:point", "2016-06-02", "mount-container")) + .node(QName.create("mount:point", "2016-06-02", "point-number")) + .build(); + + mountPoint = mountPointService.createMountPoint(mountPointId) + .addInitialSchemaContext(this.schemaContextOnMountPoint) + .register() + .getInstance(); // register mount point with null schema context when(this.mockMountPoint.getSchemaContext()).thenReturn(null);