blob: 23a2b1b41eed0758aaebe0e6e331763d158d57ba [file] [log] [blame]
Simon Hunt338a3b42016-04-14 09:43:52 -07001/*
2 * Copyright 2016-present Open Networking Laboratory
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package org.onosproject.ui.impl.topo.model;
18
19import org.junit.Test;
20import org.onosproject.event.EventDispatcher;
21
22import static org.junit.Assert.assertEquals;
23
24/**
25 * Unit tests for {@link ModelCache}.
26 */
27public class ModelCacheTest extends AbstractModelTest {
28
29 private static final EventDispatcher DISPATCHER = event -> {
30 // Do we care?
31 };
32
33 private ModelCache cache;
34
35 @Test
36 public void basic() {
37 cache = new ModelCache(DISPATCHER);
38 print(cache);
39 assertEquals("unex # members", 0, cache.clusterMemberCount());
40 assertEquals("unex # regions", 0, cache.regionCount());
41 }
42
43}