summaryrefslogtreecommitdiffstats
path: root/tools/tools-common/src/main
diff options
context:
space:
mode:
authorRossC <ross.carter@est.tech>2020-05-07 13:25:34 +0100
committerRossC <ross.carter@est.tech>2020-05-08 14:57:56 +0100
commitea317372413753320db681efb9a1e469c3776f42 (patch)
tree33fd9dcc743783146057b2c4f45c051c140ce077 /tools/tools-common/src/main
parent5b0b7fac53c587307832119657a31b64926797a3 (diff)
Unit tests for various classes
Issue-ID: POLICY-1916 Change-Id: Ie7cafa16ce12ca542a4e76307caddb36b7753990 Signed-off-by: RossC <ross.carter@est.tech>
Diffstat (limited to 'tools/tools-common/src/main')
-rw-r--r--tools/tools-common/src/main/java/org/onap/policy/apex/tools/common/OutputFile.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/tools/tools-common/src/main/java/org/onap/policy/apex/tools/common/OutputFile.java b/tools/tools-common/src/main/java/org/onap/policy/apex/tools/common/OutputFile.java
index 59d15d19d..5b386861a 100644
--- a/tools/tools-common/src/main/java/org/onap/policy/apex/tools/common/OutputFile.java
+++ b/tools/tools-common/src/main/java/org/onap/policy/apex/tools/common/OutputFile.java
@@ -1,6 +1,7 @@
/*-
* ============LICENSE_START=======================================================
* Copyright (C) 2016-2018 Ericsson. All rights reserved.
+ * Modifications Copyright (c) 2020 Nordix Foundation.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -116,10 +117,6 @@ public class OutputFile {
* @return null on success, an error message on error
*/
public String validate() {
- if (StringUtils.isBlank(fileName)) {
- return "file name was blank";
- }
-
final File file = toFile();
if (file.exists()) {
if (!overwrite) {