diff options
author | Dilip kumar Pampana <dilip.kumar.pampana@ibm.com> | 2018-07-14 16:18:51 -0400 |
---|---|---|
committer | Dilip kumar Pampana <dilip.kumar.pampana@ibm.com> | 2018-07-16 18:49:01 +0000 |
commit | c9fd7e566a5ed23541d1e7a59388961f91cc370a (patch) | |
tree | c3bd328051b49faaa0fb55b78870d54b9dabfbd9 /appc-inbound/appc-design-services/provider/src/test | |
parent | 4982577ac5c50ab7446145998f6c321d9d7f3d75 (diff) |
Tests for appc-inbound/design-services
Test coverage for GetAppcTimestampUTC in inound/ design-services
Issue-ID: APPC-1078
Change-Id: I508c3bcebad5c7c35bd2257436ad3f4099eb8345
Signed-off-by: Dilip kumar Pampana <dilip.kumar.pampana@ibm.com>
Diffstat (limited to 'appc-inbound/appc-design-services/provider/src/test')
-rw-r--r-- | appc-inbound/appc-design-services/provider/src/test/java/org/onap/appc/design/validator/TestDBService.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/appc-inbound/appc-design-services/provider/src/test/java/org/onap/appc/design/validator/TestDBService.java b/appc-inbound/appc-design-services/provider/src/test/java/org/onap/appc/design/validator/TestDBService.java index 476dd0a2c..071c4b24d 100644 --- a/appc-inbound/appc-design-services/provider/src/test/java/org/onap/appc/design/validator/TestDBService.java +++ b/appc-inbound/appc-design-services/provider/src/test/java/org/onap/appc/design/validator/TestDBService.java @@ -5,6 +5,8 @@ * Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved. * ================================================================================ * Copyright (C) 2017 Amdocs + * ================================================================================ + * Copyright (C) 2018 IBM * ============================================================================= * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -23,6 +25,8 @@ package org.onap.appc.design.validator; +import static org.junit.Assert.assertTrue; + import java.io.File; import java.io.InputStream; import java.util.ArrayList; @@ -238,4 +242,12 @@ public class TestDBService { } catch (Exception e) { } } + @Test + public void testGetAppcTimestampUTC() throws Exception { + String requestId = "1234"; + DesignDBService design = DesignDBService.initialise(); + String result = Whitebox.invokeMethod(design, "getAppcTimestampUTC",requestId); + assertTrue(result.endsWith("Z")); + } + } |