to increase code coverage
Issue-ID: APPC-1086
Change-Id: Id6718c61982a477373c8a5af76f7c7d6a61c43c1
Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
* ================================================================================
* Modifications Copyright (C) 2019 Ericsson
* =============================================================================
* ================================================================================
* Modifications Copyright (C) 2019 Ericsson
* =============================================================================
+ * 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
* 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
package org.onap.appc.listener.impl;
package org.onap.appc.listener.impl;
+import static org.junit.Assert.assertTrue;
+
import java.util.HashSet;
import java.util.Map;
import java.util.Properties;
import java.util.HashSet;
import java.util.Map;
import java.util.Properties;
new ControllerImpl(properties);
Mockito.verify(properties).remove(Mockito.any());
}
new ControllerImpl(properties);
Mockito.verify(properties).remove(Mockito.any());
}
+
+ @Test
+ public void testListeners() {
+ listenerProperties = Mockito.mock(ListenerProperties.class);
+ properties.add(listenerProperties);
+ assertTrue(new ControllerImpl(properties).getListeners() instanceof Map);
+
+ }
@Test
public void testStartException() throws NoSuchMethodException, SecurityException {
@Test
public void testStartException() throws NoSuchMethodException, SecurityException {