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.After;
7 import org.junit.Before;
10 public class AttributeEntryTest {
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;
19 public void setUp() throws Exception {
20 attributeEntryClient = new AttributeEntry("myKey", "myDescription", null, "myType", false);
24 public void testAttributeEntryGetters() throws Exception{
25 assertEquals(key, attributeEntryClient.getKey());
26 assertEquals(description, attributeEntryClient.getDescription());
27 final Object value = attributeEntryClient.getValue();
29 assertEquals(type, attributeEntryClient.getType());
30 assertEquals(boolValue, attributeEntryClient.isRw());