2 * Copyright (c) 2015 Huawei, Inc. and others. All rights reserved.
\r
4 * This program and the accompanying materials are made available under the
\r
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
\r
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
\r
8 package org.opendaylight.nemo.user.vnspacemanager.syntaxcheck;
\r
10 import static org.mockito.Mockito.mock;
\r
11 import static org.mockito.Mockito.verify;
\r
12 import junit.framework.TestCase;
\r
14 import org.junit.Assert;
\r
15 import org.junit.Before;
\r
16 import org.junit.Test;
\r
17 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.nemo.intent.rev151010.user.intent.objects.Node;
\r
20 * Created by Thomas Liu on 2015/11/11.
\r
22 public class NodeDefinitionCheckTest extends TestCase {
\r
25 private NodeDefinitionCheck nodeDefinitionCheckTest;
\r
27 public void setUp() throws Exception {
\r
28 node = mock(Node.class);
\r
29 nodeDefinitionCheckTest = mock(NodeDefinitionCheck.class);
\r
34 public void testCheckNodeDefinition() throws Exception {
\r
35 nodeDefinitionCheckTest.CheckNodeDefinition(node);
\r
36 Assert.assertNotNull(nodeDefinitionCheckTest);
\r
37 verify(nodeDefinitionCheckTest).CheckNodeDefinition(node);
\r