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