Bug-915: Adding static document generation.
[controller.git] / opendaylight / config / config-util / src / test / java / org / opendaylight / controller / config / util / AttributeEntryTest.java
1 package org.opendaylight.controller.config.util;
2
3 import static org.junit.Assert.assertEquals;
4 import static org.junit.Assert.assertNull;
5 import org.junit.Before;
6 import org.junit.Test;
7
8 public class AttributeEntryTest {
9
10     private AttributeEntry attributeEntryClient;
11     private final String key = "myKey";
12     private final String description = "myDescription";
13     private final String type = "myType";
14     private final boolean boolValue = false;
15
16     @Before
17     public void setUp() throws Exception {
18         attributeEntryClient = new AttributeEntry("myKey", "myDescription", null, "myType", false);
19     }
20
21     @Test
22     public void testAttributeEntryGetters() throws Exception{
23         assertEquals(key, attributeEntryClient.getKey());
24         assertEquals(description, attributeEntryClient.getDescription());
25         final Object value = attributeEntryClient.getValue();
26         assertNull(value);
27         assertEquals(type, attributeEntryClient.getType());
28         assertEquals(boolValue, attributeEntryClient.isRw());
29     }
30 }