Fix checkstyle/Sonar issues on juint/sonar fixes 71/82671/1
authorliamfallon <liam.fallon@est.tech>
Tue, 19 Mar 2019 12:52:20 +0000 (12:52 +0000)
committerliamfallon <liam.fallon@est.tech>
Tue, 19 Mar 2019 12:52:20 +0000 (12:52 +0000)
Recent changes to increase code coverage and fox Sonar bugs have
introduced checkstyle and further Sonar issues. This review
cleans those up.

Issue-ID: POLICY-1523
Change-Id: I829217ef77d52e57f9713cfeee5b122e1f25efbc
Signed-off-by: liamfallon <liam.fallon@est.tech>
33 files changed:
auth/cli-codegen/src/main/java/org/onap/policy/apex/auth/clicodegen/CodeGeneratorCliEditor.java
model/model-api/src/main/java/org/onap/policy/apex/model/modelapi/impl/ApexModelImpl.java
model/model-api/src/main/java/org/onap/policy/apex/model/modelapi/impl/ContextAlbumBuilder.java
model/model-api/src/main/java/org/onap/policy/apex/model/modelapi/impl/ContextAlbumFacade.java
model/policy-model/src/main/java/org/onap/policy/apex/model/policymodel/concepts/AxTask.java
plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-jms/src/test/java/org/onap/policy/apex/plugins/event/carrier/jms/ApexJmsConsumerTest.java
plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-jms/src/test/java/org/onap/policy/apex/plugins/event/carrier/jms/ApexJmsProducerTest.java
plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-jms/src/test/java/org/onap/policy/apex/plugins/event/carrier/jms/JmsCarrierTechnologyParametersTest.java
plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restserver/src/test/java/org/onap/policy/apex/plugins/event/carrier/restserver/ApexRestServerConsumerTest.java
plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restserver/src/test/java/org/onap/policy/apex/plugins/event/carrier/restserver/ApexRestServerProducerTest.java
plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restserver/src/test/java/org/onap/policy/apex/plugins/event/carrier/restserver/RestServerCarrierTechnologyParametersTest.java
plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-websocket/src/test/java/org/onap/policy/apex/plugins/event/carrier/websocket/ApexWebSocketConsumerTest.java
plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-websocket/src/test/java/org/onap/policy/apex/plugins/event/carrier/websocket/ApexWebSocketProducerTest.java
plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-websocket/src/test/java/org/onap/policy/apex/plugins/event/carrier/websocket/WebSocketCarrierTechnologyParametersTest.java
plugins/plugins-executor/plugins-executor-javascript/src/main/java/org/onap/policy/apex/plugins/executor/javascript/JavascriptStateFinalizerExecutor.java
plugins/plugins-executor/plugins-executor-javascript/src/main/java/org/onap/policy/apex/plugins/executor/javascript/JavascriptTaskExecutor.java
plugins/plugins-executor/plugins-executor-javascript/src/main/java/org/onap/policy/apex/plugins/executor/javascript/JavascriptTaskSelectExecutor.java
plugins/plugins-executor/plugins-executor-javascript/src/test/java/org/onap/policy/apex/plugins/executor/javascript/JavascriptExecutorParametersTest.java
plugins/plugins-executor/plugins-executor-javascript/src/test/java/org/onap/policy/apex/plugins/executor/javascript/JavascriptStateFinalizerExecutorTest.java
plugins/plugins-executor/plugins-executor-javascript/src/test/java/org/onap/policy/apex/plugins/executor/javascript/JavascriptTaskExecutorTest.java
plugins/plugins-executor/plugins-executor-javascript/src/test/java/org/onap/policy/apex/plugins/executor/javascript/JavascriptTaskSelectExecutorTest.java
plugins/plugins-executor/plugins-executor-jruby/src/test/java/org/onap/policy/apex/plugins/executor/jruby/JrubyExecutorParametersTest.java
plugins/plugins-executor/plugins-executor-jruby/src/test/java/org/onap/policy/apex/plugins/executor/jruby/JrubyStateFinalizerExecutorTest.java
plugins/plugins-executor/plugins-executor-jruby/src/test/java/org/onap/policy/apex/plugins/executor/jruby/JrubyTaskExecutorTest.java
plugins/plugins-executor/plugins-executor-jruby/src/test/java/org/onap/policy/apex/plugins/executor/jruby/JrubyTaskSelectExecutorTest.java
plugins/plugins-executor/plugins-executor-jython/src/test/java/org/onap/policy/apex/plugins/executor/jython/JythonExecutorParametersTest.java
plugins/plugins-executor/plugins-executor-jython/src/test/java/org/onap/policy/apex/plugins/executor/jython/JythonStateFinalizerExecutorTest.java
plugins/plugins-executor/plugins-executor-jython/src/test/java/org/onap/policy/apex/plugins/executor/jython/JythonTaskExecutorTest.java
plugins/plugins-executor/plugins-executor-jython/src/test/java/org/onap/policy/apex/plugins/executor/jython/JythonTaskSelectExecutorTest.java
plugins/plugins-executor/plugins-executor-mvel/src/test/java/org/onap/policy/apex/plugins/executor/mvel/MvelExecutorParametersTest.java
plugins/plugins-executor/plugins-executor-mvel/src/test/java/org/onap/policy/apex/plugins/executor/mvel/MvelStateFinalizerExecutorTest.java
plugins/plugins-executor/plugins-executor-mvel/src/test/java/org/onap/policy/apex/plugins/executor/mvel/MvelTaskExecutorTest.java
plugins/plugins-executor/plugins-executor-mvel/src/test/java/org/onap/policy/apex/plugins/executor/mvel/MvelTaskSelectExecutorTest.java

index 4c3583e..fb9a8c6 100644 (file)
@@ -2,6 +2,7 @@
  * ============LICENSE_START=======================================================
  *  Copyright (C) 2016-2018 Ericsson. All rights reserved.
  *  Modifications Copyright (C) 2019 Samsung Electronics Co., Ltd.
