You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by ab...@apache.org on 2020/07/20 11:44:47 UTC

[nifi-minifi-cpp] branch main updated: MINIFICPP-1297 - TestSuite called "Tests" should have a more talkative name

This is an automated email from the ASF dual-hosted git repository.

aboda pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi-minifi-cpp.git


The following commit(s) were added to refs/heads/main by this push:
     new 13403fb  MINIFICPP-1297 - TestSuite called "Tests" should have a more talkative name
13403fb is described below

commit 13403fb5a920c451081fcbc3050249d0ba0a462b
Author: Arpad Boda <ab...@apache.org>
AuthorDate: Fri Jul 17 09:07:20 2020 +0200

    MINIFICPP-1297 - TestSuite called "Tests" should have a more talkative name
    
    Signed-off-by: Arpad Boda <ab...@apache.org>
    
    This closes #841
    
    Approved by multiple contributors on GH
---
 libminifi/test/unit/Tests.cpp         | 25 -------------------------
 libminifi/test/unit/TimeUtilTests.cpp |  4 ++++
 2 files changed, 4 insertions(+), 25 deletions(-)

diff --git a/libminifi/test/unit/Tests.cpp b/libminifi/test/unit/Tests.cpp
deleted file mode 100644
index 705665d..0000000
--- a/libminifi/test/unit/Tests.cpp
+++ /dev/null
@@ -1,25 +0,0 @@
-/**
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You 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.
- */
-
-
-#include "utils/TimeUtil.h"
-#include "../TestBase.h"
-
-TEST_CASE("Test time conversion", "[testtimeconversion]") {
-  REQUIRE("2017-02-16 20:14:56.196" == getTimeStr(1487276096196, true));
-}
diff --git a/libminifi/test/unit/TimeUtilTests.cpp b/libminifi/test/unit/TimeUtilTests.cpp
index 94832db..d52535e 100644
--- a/libminifi/test/unit/TimeUtilTests.cpp
+++ b/libminifi/test/unit/TimeUtilTests.cpp
@@ -85,3 +85,7 @@ TEST_CASE("parseDateTimeStr() works correctly", "[parseDateTimeStr]") {
   REQUIRE(parseDateTimeStr("2024-01-30T23:01:15Z") == 1706655675);
   REQUIRE(parseDateTimeStr("2087-07-31T01:33:50Z") == 3710453630);
 }
+
+TEST_CASE("Test time conversion", "[testtimeconversion]") {
+  REQUIRE("2017-02-16 20:14:56.196" == getTimeStr(1487276096196, true));
+}