1 package org.opendaylight.controller.config.util;
3 import static org.junit.Assert.assertEquals;
4 import static org.junit.Assert.assertNull;
5 import org.junit.Before;
8 public class AttributeEntryTest {
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;
17 public void setUp() throws Exception {
18 attributeEntryClient = new AttributeEntry("myKey", "myDescription", null, "myType", false);
22 public void testAttributeEntryGetters() throws Exception{
23 assertEquals(key, attributeEntryClient.getKey());
24 assertEquals(description, attributeEntryClient.getDescription());
25 final Object value = attributeEntryClient.getValue();
27 assertEquals(type, attributeEntryClient.getType());
28 assertEquals(boolValue, attributeEntryClient.isRw());