summaryrefslogtreecommitdiffstats
path: root/v3po/vpp-cfg-init/src/test/java/io/fd/honeycomb
diff options
context:
space:
mode:
authorMarek Gradzki <mgradzki@cisco.com>2016-04-11 21:23:57 +0200
committerMarek Gradzki <mgradzki@cisco.com>2016-04-12 11:05:25 +0200
commit3edb738db9c756d42ee5c0b6fa172b6f2caa808a (patch)
tree3307a73d795046623f51bf7819a38d60a3347d75 /v3po/vpp-cfg-init/src/test/java/io/fd/honeycomb
parent69b1d68a74561f786805809ad44052ba6cfe8eb7 (diff)
HONEYCOMB-34: Config tree initialization using binding data broker
Change-Id: I070aca2cc35dd10ea5bde19c8cbf4cad1c50f468 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Diffstat (limited to 'v3po/vpp-cfg-init/src/test/java/io/fd/honeycomb')
-rw-r--r--v3po/vpp-cfg-init/src/test/java/io/fd/honeycomb/v3po/vpp/data/init/InitializerRegistryImplTest.java9
1 files changed, 1 insertions, 8 deletions
diff --git a/v3po/vpp-cfg-init/src/test/java/io/fd/honeycomb/v3po/vpp/data/init/InitializerRegistryImplTest.java b/v3po/vpp-cfg-init/src/test/java/io/fd/honeycomb/v3po/vpp/data/init/InitializerRegistryImplTest.java
index d77ac3fe5..d562fb60c 100644
--- a/v3po/vpp-cfg-init/src/test/java/io/fd/honeycomb/v3po/vpp/data/init/InitializerRegistryImplTest.java
+++ b/v3po/vpp-cfg-init/src/test/java/io/fd/honeycomb/v3po/vpp/data/init/InitializerRegistryImplTest.java
@@ -19,7 +19,6 @@ package io.fd.honeycomb.v3po.vpp.data.init;
import static org.mockito.Mockito.verify;
import static org.mockito.MockitoAnnotations.initMocks;
-import java.util.ArrayList;
import java.util.Arrays;
import org.junit.Before;
import org.junit.Test;
@@ -34,18 +33,12 @@ public class InitializerRegistryImplTest {
@Mock(name="dti3")
private DataTreeInitializer dti3;
- private ArrayList<DataTreeInitializer> initializers;
-
private InitializerRegistryImpl initializerRegistry;
@Before
public void setUp() throws Exception {
initMocks(this);
- initializers = new ArrayList<>();
- initializers.add(dti1);
- initializers.add(dti2);
- initializers.add(dti3);
- initializerRegistry = new InitializerRegistryImpl(initializers);
+ initializerRegistry = new InitializerRegistryImpl(Arrays.asList(dti1, dti2, dti3));
}
@Test(expected = IllegalArgumentException.class)