Merge "Bug-915: Adding static document generation. Currently the API Explorer can...
[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
6 import org.junit.Before;
7 import org.junit.Test;
8
9 public class AttributeEntryTest {
10
11     private AttributeEntry attributeEntryClient;
12     private final String key = "myKey";
13     private final String description = "myDescription";
14     private final String type = "myType";
15     private final boolean boolValue = false;
16
17     @Before
18     public void setUp() throws Exception {
19         attributeEntryClient = new AttributeEntry("myKey", "myDescription", null, "myType", false);
20     }
21
22     @Test
23     public void testAttributeEntryGetters() throws Exception{
24         assertEquals(key, attributeEntryClient.getKey());
25         assertEquals(description, attributeEntryClient.getDescription());
26         final Object value = attributeEntryClient.getValue();
27         assertNull(value);
28         assertEquals(type, attributeEntryClient.getType());
29         assertEquals(boolValue, attributeEntryClient.isRw());
30     }
31 }