diff options
author | Thomas Nelson <nelson24@att.com> | 2019-02-14 17:12:12 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-02-14 17:12:12 +0000 |
commit | c91215965fa4d6f19441fa96fd5c3b5910795057 (patch) | |
tree | 5b6a43dd9e4f83b775f134c6ead56c49b2a1a674 /src | |
parent | e24e8a72d55d4bf77d45295e15b3bb770282096f (diff) | |
parent | 4aa732938b34f57b12d064aff46df9151b6dd4f2 (diff) |
Merge "Added test case to improve code coverage"
Diffstat (limited to 'src')
-rw-r--r-- | src/test/java/org/onap/music/unittests/TestMusicCoreIntegration.java | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/src/test/java/org/onap/music/unittests/TestMusicCoreIntegration.java b/src/test/java/org/onap/music/unittests/TestMusicCoreIntegration.java index 7242d542..f7a22d64 100644 --- a/src/test/java/org/onap/music/unittests/TestMusicCoreIntegration.java +++ b/src/test/java/org/onap/music/unittests/TestMusicCoreIntegration.java @@ -1,7 +1,9 @@ /* * ============LICENSE_START========================================== org.onap.music - * =================================================================== Copyright (c) 2017 AT&T - * Intellectual Property =================================================================== + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property + * Modifications Copyright (c) 2019 IBM + * =================================================================== * 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 * @@ -177,5 +179,17 @@ public class TestMusicCoreIntegration { String data1 = new String(data); assertEquals("I'm Test", data1); } + @Test + public void Test13_ParameterizedConstructorCall() throws MusicServiceException, MusicQueryException { + MusicZKCore.mLockHandle = new MusicLockingService("localhost"); + ResultType result = ResultType.FAILURE; + testObject = new PreparedQueryObject(); + testObject.appendQueryString(CassandraCQL.createKeySpace); + musicZkCore.eventualPut(testObject); + testObject = new PreparedQueryObject(); + testObject.appendQueryString(CassandraCQL.createTableEmployees); + result = musicZkCore.nonKeyRelatedPut(testObject, MusicUtil.EVENTUAL); + assertEquals(ResultType.SUCCESS, result); + } } |