Fix continuation indentation in restconf UTs 72/77672/2
authorJakub Morvay <jmorvay@frinx.io>
Sun, 11 Nov 2018 20:55:16 +0000 (21:55 +0100)
committerJakub Morvay <jmorvay@frinx.io>
Mon, 12 Nov 2018 07:48:57 +0000 (08:48 +0100)
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 <jmorvay@frinx.io>
restconf/restconf-nb-rfc8040/src/test/java/org/opendaylight/restconf/nb/rfc8040/services/simple/impl/RestconfSchemaServiceTest.java
restconf/restconf-nb-rfc8040/src/test/java/org/opendaylight/restconf/nb/rfc8040/utils/parser/ParserIdentifierTest.java

index c74cd7a376e563a1c0e10fd296bf38605f49fbfa..22278e304eff049beecc891128eae092e1f9b5dc 100644 (file)
@@ -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);
index 2ca00cf7a55326e1d8c9a91f9eb9840f4dd3e5bf..4d29d7eca7e7fb8265c7907c90b760d9ea37f5bc 100644 (file)
@@ -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);