2 * Copyright (c) 2020 PANTHEON.tech, s.r.o. 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
8 package org.opendaylight.restconf.nb.rfc8040.services.wrapper;
10 import static org.junit.Assert.assertEquals;
12 import org.junit.Test;
14 public class RRDSImplTest {
16 public void testHostMeta() {
17 assertEquals("<?xml version='1.0' encoding='UTF-8'?>\n"
18 + "<XRD xmlns='http://docs.oasis-open.org/ns/xri/xrd-1.0'>\n"
19 + " <Link rel='restconf' href='/rests'/>\n"
20 + "</XRD>", new RootResourceDiscoveryServiceImpl().readXrdData().getEntity());