Merge "Bug 2731: Discard changes only when transaction exist."
[controller.git] / opendaylight / archetypes / opendaylight-startup / src / main / resources / archetype-resources / impl / src / test / java / __packageInPathFormat__ / impl / __classPrefix__ProviderTest.java
1 #set( $symbol_pound = '#' )
2 #set( $symbol_dollar = '$' )
3 #set( $symbol_escape = '\' )
4 #set( $provider = "${classPrefix}Provider" )
5 /*
6  * ${copyright} and others.  All rights reserved.
7  *
8  * This program and the accompanying materials are made available under the
9  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
10  * and is available at http://www.eclipse.org/legal/epl-v10.html
11  */
12 package ${package}.impl;
13
14 import org.junit.Test;
15 import org.opendaylight.controller.sal.binding.api.BindingAwareBroker;
16
17 import static org.mockito.Mockito.mock;
18
19 public class ${classPrefix}ProviderTest {
20     @Test
21     public void testOnSessionInitiated() {
22         ${provider} provider = new ${provider}();
23
24         // ensure no exceptions
25         // currently this method is empty
26         provider.onSessionInitiated(mock(BindingAwareBroker.ProviderContext.class));
27     }
28
29     @Test
30     public void testClose() throws Exception {
31         ${provider} provider = new ${provider}();
32
33         // ensure no exceptions
34         // currently this method is empty
35         provider.close();
36     }
37 }