checkstyle: JavadocStyleCheck
[neutron.git] / neutron-spi / src / test / java / org / opendaylight / neutron / spi / Neutron_IDJAXBTest.java
1 /*
2  * Copyright (c) 2015 Tata Consultancy Services.  All rights reserved.
3  *
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
7  */
8
9 package org.opendaylight.neutron.spi;
10
11 import javax.xml.bind.JAXBException;
12 import org.junit.Assert;
13 import org.junit.Test;
14
15 public class Neutron_IDJAXBTest {
16
17     private static final String NEUTRON_ID_SOURCE_JSON =
18             "{ \"id\": \"4e8e5957-649f-477b-9e5b-f1f75b21c03c\" }";
19
20     @Test
21     public void test_Neutron_ID_JAXB() throws JAXBException {
22         Neutron_ID neutronObject = new Neutron_ID();
23         Neutron_ID testObject = (Neutron_ID) JaxbTestHelper.jaxbUnmarshall(neutronObject, NEUTRON_ID_SOURCE_JSON);
24
25         Assert.assertEquals("Neutron_ID JAXB Test 1: Testing id failed", "4e8e5957-649f-477b-9e5b-f1f75b21c03c",
26                     testObject.getID());
27     }
28
29 }