diff options
author | 2018-03-01 13:38:34 -0500 | |
---|---|---|
committer | 2018-03-01 13:38:52 -0500 | |
commit | e4b4698dd337651821a0a8bfc4b207e80ac0520e (patch) | |
tree | 683b854c55c15b49e28b9c4b53d58c0dc25cf1cb /src/test/java/com/att/nsa/cambria/beans/DMaaPCambriaLimiterTest2.java | |
parent | 907bb776273e1bf41331609c51dc520c3d4fa181 (diff) |
added testcases for code coverage
Issue-ID: DMAAP-271
Change-Id: Ied157de1ed476c67bcc6d5f7b13a90127e036533
Signed-off-by: Sunil Unnava <su622b@att.com>
Diffstat (limited to 'src/test/java/com/att/nsa/cambria/beans/DMaaPCambriaLimiterTest2.java')
-rw-r--r-- | src/test/java/com/att/nsa/cambria/beans/DMaaPCambriaLimiterTest2.java | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/src/test/java/com/att/nsa/cambria/beans/DMaaPCambriaLimiterTest2.java b/src/test/java/com/att/nsa/cambria/beans/DMaaPCambriaLimiterTest2.java deleted file mode 100644 index 8b90c2b..0000000 --- a/src/test/java/com/att/nsa/cambria/beans/DMaaPCambriaLimiterTest2.java +++ /dev/null @@ -1,59 +0,0 @@ -/*-
- * ============LICENSE_START=======================================================
- * ONAP Policy Engine
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- * 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
- *
- * 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.
- * ============LICENSE_END=========================================================
- */
-
-package com.att.nsa.cambria.beans;
-
-import static org.junit.Assert.*;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-
-import com.att.nsa.cambria.CambriaApiException;
-
-public class DMaaPCambriaLimiterTest2 {
-
- @Before
- public void setUp() throws Exception {
- }
-
- @After
- public void tearDown() throws Exception {
- }
-
- @Test
- public void testOnCall() {
-
- DMaaPCambriaLimiter limiter = new DMaaPCambriaLimiter(3, 3);
- try {
- limiter.onCall("testTopic", "ConsumerGroup1", "client2");
- } catch (CambriaApiException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
-
- String trueValue = "True";
- assertTrue(trueValue.equalsIgnoreCase("True"));
-
- }
-
-
-
-}
|