Merge "BUG 1712 - Distributed DataStore does not work properly with Transaction...
[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.After;
7 import org.junit.Before;
8 import org.junit.Test;
9
10 public class AttributeEntryTest {
11
12     private AttributeEntry attributeEntryClient;
13     private final String key = "myKey";
14     private final String description = "myDescription";
15     private final String type = "myType";
16     private final boolean boolValue = false;
17
18     @Before
19     public void setUp() throws Exception {
20         attributeEntryClient = new AttributeEntry("myKey", "myDescription", null, "myType", false);
21     }
22
23     @Test
24     public void testAttributeEntryGetters() throws Exception{
25         assertEquals(key, attributeEntryClient.getKey());
26         assertEquals(description, attributeEntryClient.getDescription());
27         final Object value = attributeEntryClient.getValue();
28         assertNull(value);
29         assertEquals(type, attributeEntryClient.getType());
30         assertEquals(boolValue, attributeEntryClient.isRw());
31     }
32 }