Fix license header violations in config-util
[controller.git] / opendaylight / config / config-util / src / test / java / org / opendaylight / controller / config / util / AttributeEntryTest.java
1 /*
2  * Copyright (c) 2014, 2015 Cisco Systems, 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
9 package org.opendaylight.controller.config.util;
10
11 import static org.junit.Assert.assertEquals;
12 import static org.junit.Assert.assertNull;
13
14 import org.junit.Before;
15 import org.junit.Test;
16
17 public class AttributeEntryTest {
18
19     private AttributeEntry attributeEntryClient;
20     private final String key = "myKey";
21     private final String description = "myDescription";
22     private final String type = "myType";
23     private final boolean boolValue = false;
24
25     @Before
26     public void setUp() throws Exception {
27         attributeEntryClient = new AttributeEntry("myKey", "myDescription", null, "myType", false);
28     }
29
30     @Test
31     public void testAttributeEntryGetters() throws Exception{
32         assertEquals(key, attributeEntryClient.getKey());
33         assertEquals(description, attributeEntryClient.getDescription());
34         final Object value = attributeEntryClient.getValue();
35         assertNull(value);
36         assertEquals(type, attributeEntryClient.getType());
37         assertEquals(boolValue, attributeEntryClient.isRw());
38     }
39 }