aboutsummaryrefslogtreecommitdiffstats
path: root/src/test
diff options
context:
space:
mode:
authorJegadeesh Babu <jegabab1@in.ibm.com>2019-02-11 19:23:52 +0530
committerJegadeesh Babu <jegabab1@in.ibm.com>2019-02-13 07:29:18 +0000
commit4aa732938b34f57b12d064aff46df9151b6dd4f2 (patch)
treef4c8e976ce25c511b9f1d22de822873d15f3fc7b /src/test
parentdd899213724ceaab3bb141dfb5cbf4eb7b89404a (diff)
Added test case to improve code coverage
Added test case to improve code coverage Issue-ID: MUSIC-324 Change-Id: I0bec3c6a1d890cd920fe9a21de7e75590114f48d Signed-off-by: Jegadeesh Babu <jegabab1@in.ibm.com>
Diffstat (limited to 'src/test')
-rw-r--r--src/test/java/org/onap/music/unittests/TestMusicCoreIntegration.java18
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);
+ }
}