2 * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.opendaylight.controller.config.util;
11 import static org.junit.Assert.assertEquals;
12 import static org.junit.Assert.assertNull;
14 import org.junit.Before;
15 import org.junit.Test;
17 public class AttributeEntryTest {
19 private AttributeEntry attributeEntryClient;
20 private final String key = "myKey";
21 private final String description = "myDescription";
22 private final String type = "myType";
23 private final boolean boolValue = false;
26 public void setUp() throws Exception {
27 attributeEntryClient = new AttributeEntry("myKey", "myDescription", null, "myType", false);
31 public void testAttributeEntryGetters() throws Exception{
32 assertEquals(key, attributeEntryClient.getKey());
33 assertEquals(description, attributeEntryClient.getDescription());
34 final Object value = attributeEntryClient.getValue();
36 assertEquals(type, attributeEntryClient.getType());
37 assertEquals(boolValue, attributeEntryClient.isRw());