diff options
Diffstat (limited to 'appc-inbound/appc-design-services')
-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")); + } + } |