cc6998164b5b51c0f14129659da1fc3f57aced5f
[netconf.git] / restconf / restconf-nb / src / test / java / org / opendaylight / restconf / nb / rfc8040 / databind / XmlOperationInputBodyTest.java
1 /*
2  * Copyright (c) 2023 PANTHEON.tech, s.r.o. and others.  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 package org.opendaylight.restconf.nb.rfc8040.databind;
9
10 import java.io.InputStream;
11
12 public class XmlOperationInputBodyTest extends AbstractOperationInputBodyTest {
13     @Override
14     OperationInputBody moduleSubContainerDataPostActionBody() {
15         return new XmlOperationInputBody(stringInputStream("""
16             <input xmlns="instance:identifier:module">
17               <delay>600</delay>
18             </input>"""));
19     }
20
21     @Override
22     OperationInputBody testEmptyBody() {
23         return new XmlOperationInputBody(InputStream.nullInputStream());
24     }
25
26     @Override
27     OperationInputBody testRpcModuleInputBody() {
28         return new XmlOperationInputBody(stringInputStream("""
29             <input xmlns="invoke:rpc:module">
30               <cont>
31                 <lf>lf-test</lf>
32               </cont>
33             </input>"""));
34     }
35 }