Fix Eclipse compilation errors and warnings
[nemo.git] / nemo-impl / src / test / java / org / opendaylight / nemo / intent / FlowManagerTest.java
1 /*
2  * Copyright (c) 2015 Huawei, Inc. and others. All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.nemo.intent;
9
10 import static org.mockito.Mockito.mock;
11
12 import org.junit.Assert;
13 import org.junit.Before;
14 import org.junit.Test;
15 import org.opendaylight.controller.md.sal.binding.api.DataBroker;
16 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.nemo.common.rev151010.UserId;
17 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.nemo.intent.rev151010.user.intent.objects.Flow;
18 /**
19  * Created by zhangmeng on 2015/11/9.
20  */
21 public class FlowManagerTest extends FlowManager {
22     public FlowManagerTest(){
23         super(mock(DataBroker.class));
24     }
25     private UserId userId ;
26     private Flow flow;
27     @Before
28     public void setUp() throws Exception {
29         userId = mock(UserId.class);
30         flow = mock(Flow.class);
31     }
32
33     @Test
34     public void testResolveFlow() throws Exception {
35         this.resolveFlow(userId,flow);
36         Assert.assertNotNull(this);
37     }
38 }