+ *  Modifications Copyright (C) 2019 Nordix Foundation.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -269,15 +270,7 @@ public class CodeGeneratorCliEditor {
     /**
      * Adds a new task declaration to the model.
      *
-     * @param name the name of the task
-     * @param version the version of the task
-     * @param uuid a UUID for the definition
-     * @param description a description of the task
-     * @param infields all infields for the task
-     * @param outfields all outfields for the task
-     * @param logic the logic for the task
-     * @param parameters any task parameter
-     * @param contextRefs any context reference
+     * @param taskDeclarationBuilder builder for the task declaration parameters
      */
     public void addTaskDeclaration(TaskDeclarationBuilder taskDeclarationBuilder) {
         final ST st = stg.getInstanceOf("taskDecl");
@@ -400,14 +393,7 @@ public class CodeGeneratorCliEditor {
     /**
      * Creates a new policy state task definition for a task which belongs to a state which belongs to a policy.
      *
-     * @param policyName the name of the policy
-     * @param version the version of the policy
-     * @param stateName the name of the new state
-     * @param taskLocalName the local (in policy and state) name of the task
-     * @param taskName the identifier of the task (previously defined as a task)
-     * @param taskVersion the version of the task definition
-     * @param outputType the output type
-     * @param outputName the output name
+     * @param policyStateTaskBuilder builder for the state task parameters
      * @return a CLI command for a policy state task definition
      */
     public ST createPolicyStateTask(PolicyStateTaskBuilder policyStateTaskBuilder) {
@@ -452,18 +438,7 @@ public class CodeGeneratorCliEditor {
     /**
      * Creates a new policy state definition for a state which belongs to a policy.
      *
-     * @param policyName the name of the policy
-     * @param version the version of the policy
-     * @param stateName the name of the new state
-     * @param triggerName the name of the trigger event
-     * @param triggerVersion the version of the trigger event
-     * @param defaultTask the identifier of the default task
-     * @param defaultTaskVersion the version of the default task
-     * @param outputs the output definitions of the state
-     * @param tasks the task definition of the state
-     * @param tsLogic the task selection logic of the state
-     * @param finalizerLogics the finalizer logics for the state
-     * @param ctxRefs any context reference for the state
+     * @param policyStateDefBuilder builder for the state definition parameters
      * @return a CLI command for a policy state definition
      */
     public ST createPolicyStateDef(PolicyStateDefBuilder policyStateDefBuilder) {
index 615ed2d..6719dea 100644 (file)
@@ -2,6 +2,7 @@
  * ============LICENSE_START=======================================================
  *  Copyright (C) 2016-2018 Ericsson. All rights reserved.
  *  Modifications Copyright (C) 2019 Samsung Electronics Co., Ltd.
+ *  Modifications Copyright (C) 2019 Nordix Foundation.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -371,65 +372,39 @@ public final class ApexModelImpl implements ApexModel {
         return eventFacade.deleteEventPar(name, version, parName);
     }
 
-  /*
-   * (non-Javadoc)
-   *
-   * @see org.onap.policy.apex.model.modelapi.ApexEditorAPI#createContextAlbum(java.lang.String,
-   * java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String,
-   * java.lang.String, java.lang.String)
-   */
-  @Override
-  // CHECKSTYLE:OFF: checkstyle:parameterNumber
-  public ApexApiResult createContextAlbum(
-      final String name,
-      final String version,
-      final String scope,
-      final String writable,
-      final String contextSchemaName,
-      final String contextSchemaVersion,
-      final String uuid,
-      final String description) {
-    return contextAlbumFacade.createContextAlbum(
-        new ContextAlbumBuilder()
-            .setName(name)
-            .setVersion(version)
-            .setScope(scope)
-            .setWritable(writable)
-            .setContextSchemaName(contextSchemaName)
-            .setContextSchemaVersion(contextSchemaVersion)
-            .setUuid(uuid)
-            .setDescription(description));
-    }
-  // CHECKSTYLE:ON: checkstyle:parameterNumber
-
-  /*
-   * (non-Javadoc)
-   *
-   * @see org.onap.policy.apex.model.modelapi.ApexEditorAPI#updateContextAlbum(java.lang.String,
-   * java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String,
-   * java.lang.String, java.lang.String)
-   */
-  // CHECKSTYLE:OFF: checkstyle:parameterNumber
-  @Override
-  public ApexApiResult updateContextAlbum(
-      final String name,
-      final String version,
-      final String scope,
-      final String writable,
-      final String contextSchemaName,
-      final String contextSchemaVersion,
-      final String uuid,
-      final String description) {
-    return contextAlbumFacade.updateContextAlbum(
-        new ContextAlbumBuilder()
-            .setName(name)
-            .setVersion(version)
-            .setScope(scope)
-            .setWritable(writable)
-            .setContextSchemaName(contextSchemaName)
-            .setContextSchemaVersion(contextSchemaVersion)
-            .setUuid(uuid)
-            .setDescription(description));
+    /*
+     * (non-Javadoc)
+     *
+     * @see org.onap.policy.apex.model.modelapi.ApexEditorAPI#createContextAlbum(java.lang.String,
+     * java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String,
+     * java.lang.String, java.lang.String)
+     */
+    @Override
+    // CHECKSTYLE:OFF: checkstyle:parameterNumber
+    public ApexApiResult createContextAlbum(final String name, final String version, final String scope,
+            final String writable, final String contextSchemaName, final String contextSchemaVersion, final String uuid,
+            final String description) {
+        return contextAlbumFacade.createContextAlbum(new ContextAlbumBuilder().setName(name).setVersion(version)
+                .setScope(scope).setWritable(writable).setContextSchemaName(contextSchemaName)
+                .setContextSchemaVersion(contextSchemaVersion).setUuid(uuid).setDescription(description));
+    }
+    // CHECKSTYLE:ON: checkstyle:parameterNumber
+
+    /*
+     * (non-Javadoc)
+     *
+     * @see org.onap.policy.apex.model.modelapi.ApexEditorAPI#updateContextAlbum(java.lang.String,
+     * java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String,
+     * java.lang.String, java.lang.String)
+     */
+    // CHECKSTYLE:OFF: checkstyle:parameterNumber
+    @Override
+    public ApexApiResult updateContextAlbum(final String name, final String version, final String scope,
+            final String writable, final String contextSchemaName, final String contextSchemaVersion, final String uuid,
+            final String description) {
+        return contextAlbumFacade.updateContextAlbum(new ContextAlbumBuilder().setName(name).setVersion(version)
+                .setScope(scope).setWritable(writable).setContextSchemaName(contextSchemaName)
+                .setContextSchemaVersion(contextSchemaVersion).setUuid(uuid).setDescription(description));
     }
     // CHECKSTYLE:ON: checkstyle:parameterNumber
 
@@ -970,25 +945,12 @@ public final class ApexModelImpl implements ApexModel {
      */
     @Override
     // CHECKSTYLE:OFF: checkstyle:parameterNumber
-    public ApexApiResult createPolicyStateTaskRef(
-            final String name,
-            final String version,
-            final String stateName,
-            final String taskLocalName,
-            final String taskName,
-            final String taskVersion,
-            final String outputType,
+    public ApexApiResult createPolicyStateTaskRef(final String name, final String version, final String stateName,
+            final String taskLocalName, final String taskName, final String taskVersion, final String outputType,
             final String outputName) {
-        return policyFacade.createPolicyStateTaskRef(
-                new CreatePolicyStateTaskRefBuilder()
-                .setName(name)
-                .setVersion(version)
-                .setStateName(stateName)
-                .setTaskLocalName(taskLocalName)
-                .setTaskName(taskName)
-                .setTaskVersion(taskVersion)
-                .setOutputType(outputType)
-                .setOutputName(outputName));
+        return policyFacade.createPolicyStateTaskRef(new CreatePolicyStateTaskRefBuilder().setName(name)
+                .setVersion(version).setStateName(stateName).setTaskLocalName(taskLocalName).setTaskName(taskName)
+                .setTaskVersion(taskVersion).setOutputType(outputType).setOutputName(outputName));
     }
     // CHECKSTYLE:ON: checkstyle:parameterNumber
 
index 88ee648..937a16e 100644 (file)
@@ -1,6 +1,7 @@
 /*-
  * ============LICENSE_START=======================================================
  *  Copyright (C) 2019 Samsung Electronics Co., Ltd. All rights reserved.
+ *  Modifications Copyright (C) 2019 Nordix Foundation.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * SPDX-License-Identifier: Apache-2.0
  * ============LICENSE_END=========================================================
  */
+
 package org.onap.policy.apex.model.modelapi.impl;
 
 public class ContextAlbumBuilder {
-  private String name;
-  private String version;
-  private String scope;
-  private String writable;
-  private String contextSchemaName;
-  private String contextSchemaVersion;
-  private String uuid;
-  private String description;
-
-  public String getName() {
-    return name;
-  }
-
-  public ContextAlbumBuilder setName(String name) {
-    this.name = name;
-    return this;
-  }
-
-  public String getVersion() {
-    return version;
-  }
-
-  public ContextAlbumBuilder setVersion(String version) {
-    this.version = version;
-    return this;
-  }
-
-  public String getScope() {
-    return scope;
-  }
-
-  public ContextAlbumBuilder setScope(String scope) {
-    this.scope = scope;
-    return this;
-  }
-
-  public String getWritable() {
-    return writable;
-  }
-
-  public ContextAlbumBuilder setWritable(String writable) {
-    this.writable = writable;
-    return this;
-  }
-
-  public String getContextSchemaName() {
-    return contextSchemaName;
-  }
-
-  public ContextAlbumBuilder setContextSchemaName(String contextSchemaName) {
-    this.contextSchemaName = contextSchemaName;
-    return this;
-  }
-
-  public String getContextSchemaVersion() {
-    return contextSchemaVersion;
-  }
-
-  public ContextAlbumBuilder setContextSchemaVersion(String contextSchemaVersion) {
-    this.contextSchemaVersion = contextSchemaVersion;
-    return this;
-  }
-
-  public String getUuid() {
-    return uuid;
-  }
-
-  public ContextAlbumBuilder setUuid(String uuid) {
-    this.uuid = uuid;
-    return this;
-  }
-
-  public String getDescription() {
-    return description;
-  }
-
-  public ContextAlbumBuilder setDescription(String description) {
-    this.description = description;
-    return this;
-  }
+    private String name;
+    private String version;
+    private String scope;
+    private String writable;
+    private String contextSchemaName;
+    private String contextSchemaVersion;
+    private String uuid;
+    private String description;
+
+    public String getName() {
+        return name;
+    }
+
+    public ContextAlbumBuilder setName(String name) {
+        this.name = name;
+        return this;
+    }
+
+    public String getVersion() {
+        return version;
+    }
+
+    public ContextAlbumBuilder setVersion(String version) {
+        this.version = version;
+        return this;
+    }
+
+    public String getScope() {
+        return scope;
+    }
+
+    public ContextAlbumBuilder setScope(String scope) {
+        this.scope = scope;
+        return this;
+    }
+
+    public String getWritable() {
+        return writable;
+    }
+
+    public ContextAlbumBuilder setWritable(String writable) {
+        this.writable = writable;
+        return this;
+    }
+
+    public String getContextSchemaName() {
+        return contextSchemaName;
+    }
+
+    public ContextAlbumBuilder setContextSchemaName(String contextSchemaName) {
+        this.contextSchemaName = contextSchemaName;
+        return this;
+    }
+
+    public String getContextSchemaVersion() {
+        return contextSchemaVersion;
+    }
+
+    public ContextAlbumBuilder setContextSchemaVersion(String contextSchemaVersion) {
+        this.contextSchemaVersion = contextSchemaVersion;
+        return this;
+    }
+
+    public String getUuid() {
+        return uuid;
+    }
+
+    public ContextAlbumBuilder setUuid(String uuid) {
+        this.uuid = uuid;
+        return this;
+    }
+
+    public String getDescription() {
+        return description;
+    }
+
+    public ContextAlbumBuilder setDescription(String description) {
+        this.description = description;
+        return this;
+    }
 }
index 920dc5e..dfc29b3 100644 (file)
@@ -2,19 +2,20 @@
  * ============LICENSE_START=======================================================
  *  Copyright (C) 2016-2018 Ericsson. All rights reserved.
  *  Modifications Copyright (C) 2019 Samsung Electronics Co., Ltd.
+ *  Modifications Copyright (C) 2019 Nordix Foundation.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- * 
+ *
  * SPDX-License-Identifier: Apache-2.0
  * ============LICENSE_END=========================================================
  */
@@ -61,7 +62,8 @@ public class ContextAlbumFacade {
      * @param apexModel the apex model
      * @param apexProperties Properties for the model
      * @param jsonMode set to true to return JSON strings in list and delete operations, otherwise
-     *        set to false
+     *        set to false *  Modifications Copyright (C) 2019 Nordix Foundation.
+
      */
     public ContextAlbumFacade(final ApexModel apexModel, final Properties apexProperties, final boolean jsonMode) {
         this.apexModel = apexModel;
@@ -71,140 +73,98 @@ public class ContextAlbumFacade {
         keyInformationFacade = new KeyInformationFacade(apexModel, apexProperties, jsonMode);
     }
 
-  /**
-   * Create a context album.
-   *
-   * @param name name of the context album
-   * @param version version of the context album, set to null to use the default version
-   * @param scope of the context album
-   * @param writable "true" or "t" if the context album is writable, set to null or any other value
-   *     for a read-only album
-   * @param contextSchemaName name of the parameter context schema
-   * @param contextSchemaVersion version of the parameter context schema, set to null to use the
-   *     latest version
-   * @param uuid context album UUID, set to null to generate a UUID
-   * @param description context album description, set to null to generate a description
-   * @return result of the operation
-   */
-  // CHECKSTYLE:OFF: checkstyle:parameterNumber
-  public ApexApiResult createContextAlbum(ContextAlbumBuilder builder) {
-    try {
-      final AxArtifactKey key = new AxArtifactKey();
-      key.setName(builder.getName());
-      if (builder.getVersion() != null) {
-        key.setVersion(builder.getVersion());
-      } else {
-        key.setVersion(apexProperties.getProperty("DEFAULT_CONCEPT_VERSION"));
-      }
+    /**
+     * Create a context album.
+     *
+     * @param builder the builder for the context album parameters
+     * @return result of the operation
+     */
+    // CHECKSTYLE:OFF: checkstyle:parameterNumber
+    public ApexApiResult createContextAlbum(ContextAlbumBuilder builder) {
+        try {
+            final AxArtifactKey key = new AxArtifactKey();
+            key.setName(builder.getName());
+            if (builder.getVersion() != null) {
+                key.setVersion(builder.getVersion());
+            } else {
+                key.setVersion(apexProperties.getProperty("DEFAULT_CONCEPT_VERSION"));
+            }
 
-      if (apexModel.getPolicyModel().getAlbums().getAlbumsMap().containsKey(key)) {
-        return new ApexApiResult(
-            ApexApiResult.Result.CONCEPT_EXISTS, CONCEPT + key.getId() + " already exists");
-      }
+            if (apexModel.getPolicyModel().getAlbums().getAlbumsMap().containsKey(key)) {
+                return new ApexApiResult(ApexApiResult.Result.CONCEPT_EXISTS,
+                        CONCEPT + key.getId() + " already exists");
+            }
 
-      final AxContextSchema schema =
-          apexModel
-              .getPolicyModel()
-              .getSchemas()
-              .get(builder.getContextSchemaName(), builder.getContextSchemaVersion());
-      if (schema == null) {
-        return new ApexApiResult(
-            ApexApiResult.Result.CONCEPT_DOES_NOT_EXIST,
-            CONCEPT
-                + builder.getContextSchemaName()
-                + ':'
-                + builder.getContextSchemaVersion()
-                + DOES_NOT_EXIST);
-      }
+            final AxContextSchema schema = apexModel.getPolicyModel().getSchemas().get(builder.getContextSchemaName(),
+                    builder.getContextSchemaVersion());
+            if (schema == null) {
+                return new ApexApiResult(ApexApiResult.Result.CONCEPT_DOES_NOT_EXIST, CONCEPT
+                        + builder.getContextSchemaName() + ':' + builder.getContextSchemaVersion() + DOES_NOT_EXIST);
+            }
 
-      final AxContextAlbum contextAlbum = new AxContextAlbum(key);
-      contextAlbum.setScope(builder.getScope());
-      contextAlbum.setItemSchema(schema.getKey());
+            final AxContextAlbum contextAlbum = new AxContextAlbum(key);
+            contextAlbum.setScope(builder.getScope());
+            contextAlbum.setItemSchema(schema.getKey());
 
-      if (builder.getWritable() != null
-          && ("true".equalsIgnoreCase(builder.getWritable().trim())
-              || "t".equalsIgnoreCase(builder.getWritable().trim()))) {
-        contextAlbum.setWritable(true);
-      } else {
-        contextAlbum.setWritable(false);
-      }
+            contextAlbum
+                    .setWritable(builder.getWritable() != null && ("true".equalsIgnoreCase(builder.getWritable().trim())
+                            || "t".equalsIgnoreCase(builder.getWritable().trim())));
 
-      apexModel.getPolicyModel().getAlbums().getAlbumsMap().put(key, contextAlbum);
+            apexModel.getPolicyModel().getAlbums().getAlbumsMap().put(key, contextAlbum);
 
-      if (apexModel.getPolicyModel().getKeyInformation().getKeyInfoMap().containsKey(key)) {
-        return keyInformationFacade.updateKeyInformation(
-            builder.getName(), builder.getVersion(), builder.getUuid(), builder.getDescription());
-      } else {
-        return keyInformationFacade.createKeyInformation(
-            builder.getName(), builder.getVersion(), builder.getUuid(), builder.getDescription());
-      }
-    } catch (final Exception e) {
-      return new ApexApiResult(ApexApiResult.Result.FAILED, e);
-    }
+            if (apexModel.getPolicyModel().getKeyInformation().getKeyInfoMap().containsKey(key)) {
+                return keyInformationFacade.updateKeyInformation(builder.getName(), builder.getVersion(),
+                        builder.getUuid(), builder.getDescription());
+            } else {
+                return keyInformationFacade.createKeyInformation(builder.getName(), builder.getVersion(),
+                        builder.getUuid(), builder.getDescription());
+            }
+        } catch (final Exception e) {
+            return new ApexApiResult(ApexApiResult.Result.FAILED, e);
+        }
     }
-  // CHECKSTYLE:ON: checkstyle:parameterNumber
+    // CHECKSTYLE:ON: checkstyle:parameterNumber
 
-  /**
-   * Update a context album.
-   *
-   * @param name name of the context album
-   * @param version version of the context album, set to null to use the default version
-   * @param scope of the context album
-   * @param writable "true" or "t" if the context album is writable, set to null or any other value
-   *     for a read-only album
-   * @param contextSchemaName name of the parameter context schema
-   * @param contextSchemaVersion version of the parameter context schema, set to null to use the
-   *     latest version
-   * @param uuid context album UUID, set to null to generate a UUID
-   * @param description context album description, set to null to generate a description
-   * @return result of the operation
-   */
-  // CHECKSTYLE:OFF: checkstyle:parameterNumber
-  public ApexApiResult updateContextAlbum(ContextAlbumBuilder builder) {
-    try {
-      final AxContextAlbum contextAlbum =
-          apexModel.getPolicyModel().getAlbums().get(builder.getName(), builder.getVersion());
-      if (contextAlbum == null) {
-        return new ApexApiResult(
-            ApexApiResult.Result.CONCEPT_DOES_NOT_EXIST,
-            CONCEPT + builder.getName() + ':' + builder.getVersion() + DOES_NOT_EXIST);
-      }
+    /**
+     * Update a context album.
+     *
+     * @param builder the builder for the context album parameters
+     * @return result of the operation
+     */
+    // CHECKSTYLE:OFF: checkstyle:parameterNumber
+    public ApexApiResult updateContextAlbum(ContextAlbumBuilder builder) {
+        try {
+            final AxContextAlbum contextAlbum =
+                    apexModel.getPolicyModel().getAlbums().get(builder.getName(), builder.getVersion());
+            if (contextAlbum == null) {
+                return new ApexApiResult(ApexApiResult.Result.CONCEPT_DOES_NOT_EXIST,
+                        CONCEPT + builder.getName() + ':' + builder.getVersion() + DOES_NOT_EXIST);
+            }
 
-      if (builder.getScope() != null) {
-        contextAlbum.setScope(builder.getScope());
-      }
-      if (builder.getWritable() != null) {
-        if ("true".equalsIgnoreCase(builder.getWritable().trim())
-            || "t".equalsIgnoreCase(builder.getWritable().trim())) {
-          contextAlbum.setWritable(true);
-        } else {
-          contextAlbum.setWritable(false);
-        }
-      }
+            if (builder.getScope() != null) {
+                contextAlbum.setScope(builder.getScope());
+            }
 
-      if (builder.getContextSchemaName() != null) {
-        final AxContextSchema schema =
-            apexModel
-                .getPolicyModel()
-                .getSchemas()
-                .get(builder.getContextSchemaName(), builder.getContextSchemaVersion());
-        if (schema == null) {
-          return new ApexApiResult(
-              ApexApiResult.Result.CONCEPT_DOES_NOT_EXIST,
-              CONCEPT
-                  + builder.getContextSchemaName()
-                  + ':'
-                  + builder.getContextSchemaVersion()
-                  + DOES_NOT_EXIST);
-        }
-        contextAlbum.setItemSchema(schema.getKey());
-      }
+            contextAlbum
+                    .setWritable(builder.getWritable() != null && ("true".equalsIgnoreCase(builder.getWritable().trim())
+                            || "t".equalsIgnoreCase(builder.getWritable().trim())));
 
-      return keyInformationFacade.updateKeyInformation(
-          builder.getName(), builder.getVersion(), builder.getUuid(), builder.getDescription());
-    } catch (final Exception e) {
-      return new ApexApiResult(ApexApiResult.Result.FAILED, e);
-    }
+            if (builder.getContextSchemaName() != null) {
+                final AxContextSchema schema = apexModel.getPolicyModel().getSchemas()
+                        .get(builder.getContextSchemaName(), builder.getContextSchemaVersion());
+                if (schema == null) {
+                    return new ApexApiResult(ApexApiResult.Result.CONCEPT_DOES_NOT_EXIST,
+                            CONCEPT + builder.getContextSchemaName() + ':' + builder.getContextSchemaVersion()
+                                    + DOES_NOT_EXIST);
+                }
+                contextAlbum.setItemSchema(schema.getKey());
+            }
+
+            return keyInformationFacade.updateKeyInformation(builder.getName(), builder.getVersion(), builder.getUuid(),
+                    builder.getDescription());
+        } catch (final Exception e) {
+            return new ApexApiResult(ApexApiResult.Result.FAILED, e);
+        }
     }
     // CHECKSTYLE:ON: checkstyle:parameterNumber
 
index bbf749a..7db1c7c 100644 (file)
@@ -527,7 +527,7 @@ public class AxTask extends AxConcept {
             AxValidationResult result) {
         if (taskParameterEntry.getValue() == null) {
             result.addValidationMessage(new AxValidationMessage(key, this.getClass(), ValidationResult.INVALID,
-                    "null input task parameer value found on task parameter " + taskParameterEntry.getKey()));
+                    "null input task parameter value found on task parameter " + taskParameterEntry.getKey()));
         } else {
             if (!taskParameterEntry.getValue().getKey().getParentArtifactKey().equals(key)) {
                 result.addValidationMessage(new AxValidationMessage(key, this.getClass(), ValidationResult.INVALID,
index 4c10cef..a032af6 100644 (file)
@@ -1,6 +1,7 @@
 /*-
  * ============LICENSE_START=======================================================
  *  Copyright (C) 2019 Samsung. All rights reserved.
+ *  Modifications Copyright (C) 2019 Nordix Foundation.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -17,6 +18,7 @@
  * SPDX-License-Identifier: Apache-2.0
  * ============LICENSE_END=========================================================
  */
+
 package org.onap.policy.apex.plugins.event.carrier.jms;
 
 import static org.junit.Assert.assertNotNull;
index 4773296..e981f41 100644 (file)
@@ -1,6 +1,7 @@
 /*-
  * ============LICENSE_START=======================================================
  *  Copyright (C) 2019 Samsung. All rights reserved.
+ *  Modifications Copyright (C) 2019 Nordix Foundation.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -17,6 +18,7 @@
  * SPDX-License-Identifier: Apache-2.0
  * ============LICENSE_END=========================================================
  */
+
 package org.onap.policy.apex.plugins.event.carrier.jms;
 
 import static org.junit.Assert.assertNotNull;
index 32d7124..18fc1f6 100644 (file)
@@ -1,6 +1,7 @@
 /*-
  * ============LICENSE_START=======================================================
  *  Copyright (C) 2019 Samsung. All rights reserved.
+ *  Modifications Copyright (C) 2019 Nordix Foundation.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -17,6 +18,7 @@
  * SPDX-License-Identifier: Apache-2.0
  * ============LICENSE_END=========================================================
  */
+
 package org.onap.policy.apex.plugins.event.carrier.jms;
 
 import static org.junit.Assert.assertEquals;
index a86ffb1..02daed0 100644 (file)
@@ -1,6 +1,7 @@
 /*-
  * ============LICENSE_START=======================================================
  *  Copyright (C) 2019 Samsung. All rights reserved.
+ *  Modifications Copyright (C) 2019 Nordix Foundation.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * SPDX-License-Identifier: Apache-2.0
  * ============LICENSE_END=========================================================
  */
+
 package org.onap.policy.apex.plugins.event.carrier.restserver;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertNotNull;
 import static org.junit.Assert.assertNull;
+
 import java.lang.reflect.Field;
 import javax.ws.rs.core.Response;
 import org.junit.After;
index a286336..4ee8e35 100644 (file)
@@ -1,6 +1,7 @@
 /*-
  * ============LICENSE_START=======================================================
  *  Copyright (C) 2019 Samsung. All rights reserved.
+ *  Modifications Copyright (C) 2019 Nordix Foundation.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * SPDX-License-Identifier: Apache-2.0
  * ============LICENSE_END=========================================================
  */
+
 package org.onap.policy.apex.plugins.event.carrier.restserver;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertNotNull;
 import static org.junit.Assert.assertNull;
+
 import java.lang.reflect.Field;
 import org.junit.After;
 import org.junit.Before;
index 1980053..dbe20c9 100644 (file)
@@ -1,6 +1,7 @@
 /*-
  * ============LICENSE_START=======================================================
  *  Copyright (C) 2019 Samsung. All rights reserved.
+ *  Modifications Copyright (C) 2019 Nordix Foundation.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * SPDX-License-Identifier: Apache-2.0
  * ============LICENSE_END=========================================================
  */
+
 package org.onap.policy.apex.plugins.event.carrier.restserver;
 
 import static org.junit.Assert.assertFalse;
 import static org.junit.Assert.assertNotNull;
 import static org.junit.Assert.assertTrue;
+
 import java.lang.reflect.Field;
 import org.junit.Before;
 import org.junit.Test;
index cb04adc..3021b8a 100644 (file)
@@ -1,6 +1,7 @@
 /*-
  * ============LICENSE_START=======================================================
  *  Copyright (C) 2019 Samsung. All rights reserved.
+ *  Modifications Copyright (C) 2019 Nordix Foundation.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * SPDX-License-Identifier: Apache-2.0
  * ============LICENSE_END=========================================================
  */
+
 package org.onap.policy.apex.plugins.event.carrier.websocket;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertNotNull;
 import static org.junit.Assert.assertNull;
+
 import org.junit.After;
 import org.junit.Before;
 import org.junit.Test;
index 21069fc..b97f42f 100644 (file)
@@ -1,6 +1,7 @@
 /*-
  * ============LICENSE_START=======================================================
  *  Copyright (C) 2019 Samsung. All rights reserved.
+ *  Modifications Copyright (C) 2019 Nordix Foundation.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * SPDX-License-Identifier: Apache-2.0
  * ============LICENSE_END=========================================================
  */
+
 package org.onap.policy.apex.plugins.event.carrier.websocket;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertNotNull;
 import static org.junit.Assert.assertNull;
+
 import org.junit.After;
 import org.junit.Before;
 import org.junit.Test;
index fc449fc..1ab7321 100644 (file)
@@ -1,6 +1,7 @@
 /*-
  * ============LICENSE_START=======================================================
  *  Copyright (C) 2019 Samsung. All rights reserved.
+ *  Modifications Copyright (C) 2019 Nordix Foundation.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -17,6 +18,7 @@
  * SPDX-License-Identifier: Apache-2.0
  * ============LICENSE_END=========================================================
  */
+
 package org.onap.policy.apex.plugins.event.carrier.websocket;
 
 import static org.junit.Assert.assertFalse;
index 2e32bb6..c906a9c 100644 (file)
@@ -1,6 +1,7 @@
 /*-
  * ============LICENSE_START=======================================================
  *  Copyright (C) 2016-2018 Ericsson. All rights reserved.
+ *  Modifications Copyright (C) 2019 Nordix Foundation.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -84,7 +85,6 @@ public class JavascriptStateFinalizerExecutor extends StateFinalizerExecutor {
         engine.put("executor", getExecutionContext());
 
         // Check and execute the Javascript logic
-        boolean returnValue = false;
         try {
             if (compiled == null) {
                 engine.eval(getSubject().getLogic());
index af6db11..4b6ff02 100644 (file)
@@ -1,6 +1,7 @@
 /*-
  * ============LICENSE_START=======================================================
  *  Copyright (C) 2016-2018 Ericsson. All rights reserved.
+ *  Modifications Copyright (C) 2019 Nordix Foundation.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -83,7 +84,6 @@ public class JavascriptTaskExecutor extends TaskExecutor {
         engine.put("executor", getExecutionContext());
 
         // Check and execute the Javascript logic
-        boolean returnValue = false;
         try {
             if (compiled == null) {
                 engine.eval(getSubject().getTaskLogic().getLogic());
index 80b005f..305f3a2 100644 (file)
@@ -1,6 +1,7 @@
 /*-
  * ============LICENSE_START=======================================================
  *  Copyright (C) 2016-2018 Ericsson. All rights reserved.
+ *  Modifications Copyright (C) 2019 Nordix Foundation.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -90,7 +91,6 @@ public class JavascriptTaskSelectExecutor extends TaskSelectExecutor {
         engine.put("executor", getExecutionContext());
 
         // Check and execute the Javascript logic
-        boolean returnValue = false;
         try {
             if (compiled == null) {
                 engine.eval(getSubject().getTaskSelectionLogic().getLogic());
index eabfd44..5b23584 100644 (file)
@@ -1,6 +1,6 @@
 /*-
  * ============LICENSE_START=======================================================
- *  Copyright (C) 2019 Ericsson. All rights reserved.
+ *  Copyright (C) 2019 Nordix Foundation.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -21,6 +21,7 @@
 package org.onap.policy.apex.plugins.executor.javascript;
 
 import static org.junit.Assert.assertNotNull;
+
 import org.junit.Test;
 
 /**
index 6ab9cb6..4dd403e 100644 (file)
@@ -1,6 +1,6 @@
 /*-
  * ============LICENSE_START=======================================================
- *  Copyright (C) 2019 Ericsson. All rights reserved.
+ *  Copyright (C) 2019 Nordix Foundation.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -23,6 +23,7 @@ package org.onap.policy.apex.plugins.executor.javascript;
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertNotNull;
 import static org.junit.Assert.fail;
+
 import java.util.HashMap;
 import java.util.Map;
 import org.junit.After;
index b98e2c0..50610b2 100644 (file)
@@ -1,6 +1,6 @@
 /*-
  * ============LICENSE_START=======================================================
- *  Copyright (C) 2019 Ericsson. All rights reserved.
+ *  Copyright (C) 2019 Nordix Foundation.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -23,6 +23,7 @@ package org.onap.policy.apex.plugins.executor.javascript;
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertNotNull;
 import static org.junit.Assert.fail;
+
 import java.util.HashMap;
 import java.util.Map;
 import org.junit.After;
index 1c99b32..17c0be1 100644 (file)
@@ -1,6 +1,6 @@
 /*-
  * ============LICENSE_START=======================================================
- *  Copyright (C) 2019 Ericsson. All rights reserved.
+ *  Copyright (C) 2019 Nordix Foundation.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -23,6 +23,7 @@ package org.onap.policy.apex.plugins.executor.javascript;
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertNotNull;
 import static org.junit.Assert.fail;
+
 import org.junit.After;
 import org.junit.Before;
 import org.junit.Test;
index 6e35aaf..4cfd7a1 100644 (file)
@@ -1,6 +1,6 @@
 /*-\r
  * ============LICENSE_START=======================================================\r
- *  Copyright (C) 2019 Ericsson. All rights reserved.\r
+ *  Copyright (C) 2019 Nordix Foundation.\r
  * ================================================================================\r
  * Licensed under the Apache License, Version 2.0 (the "License");\r
  * you may not use this file except in compliance with the License.\r
@@ -21,6 +21,7 @@
 package org.onap.policy.apex.plugins.executor.jruby;\r
 \r
 import static org.junit.Assert.assertNotNull;\r
+\r
 import org.junit.Test;\r
 \r
 /**\r
index 1c2ea1c..c49d502 100644 (file)
@@ -1,6 +1,6 @@
 /*-\r
  * ============LICENSE_START=======================================================\r
- *  Copyright (C) 2019 Ericsson. All rights reserved.\r
+ *  Copyright (C) 2019 Nordix Foundation.\r
  * ================================================================================\r
  * Licensed under the Apache License, Version 2.0 (the "License");\r
  * you may not use this file except in compliance with the License.\r
@@ -23,6 +23,7 @@ package org.onap.policy.apex.plugins.executor.jruby;
 import static org.junit.Assert.assertEquals;\r
 import static org.junit.Assert.assertNotNull;\r
 import static org.junit.Assert.fail;\r
+\r
 import java.lang.reflect.Field;\r
 import org.junit.After;\r
 import org.junit.Before;\r
index 8822710..5fa9865 100644 (file)
@@ -1,6 +1,6 @@
 /*-\r
  * ============LICENSE_START=======================================================\r
- *  Copyright (C) 2019 Ericsson. All rights reserved.\r
+ *  Copyright (C) 2019 Nordix Foundation.\r
  * ================================================================================\r
  * Licensed under the Apache License, Version 2.0 (the "License");\r
  * you may not use this file except in compliance with the License.\r
@@ -23,6 +23,7 @@ package org.onap.policy.apex.plugins.executor.jruby;
 import static org.junit.Assert.assertEquals;\r
 import static org.junit.Assert.assertNotNull;\r
 import static org.junit.Assert.fail;\r
+\r
 import java.lang.reflect.Field;\r
 import java.util.HashMap;\r
 import java.util.Map;\r
index 3914fb5..6320b59 100644 (file)
@@ -1,6 +1,6 @@
 /*-\r
  * ============LICENSE_START=======================================================\r
- *  Copyright (C) 2019 Ericsson. All rights reserved.\r
+ *  Copyright (C) 2019 Nordix Foundation.\r
  * ================================================================================\r
  * Licensed under the Apache License, Version 2.0 (the "License");\r
  * you may not use this file except in compliance with the License.\r
@@ -23,6 +23,7 @@ package org.onap.policy.apex.plugins.executor.jruby;
 import static org.junit.Assert.assertEquals;\r
 import static org.junit.Assert.assertNotNull;\r
 import static org.junit.Assert.fail;\r
+\r
 import java.lang.reflect.Field;\r
 import org.junit.After;\r
 import org.junit.Before;\r
index 8bfde0a..7c5e829 100644 (file)
@@ -1,6 +1,6 @@
 /*-
  * ============LICENSE_START=======================================================
- *  Copyright (C) 2019 Ericsson. All rights reserved.
+ *  Copyright (C) 2019 Nordix Foundation.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -21,6 +21,7 @@
 package org.onap.policy.apex.plugins.executor.jython;
 
 import static org.junit.Assert.assertNotNull;
+
 import org.junit.Test;
 
 /**
index 2ae41d6..76e35e8 100644 (file)
@@ -1,6 +1,6 @@
 /*-
  * ============LICENSE_START=======================================================
- *  Copyright (C) 2019 Ericsson. All rights reserved.
+ *  Copyright (C) 2019 Nordix Foundation.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -23,6 +23,7 @@ package org.onap.policy.apex.plugins.executor.jython;
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertNotNull;
 import static org.junit.Assert.fail;
+
 import java.util.Map;
 import java.util.TreeMap;
 import org.junit.After;
@@ -105,8 +106,7 @@ public class JythonStateFinalizerExecutorTest {
         AxState state = new AxState();
         Map<String, AxStateOutput> stateOutputs = new TreeMap<>();
         AxArtifactKey triggerKey = new AxArtifactKey("TriggerName", "0.0.1");
-        AxStateOutput isMe = new AxStateOutput(new AxReferenceKey(), triggerKey,
-                new AxReferenceKey());
+        AxStateOutput isMe = new AxStateOutput(new AxReferenceKey(), triggerKey, new AxReferenceKey());
         stateOutputs.put("SelectedOutputIsMe", isMe);
         state.setStateOutputs(stateOutputs);
 
@@ -141,12 +141,12 @@ public class JythonStateFinalizerExecutorTest {
 
         scriptSource = "setattr(executor, 'selectedStateOutputName', 'SelectedOutputIsMe')\n"
                 + "returnValue=('' if executor == -1 else True)";
-          stateFinalizerLogic.setLogic(scriptSource);
-         try {
-             jsfe.prepare();
-         } catch (Exception jteException) {
-             fail("test should not throw an exception here");
-         }
+        stateFinalizerLogic.setLogic(scriptSource);
+        try {
+            jsfe.prepare();
+        } catch (Exception jteException) {
+            fail("test should not throw an exception here");
+        }
 
         AxEvent axEvent = new AxEvent(new AxArtifactKey("Event", "0.0.1"));
         EnEvent event = new EnEvent(axEvent);
index 97af4b1..aec7470 100644 (file)
@@ -1,6 +1,6 @@
 /*-
  * ============LICENSE_START=======================================================
- *  Copyright (C) 2019 Ericsson. All rights reserved.
+ *  Copyright (C) 2019 Nordix Foundation.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -23,6 +23,7 @@ package org.onap.policy.apex.plugins.executor.jython;
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertNotNull;
 import static org.junit.Assert.fail;
+
 import java.util.HashMap;
 import java.util.Map;
 import org.junit.After;
index d54887a..7874b23 100644 (file)
@@ -1,6 +1,6 @@
 /*-
  * ============LICENSE_START=======================================================
- *  Copyright (C) 2019 Ericsson. All rights reserved.
+ *  Copyright (C) 2019 Nordix Foundation.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -23,6 +23,7 @@ package org.onap.policy.apex.plugins.executor.jython;
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertNotNull;
 import static org.junit.Assert.fail;
+
 import org.junit.After;
 import org.junit.Before;
 import org.junit.Test;
index 987af43..81dc037 100644 (file)
@@ -1,6 +1,6 @@
 /*-
  * ============LICENSE_START=======================================================
- *  Copyright (C) 2019 Ericsson. All rights reserved.
+ *  Copyright (C) 2019 Nordix Foundation.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
index ac25031..948dd31 100644 (file)
@@ -1,6 +1,6 @@
 /*-
  * ============LICENSE_START=======================================================
- *  Copyright (C) 2019 Ericsson. All rights reserved.
+ *  Copyright (C) 2019 Nordix Foundation.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -55,6 +55,7 @@ import org.slf4j.ext.XLoggerFactory;
 public class MvelStateFinalizerExecutorTest {
 
     private static final XLogger LOGGER = XLoggerFactory.getXLogger(MvelStateFinalizerExecutorTest.class);
+
     /**
      * Initiate Parameters.
      */
index 5d65a4b..0759aac 100644 (file)
@@ -1,6 +1,6 @@
 /*-
  * ============LICENSE_START=======================================================
- *  Copyright (C) 2019 Ericsson. All rights reserved.
+ *  Copyright (C) 2019 Nordix Foundation.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
index 7c585ee..fd4857f 100644 (file)
@@ -1,6 +1,6 @@
 /*-
  * ============LICENSE_START=======================================================
- *  Copyright (C) 2019 Ericsson. All rights reserved.
+ *  Copyright (C) 2019 Nordix Foundation.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.