Separate out netconf-test-util 42/105742/3
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 28 Apr 2023 15:15:34 +0000 (17:15 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Fri, 28 Apr 2023 16:02:38 +0000 (18:02 +0200)
We have testing substrate, with tests and resources, packaged as
test-jar in netconf-util. Separate these out into an explicit jar, which
tests depend on.

JIRA: NETCONF-1002
Change-Id: I07ab16b55ae4c83231074123ff9d48501e1d0c3b
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
150 files changed:
artifacts/pom.xml
netconf/netconf-netty-util/pom.xml
netconf/netconf-netty-util/src/test/java/org/opendaylight/netconf/nettyutil/Netconf539Test.java
plugins/netconf-server-mdsal/pom.xml
plugins/netconf-server-mdsal/src/test/java/org/opendaylight/netconf/mdsal/connector/ops/AbstractNetconfOperationTest.java
plugins/netconf-server-mdsal/src/test/java/org/opendaylight/netconf/mdsal/connector/ops/CopyConfigTest.java
plugins/netconf-server-mdsal/src/test/java/org/opendaylight/netconf/mdsal/connector/ops/NetconfMDSalMappingTest.java
plugins/netconf-server-mdsal/src/test/java/org/opendaylight/netconf/mdsal/connector/ops/RuntimeRpcTest.java
plugins/sal-netconf-connector/pom.xml
protocol/netconf-client/pom.xml
protocol/netconf-client/src/test/java/org/opendaylight/netconf/client/NetconfClientSessionNegotiatorTest.java
protocol/netconf-client/src/test/java/org/opendaylight/netconf/client/NetconfMessageUtilTest.java
protocol/netconf-server/pom.xml
protocol/netconf-server/src/test/java/org/opendaylight/netconf/server/ConcurrentClientsTest.java
protocol/netconf-server/src/test/java/org/opendaylight/netconf/server/ExiEncodeDecodeTest.java
protocol/netconf-server/src/test/java/org/opendaylight/netconf/server/MessageParserTest.java
protocol/netconf-server/src/test/java/org/opendaylight/netconf/server/api/operations/AbstractNetconfOperationTest.java
protocol/netconf-test-util/pom.xml [new file with mode: 0644]
protocol/netconf-test-util/src/main/java/org/opendaylight/netconf/test/util/NetconfXmlUnitRecursiveQualifier.java [moved from protocol/netconf-util/src/test/java/org/opendaylight/netconf/util/test/NetconfXmlUnitRecursiveQualifier.java with 74% similarity]
protocol/netconf-test-util/src/main/java/org/opendaylight/netconf/test/util/XmlFileLoader.java [moved from protocol/netconf-util/src/test/java/org/opendaylight/netconf/util/test/XmlFileLoader.java with 98% similarity]
protocol/netconf-test-util/src/main/java/org/opendaylight/netconf/test/util/XmlUnitUtil.java [moved from protocol/netconf-util/src/test/java/org/opendaylight/netconf/util/test/XmlUnitUtil.java with 96% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/client_hello.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/client_hello.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/close-session.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/close-session.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/closeSession.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/closeSession.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/commit.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/commit.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/communicationError/testClientSendsRpcReply_expectedResponse.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/communicationError/testClientSendsRpcReply_expectedResponse.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/communicationError/testClientSendsRpcReply_request.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/communicationError/testClientSendsRpcReply_request.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/communicationError/testRpcWithoutMessageId_expectedResponse.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/communicationError/testRpcWithoutMessageId_expectedResponse.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/communicationError/testRpcWithoutMessageId_request.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/communicationError/testRpcWithoutMessageId_request.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/copy-config.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/copy-config.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/databaseInteraction/client_get_request_ConfigRegistry.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/databaseInteraction/client_get_request_ConfigRegistry.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/databaseInteraction/confg_subsystem_expected_reply.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/databaseInteraction/confg_subsystem_expected_reply.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/discardChanges.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/discardChanges.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/edit-config-delete-container-node-candidate.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/edit-config-delete-container-node-candidate.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/edit-config-delete-leaf-node-candidate.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/edit-config-delete-leaf-node-candidate.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/edit-config-test-module-running.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/edit-config-test-module-running.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/edit-config-test-module.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/edit-config-test-module.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/editConfig.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/editConfig.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/editConfig_addServiceName.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/editConfig_addServiceName.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/editConfig_addServiceNameOnTest.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/editConfig_addServiceNameOnTest.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/editConfig_expectedResult.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/editConfig_expectedResult.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/editConfig_identities.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/editConfig_identities.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/editConfig_identities_inner_replace.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/editConfig_identities_inner_replace.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/editConfig_merge_multiple-deps1.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/editConfig_merge_multiple-deps1.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/editConfig_merge_multiple-deps2.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/editConfig_merge_multiple-deps2.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/editConfig_merge_threadfactory.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/editConfig_merge_threadfactory.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/editConfig_merge_yang-test.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/editConfig_merge_yang-test.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/editConfig_none.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/editConfig_none.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/editConfig_remove.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/editConfig_remove.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/editConfig_removeServiceNameOnTest.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/editConfig_removeServiceNameOnTest.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/editConfig_removeUnknownInstance.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/editConfig_removeUnknownInstance.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/editConfig_replace_default.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/editConfig_replace_default.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/editConfig_replace_default_ex.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/editConfig_replace_default_ex.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/editConfig_replace_module.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/editConfig_replace_module.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/editConfig_replace_module_ex.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/editConfig_replace_module_ex.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/editConfig_setUnions.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/editConfig_setUnions.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/edit_config.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/edit_config.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/get-config-fields-request.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/get-config-fields-request.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/get-config-with-multiple-subtrees.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/get-config-with-multiple-subtrees.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/get-fields-request.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/get-fields-request.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/get-with-multiple-root-subtrees.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/get-with-multiple-root-subtrees.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/get-with-multiple-subtrees.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/get-with-multiple-subtrees.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/get.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/get.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/getConfig.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/getConfig.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/getConfig_candidate-filter.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/getConfig_candidate-filter.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/getConfig_candidate.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/getConfig_candidate.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/get_schema-no-version.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/get_schema-no-version.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/get_schema.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/get_schema.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/handshake/client_hello_with_session_id.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/handshake/client_hello_with_session_id.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/handshake/client_hello_with_wrong_namespace.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/handshake/client_hello_with_wrong_namespace.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/lock-running.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/lock-running.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/lock.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/lock.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/mount/editConfig_merge_threadfactory.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/mount/editConfig_merge_threadfactory.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/mount/mount12002.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/mount/mount12002.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/mount/mount12003.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/mount/mount12003.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/mount/unmount12002.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/mount/unmount12002.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/namespaces/editConfig_differentNamespaceTO.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/namespaces/editConfig_differentNamespaceTO.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/namespaces/editConfig_sameAttrDifferentNamespaces.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/namespaces/editConfig_sameAttrDifferentNamespaces.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/namespaces/editConfig_sameAttrDifferentNamespacesList.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/namespaces/editConfig_sameAttrDifferentNamespacesList.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/namespaces/editConfig_typeNameConfigAttributeMatching.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/namespaces/editConfig_typeNameConfigAttributeMatching.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/rpc-reply_get.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/rpc-reply_get.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/rpc-reply_ok.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/rpc-reply_ok.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/rpcInner.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/rpcInner.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/rpcInnerInner.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/rpcInnerInner.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/rpcInnerInner_complex_output.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/rpcInnerInner_complex_output.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/startExi.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/startExi.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/stopExi.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/stopExi.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/threadpool-edit-config.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/threadpool-edit-config.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/unlock-running.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/unlock-running.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/unlock.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/unlock.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/unrecognised/editConfig_unrecognised1.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/unrecognised/editConfig_unrecognised1.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/unrecognised/editConfig_unrecognised2.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/unrecognised/editConfig_unrecognised2.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/unrecognised/editConfig_unrecognised3.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/unrecognised/editConfig_unrecognised3.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/unrecognised/editConfig_unrecognised4.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/unrecognised/editConfig_unrecognised4.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/unrecognised/editConfig_unrecognised5.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/unrecognised/editConfig_unrecognised5.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/unrecognised/editConfig_unrecognised6.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/unrecognised/editConfig_unrecognised6.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/unrecognised/editConfig_unrecognised7.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/unrecognised/editConfig_unrecognised7.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/unrecognised/editConfig_unrecognised8.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/unrecognised/editConfig_unrecognised8.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/validate-running.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/validate-running.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/netconfMessages/validate.xml [moved from protocol/netconf-util/src/test/resources/netconfMessages/validate.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/subtree/notification/0/filter.xml [moved from protocol/netconf-util/src/test/resources/subtree/notification/0/filter.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/subtree/notification/0/post-filter.xml [moved from protocol/netconf-util/src/test/resources/subtree/notification/0/post-filter.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/subtree/notification/0/pre-filter.xml [moved from protocol/netconf-util/src/test/resources/subtree/notification/0/pre-filter.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/subtree/notification/1/filter.xml [moved from protocol/netconf-util/src/test/resources/subtree/notification/1/filter.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/subtree/notification/1/post-filter.xml [moved from protocol/netconf-util/src/test/resources/subtree/notification/1/post-filter.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/subtree/notification/1/pre-filter.xml [moved from protocol/netconf-util/src/test/resources/subtree/notification/1/pre-filter.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/subtree/notification/2/filter.xml [moved from protocol/netconf-util/src/test/resources/subtree/notification/2/filter.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/subtree/notification/2/post-filter.xml [moved from protocol/netconf-util/src/test/resources/subtree/notification/2/post-filter.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/subtree/notification/2/pre-filter.xml [moved from protocol/netconf-util/src/test/resources/subtree/notification/2/pre-filter.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/subtree/notification/3/filter.xml [moved from protocol/netconf-util/src/test/resources/subtree/notification/3/filter.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/subtree/notification/3/post-filter.xml [moved from protocol/netconf-util/src/test/resources/subtree/notification/3/post-filter.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/subtree/notification/3/pre-filter.xml [moved from protocol/netconf-util/src/test/resources/subtree/notification/3/pre-filter.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/subtree/notification/4/filter.xml [moved from protocol/netconf-util/src/test/resources/subtree/notification/4/filter.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/subtree/notification/4/post-filter.xml [moved from protocol/netconf-util/src/test/resources/subtree/notification/4/post-filter.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/subtree/notification/4/pre-filter.xml [moved from protocol/netconf-util/src/test/resources/subtree/notification/4/pre-filter.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/subtree/rpc/0/post-filter.xml [moved from protocol/netconf-util/src/test/resources/subtree/rpc/0/post-filter.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/subtree/rpc/0/pre-filter.xml [moved from protocol/netconf-util/src/test/resources/subtree/rpc/0/pre-filter.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/subtree/rpc/0/request.xml [moved from protocol/netconf-util/src/test/resources/subtree/rpc/0/request.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/subtree/rpc/1/post-filter.xml [moved from protocol/netconf-util/src/test/resources/subtree/rpc/1/post-filter.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/subtree/rpc/1/pre-filter.xml [moved from protocol/netconf-util/src/test/resources/subtree/rpc/1/pre-filter.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/subtree/rpc/1/request.xml [moved from protocol/netconf-util/src/test/resources/subtree/rpc/1/request.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/subtree/rpc/10/post-filter.xml [moved from protocol/netconf-util/src/test/resources/subtree/rpc/10/post-filter.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/subtree/rpc/10/pre-filter.xml [moved from protocol/netconf-util/src/test/resources/subtree/rpc/10/pre-filter.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/subtree/rpc/10/request.xml [moved from protocol/netconf-util/src/test/resources/subtree/rpc/10/request.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/subtree/rpc/2/post-filter.xml [moved from protocol/netconf-util/src/test/resources/subtree/rpc/2/post-filter.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/subtree/rpc/2/pre-filter.xml [moved from protocol/netconf-util/src/test/resources/subtree/rpc/2/pre-filter.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/subtree/rpc/2/request.xml [moved from protocol/netconf-util/src/test/resources/subtree/rpc/2/request.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/subtree/rpc/3/post-filter.xml [moved from protocol/netconf-util/src/test/resources/subtree/rpc/3/post-filter.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/subtree/rpc/3/pre-filter.xml [moved from protocol/netconf-util/src/test/resources/subtree/rpc/3/pre-filter.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/subtree/rpc/3/request.xml [moved from protocol/netconf-util/src/test/resources/subtree/rpc/3/request.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/subtree/rpc/4/post-filter.xml [moved from protocol/netconf-util/src/test/resources/subtree/rpc/4/post-filter.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/subtree/rpc/4/pre-filter.xml [moved from protocol/netconf-util/src/test/resources/subtree/rpc/4/pre-filter.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/subtree/rpc/4/request.xml [moved from protocol/netconf-util/src/test/resources/subtree/rpc/4/request.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/subtree/rpc/5/post-filter.xml [moved from protocol/netconf-util/src/test/resources/subtree/rpc/5/post-filter.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/subtree/rpc/5/pre-filter.xml [moved from protocol/netconf-util/src/test/resources/subtree/rpc/5/pre-filter.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/subtree/rpc/5/request.xml [moved from protocol/netconf-util/src/test/resources/subtree/rpc/5/request.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/subtree/rpc/6/post-filter.xml [moved from protocol/netconf-util/src/test/resources/subtree/rpc/6/post-filter.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/subtree/rpc/6/pre-filter.xml [moved from protocol/netconf-util/src/test/resources/subtree/rpc/6/pre-filter.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/subtree/rpc/6/request.xml [moved from protocol/netconf-util/src/test/resources/subtree/rpc/6/request.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/subtree/rpc/7/post-filter.xml [moved from protocol/netconf-util/src/test/resources/subtree/rpc/7/post-filter.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/subtree/rpc/7/pre-filter.xml [moved from protocol/netconf-util/src/test/resources/subtree/rpc/7/pre-filter.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/subtree/rpc/7/request.xml [moved from protocol/netconf-util/src/test/resources/subtree/rpc/7/request.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/subtree/rpc/8/post-filter.xml [moved from protocol/netconf-util/src/test/resources/subtree/rpc/8/post-filter.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/subtree/rpc/8/pre-filter.xml [moved from protocol/netconf-util/src/test/resources/subtree/rpc/8/pre-filter.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/subtree/rpc/8/request.xml [moved from protocol/netconf-util/src/test/resources/subtree/rpc/8/request.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/subtree/rpc/9/post-filter.xml [moved from protocol/netconf-util/src/test/resources/subtree/rpc/9/post-filter.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/subtree/rpc/9/pre-filter.xml [moved from protocol/netconf-util/src/test/resources/subtree/rpc/9/pre-filter.xml with 100% similarity]
protocol/netconf-test-util/src/main/resources/subtree/rpc/9/request.xml [moved from protocol/netconf-util/src/test/resources/subtree/rpc/9/request.xml with 100% similarity]
protocol/netconf-util/pom.xml
protocol/pom.xml

index baeeb3465fa8123f67fa409a12ffeae5961dba90..01d78663b2599f76360791b158e9f503bd8ee0d3 100644 (file)
                 <artifactId>netconf-server-mdsal</artifactId>
                 <version>${project.version}</version>
             </dependency>
+            <dependency>
+                <groupId>${project.groupId}</groupId>
+                <artifactId>netconf-test-util</artifactId>
+                <version>${project.version}</version>
+                <scope>test</scope>
+            </dependency>
             <dependency>
                 <groupId>${project.groupId}</groupId>
                 <artifactId>mdsal-netconf-monitoring</artifactId>
                 <version>${project.version}</version>
                 <type>test-jar</type>
             </dependency>
-            <dependency>
-                <groupId>${project.groupId}</groupId>
-                <artifactId>netconf-util</artifactId>
-                <version>${project.version}</version>
-                <type>test-jar</type>
-            </dependency>
 
             <!-- Applications -->
             <dependency>
index 1eb87996d8990ac241512abdd26eaa0d5d287f5e..a12b1e30d9f3f3c0e617244782e1b8baf394e1b8 100644 (file)
@@ -91,9 +91,7 @@
     </dependency>
     <dependency>
       <groupId>${project.groupId}</groupId>
-      <artifactId>netconf-util</artifactId>
-      <type>test-jar</type>
-      <scope>test</scope>
+      <artifactId>netconf-test-util</artifactId>
     </dependency>
   </dependencies>
 </project>
index 159bd9aace698ba035175ec5137a3d9af073795c..791d3c8a6a8b9daec5fc82f8bef015bb16210e4d 100644 (file)
@@ -32,7 +32,7 @@ import org.opendaylight.netconf.nettyutil.handler.FramingMechanismHandlerFactory
 import org.opendaylight.netconf.nettyutil.handler.NetconfChunkAggregator;
 import org.opendaylight.netconf.nettyutil.handler.NetconfEOMAggregator;
 import org.opendaylight.netconf.nettyutil.handler.NetconfXMLToHelloMessageDecoder;
-import org.opendaylight.netconf.util.test.XmlFileLoader;
+import org.opendaylight.netconf.test.util.XmlFileLoader;
 import org.w3c.dom.Document;
 
 @RunWith(MockitoJUnitRunner.StrictStubs.class)
@@ -81,4 +81,4 @@ public class Netconf539Test {
         assertTrue("ChunkedFramingMechanismEncoder was not installed in the Netconf pipeline",
             channel.pipeline().get(NETCONF_MESSAGE_FRAME_ENCODER) instanceof ChunkedFramingMechanismEncoder);
     }
-}
\ No newline at end of file
+}
index ccc96885650c59b5848a7520ea2e13a1564c696f..a1e686aad7e12783ad527d3da0d3530285785608 100644 (file)
     </dependency>
     <dependency>
       <groupId>org.opendaylight.netconf</groupId>
-      <artifactId>netconf-util</artifactId>
-      <type>test-jar</type>
-      <scope>test</scope>
+      <artifactId>netconf-test-util</artifactId>
     </dependency>
     <dependency>
       <groupId>org.xmlunit</groupId>
index 2dd04a84344f9117fe21b0557b2185309a9d8379..1d3ffbb0f6647382e7551d0af20c02a340c7a4a9 100644 (file)
@@ -46,8 +46,8 @@ import org.opendaylight.netconf.mdsal.connector.ops.get.Get;
 import org.opendaylight.netconf.mdsal.connector.ops.get.GetConfig;
 import org.opendaylight.netconf.server.api.operations.NetconfOperation;
 import org.opendaylight.netconf.server.api.operations.NetconfOperationChainedExecution;
-import org.opendaylight.netconf.util.test.NetconfXmlUnitRecursiveQualifier;
-import org.opendaylight.netconf.util.test.XmlFileLoader;
+import org.opendaylight.netconf.test.util.NetconfXmlUnitRecursiveQualifier;
+import org.opendaylight.netconf.test.util.XmlFileLoader;
 import org.opendaylight.yangtools.util.concurrent.SpecialExecutors;
 import org.opendaylight.yangtools.yang.model.api.EffectiveModelContext;
 import org.opendaylight.yangtools.yang.model.repo.api.YangTextSchemaSource;
index 96a81aaea44fff17ad9770e493a27f86b2da0721..c23833535c6d109dc992de12303c757a5c45342d 100644 (file)
@@ -20,7 +20,7 @@ import org.junit.Test;
 import org.junit.rules.TemporaryFolder;
 import org.opendaylight.netconf.api.DocumentedException;
 import org.opendaylight.netconf.api.xml.XmlUtil;
-import org.opendaylight.netconf.util.test.XmlFileLoader;
+import org.opendaylight.netconf.test.util.XmlFileLoader;
 import org.opendaylight.yangtools.yang.common.ErrorSeverity;
 import org.opendaylight.yangtools.yang.common.ErrorTag;
 import org.opendaylight.yangtools.yang.common.ErrorType;
index 537fbbcef02b074a6d36c56dbf0811eeab2f6ed8..b46041a24f42bf8ad14fd57f22815111216adc6c 100644 (file)
@@ -20,7 +20,7 @@ import org.opendaylight.netconf.api.xml.XmlUtil;
 import org.opendaylight.netconf.mdsal.connector.CurrentSchemaContext;
 import org.opendaylight.netconf.mdsal.connector.TransactionProvider;
 import org.opendaylight.netconf.mdsal.connector.ops.get.GetConfig;
-import org.opendaylight.netconf.util.test.XmlFileLoader;
+import org.opendaylight.netconf.test.util.XmlFileLoader;
 import org.opendaylight.yangtools.yang.common.ErrorSeverity;
 import org.opendaylight.yangtools.yang.common.ErrorTag;
 import org.opendaylight.yangtools.yang.common.ErrorType;
index 58e17786fcf2c62a88e5f3d1679fc7338e066991..960457292a55a6a6cbaf621e2f3432ef7744adb0 100644 (file)
@@ -45,7 +45,7 @@ import org.opendaylight.netconf.api.xml.XmlUtil;
 import org.opendaylight.netconf.mdsal.connector.CurrentSchemaContext;
 import org.opendaylight.netconf.server.api.operations.HandlingPriority;
 import org.opendaylight.netconf.server.api.operations.NetconfOperationChainedExecution;
-import org.opendaylight.netconf.util.test.XmlFileLoader;
+import org.opendaylight.netconf.test.util.XmlFileLoader;
 import org.opendaylight.yangtools.concepts.ListenerRegistration;
 import org.opendaylight.yangtools.concepts.NoOpListenerRegistration;
 import org.opendaylight.yangtools.yang.common.ErrorSeverity;
index 45b18f671a10192307a51673c85a23bc5f41a2c7..6da88a672daaf996f1a3e4d26a458192d28cb96d 100644 (file)
     </dependency>
     <dependency>
       <groupId>${project.groupId}</groupId>
-      <artifactId>netconf-util</artifactId>
-      <type>test-jar</type>
-      <scope>test</scope>
+      <artifactId>netconf-test-util</artifactId>
     </dependency>
     <dependency>
       <groupId>com.google.code.gson</groupId>
index fa9f406a40876de153f461b9421e8ccd79a8df32..acaef68fc0ff68d52bc189ffbd1c6ab80d76c794 100644 (file)
@@ -82,9 +82,7 @@
     </dependency>
     <dependency>
       <groupId>org.opendaylight.netconf</groupId>
-      <artifactId>netconf-util</artifactId>
-      <type>test-jar</type>
-      <scope>test</scope>
+      <artifactId>netconf-test-util</artifactId>
     </dependency>
   </dependencies>
 
index 0a824539231b3c8efa3296a6f099a73868068adf..129793ee9405c01631374c76d5c61726b9352a61 100644 (file)
@@ -47,7 +47,7 @@ import org.opendaylight.netconf.nettyutil.handler.NetconfXMLToHelloMessageDecode
 import org.opendaylight.netconf.nettyutil.handler.NetconfXMLToMessageDecoder;
 import org.opendaylight.netconf.nettyutil.handler.exi.EXIParameters;
 import org.opendaylight.netconf.nettyutil.handler.exi.NetconfStartExiMessage;
-import org.opendaylight.netconf.util.test.XmlFileLoader;
+import org.opendaylight.netconf.test.util.XmlFileLoader;
 import org.w3c.dom.Document;
 
 public class NetconfClientSessionNegotiatorTest {
index 4b708b50a579fc48376530b7f910b7a0fc0eaa66..c1336ea6e0fd479b54bb17ed08e1dc7f1dc59ec9 100644 (file)
@@ -13,7 +13,7 @@ import static org.junit.Assert.assertTrue;
 import java.util.Collection;
 import org.junit.Test;
 import org.opendaylight.netconf.api.NetconfMessage;
-import org.opendaylight.netconf.util.test.XmlFileLoader;
+import org.opendaylight.netconf.test.util.XmlFileLoader;
 
 public class NetconfMessageUtilTest {
     @Test
index 067a97761fba7c3955c1a471a9d58a2ef2261d4c..92bff3402301ecbe596191f60915624c7d1cc9b2 100644 (file)
     </dependency>
     <dependency>
       <groupId>org.opendaylight.netconf</groupId>
-      <artifactId>netconf-util</artifactId>
-      <type>test-jar</type>
-      <scope>test</scope>
+      <artifactId>netconf-test-util</artifactId>
     </dependency>
     <dependency>
       <groupId>org.opendaylight.netconf</groupId>
index b96588bb85cfa586e08a2f3959f4f6a4e2d7faec..212668fcc9ac87589192495087dc755d41f1dddf 100644 (file)
@@ -73,7 +73,7 @@ import org.opendaylight.netconf.server.api.operations.NetconfOperationService;
 import org.opendaylight.netconf.server.api.operations.NetconfOperationServiceFactory;
 import org.opendaylight.netconf.server.impl.DefaultSessionIdProvider;
 import org.opendaylight.netconf.server.osgi.AggregatedNetconfOperationServiceFactory;
-import org.opendaylight.netconf.util.test.XmlFileLoader;
+import org.opendaylight.netconf.test.util.XmlFileLoader;
 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.netconf.monitoring.rev101004.netconf.state.CapabilitiesBuilder;
 import org.opendaylight.yangtools.concepts.Registration;
 import org.slf4j.Logger;
index c28c98188ea447152a1bee8eee1d1a2448f5fbcf..12ef9ea7f7be159bcb54b932d00e765440204a1e 100644 (file)
@@ -11,7 +11,7 @@ import static org.junit.Assert.assertNotNull;
 
 import org.junit.Test;
 import org.opendaylight.netconf.api.NetconfMessage;
-import org.opendaylight.netconf.util.test.XmlFileLoader;
+import org.opendaylight.netconf.test.util.XmlFileLoader;
 
 public class ExiEncodeDecodeTest {
     @Test
index 6aaf1909044aca990894ae2ccbfa4586b999f134..665bbe68c4174896fc279442a9c822548ff87f03 100644 (file)
@@ -29,7 +29,7 @@ import org.opendaylight.netconf.nettyutil.handler.NetconfChunkAggregator;
 import org.opendaylight.netconf.nettyutil.handler.NetconfEOMAggregator;
 import org.opendaylight.netconf.nettyutil.handler.NetconfMessageToXMLEncoder;
 import org.opendaylight.netconf.nettyutil.handler.NetconfXMLToMessageDecoder;
-import org.opendaylight.netconf.util.test.XmlFileLoader;
+import org.opendaylight.netconf.test.util.XmlFileLoader;
 
 public class MessageParserTest {
     private NetconfMessage msg;
index efd96bf287dc35cc2f2049a9b747cfd0b5fc3f4f..a1006f268925c0067456a7c506f03eaab7df1cd1 100644 (file)
@@ -18,7 +18,7 @@ import org.junit.Test;
 import org.opendaylight.netconf.api.DocumentedException;
 import org.opendaylight.netconf.api.xml.XmlElement;
 import org.opendaylight.netconf.api.xml.XmlUtil;
-import org.opendaylight.netconf.util.test.XmlFileLoader;
+import org.opendaylight.netconf.test.util.XmlFileLoader;
 import org.w3c.dom.Document;
 import org.w3c.dom.Element;
 import org.xml.sax.SAXException;
diff --git a/protocol/netconf-test-util/pom.xml b/protocol/netconf-test-util/pom.xml
new file mode 100644 (file)
index 0000000..355fefa
--- /dev/null
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2023 PANTHEON.tech, s.r.o. and others.  All rights reserved.
+
+ This program and the accompanying materials are made available under the
+ terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ and is available at http://www.eclipse.org/legal/epl-v10.html
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>org.opendaylight.netconf</groupId>
+        <artifactId>netconf-parent</artifactId>
+        <version>6.0.0-SNAPSHOT</version>
+        <relativePath>../../parent</relativePath>
+    </parent>
+
+    <artifactId>netconf-test-util</artifactId>
+    <name>${project.artifactId}</name>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.opendaylight.netconf</groupId>
+            <artifactId>netconf-api</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>junit</groupId>
+            <artifactId>junit</artifactId>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.xmlunit</groupId>
+            <artifactId>xmlunit-legacy</artifactId>
+            <scope>compile</scope>
+        </dependency>
+    </dependencies>
+</project>
similarity index 74%
rename from protocol/netconf-util/src/test/java/org/opendaylight/netconf/util/test/NetconfXmlUnitRecursiveQualifier.java
rename to protocol/netconf-test-util/src/main/java/org/opendaylight/netconf/test/util/NetconfXmlUnitRecursiveQualifier.java
index 4e55591271fbede48ceae2ad8aa97711a6ce8787..a4dc3217c1b347981d077462532c1835f3790b61 100644 (file)
@@ -5,9 +5,11 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
+package org.opendaylight.netconf.test.util;
 
-package org.opendaylight.netconf.util.test;
+import static java.util.Objects.requireNonNull;
 
+import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
 import org.custommonkey.xmlunit.ElementNameAndTextQualifier;
 import org.custommonkey.xmlunit.ElementQualifier;
 import org.w3c.dom.Element;
@@ -19,29 +21,27 @@ import org.w3c.dom.NodeList;
  * defaults to comparing element name and text content.
  */
 public class NetconfXmlUnitRecursiveQualifier implements ElementQualifier {
-
     private final ElementQualifier qualifier;
 
     public NetconfXmlUnitRecursiveQualifier() {
-        this.qualifier = new ElementNameAndTextQualifier();
+        this(new ElementNameAndTextQualifier());
     }
 
     public NetconfXmlUnitRecursiveQualifier(final ElementQualifier qualifier) {
-        this.qualifier = qualifier;
+        this.qualifier = requireNonNull(qualifier);
     }
 
     @Override
-    public boolean qualifyForComparison(Element currentControl,
-                                        Element currentTest) {
+    public boolean qualifyForComparison(final Element currentControl,
+                                        final Element currentTest) {
         return compareNodes(currentControl, currentTest);
     }
 
     @SuppressWarnings("checkstyle:IllegalCatch")
-    private boolean compareNodes(Node currentControl, Node currentTest) {
+    @SuppressFBWarnings(value = "REC_CATCH_EXCEPTION")
+    private boolean compareNodes(final Node currentControl, final Node currentTest) {
         try {
-
-            if (!qualifier.qualifyForComparison((Element) currentControl,
-                    (Element) currentTest)) {
+            if (!qualifier.qualifyForComparison((Element) currentControl, (Element) currentTest)) {
                 return false;
             }
 
@@ -52,18 +52,18 @@ public class NetconfXmlUnitRecursiveQualifier implements ElementQualifier {
                 controlNodes = currentControl.getChildNodes();
                 testNodes = currentTest.getChildNodes();
             } else {
-                return !(currentControl.hasChildNodes() || currentTest.hasChildNodes());
+                return !currentControl.hasChildNodes() && !currentTest.hasChildNodes();
             }
 
-            return (countNodesWithoutConsecutiveTextNodes(controlNodes)
-                    == countNodesWithoutConsecutiveTextNodes(testNodes)) && checkChildren(controlNodes, testNodes);
+            return countNodesWithoutConsecutiveTextNodes(controlNodes)
+                    == countNodesWithoutConsecutiveTextNodes(testNodes) && checkChildren(controlNodes, testNodes);
 
         } catch (Exception e) {
             return false;
         }
     }
 
-    private boolean checkChildren(NodeList controlNodes, NodeList testNodes) {
+    private boolean checkChildren(final NodeList controlNodes, final NodeList testNodes) {
         for (int i = 0; i < controlNodes.getLength(); i++) {
             boolean matchFound = false;
             for (int j = 0; j < testNodes.getLength(); j++) {
@@ -93,7 +93,7 @@ public class NetconfXmlUnitRecursiveQualifier implements ElementQualifier {
         return true;
     }
 
-    private static String concatenateText(Node textNode) {
+    private static String concatenateText(final Node textNode) {
         StringBuilder builder = new StringBuilder();
         Node next = textNode;
 
@@ -107,11 +107,10 @@ public class NetconfXmlUnitRecursiveQualifier implements ElementQualifier {
         return builder.toString();
     }
 
-    private static int countNodesWithoutConsecutiveTextNodes(NodeList nodeList) {
+    private static int countNodesWithoutConsecutiveTextNodes(final NodeList nodeList) {
         int count = 0;
         boolean lastNodeWasText = false;
-        final int length = nodeList.getLength();
-        for (int i = 0; i < length; i++) {
+        for (int i = 0, length = nodeList.getLength(); i < length; i++) {
             Node node = nodeList.item(i);
             if (!lastNodeWasText || node.getNodeType() != Node.TEXT_NODE) {
                 count++;
similarity index 98%
rename from protocol/netconf-util/src/test/java/org/opendaylight/netconf/util/test/XmlFileLoader.java
rename to protocol/netconf-test-util/src/main/java/org/opendaylight/netconf/test/util/XmlFileLoader.java
index bbe27f126d53ed5444f3e5d08e3b6d030bc9c3e0..8870a8f1bb34faadd27145f99081a5bdc120a75f 100644 (file)
@@ -5,7 +5,7 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-package org.opendaylight.netconf.util.test;
+package org.opendaylight.netconf.test.util;
 
 import static java.util.Objects.requireNonNull;
 
similarity index 96%
rename from protocol/netconf-util/src/test/java/org/opendaylight/netconf/util/test/XmlUnitUtil.java
rename to protocol/netconf-test-util/src/main/java/org/opendaylight/netconf/test/util/XmlUnitUtil.java
index f774213a03f3c3b1a43aef691ae3de88daeba0ee..657e8a40a89bc64e3f1a0508dec62e87024cc35a 100644 (file)
@@ -5,8 +5,7 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-
-package org.opendaylight.netconf.util.test;
+package org.opendaylight.netconf.test.util;
 
 import static org.custommonkey.xmlunit.XMLAssert.assertNodeTestPasses;
 import static org.junit.Assert.assertEquals;
@@ -24,11 +23,11 @@ import org.w3c.dom.Text;
 
 public final class XmlUnitUtil {
     private XmlUnitUtil() {
-
+        // Hidden on purpose
     }
 
-    public static void assertContainsElementWithText(final Document doc,
-                                                     final String textToFind) throws NodeTestException {
+    public static void assertContainsElementWithText(final Document doc, final String textToFind)
+            throws NodeTestException {
         NodeTest nt = new NodeTest(doc);
         NodeTester tester = new AbstractNodeTester() {
 
index d6cfd27fbfa312617a66485dcb1ae494e8566b4f..848bb2fc1ef4a2b3a5c53e0428d2b8edbeb09a1b 100644 (file)
       <artifactId>netconf-api</artifactId>
     </dependency>
 
-    <dependency>
-      <groupId>org.opendaylight.yangtools</groupId>
-      <artifactId>mockito-configuration</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>org.opendaylight.mdsal</groupId>
-      <artifactId>mdsal-binding-generator</artifactId>
-      <scope>test</scope>
-    </dependency>
     <dependency>
       <groupId>org.opendaylight.mdsal</groupId>
       <artifactId>mdsal-binding-runtime-spi</artifactId>
       <artifactId>xmlunit-legacy</artifactId>
     </dependency>
   </dependencies>
-
-  <build>
-    <plugins>
-      <plugin>
-        <groupId>org.apache.felix</groupId>
-        <artifactId>maven-bundle-plugin</artifactId>
-      </plugin>
-      <plugin>
-        <artifactId>maven-jar-plugin</artifactId>
-        <executions>
-          <execution>
-            <goals>
-              <goal>test-jar</goal>
-            </goals>
-          </execution>
-        </executions>
-      </plugin>
-      <plugin>
-        <artifactId>maven-source-plugin</artifactId>
-        <executions>
-          <execution>
-            <goals>
-              <goal>test-jar-no-fork</goal>
-            </goals>
-          </execution>
-        </executions>
-      </plugin>
-    </plugins>
-  </build>
-
 </project>
index 50be4210a906476804c4a4fc9d8ccb358bc84013..429ba07a4305975ff2a3fc8bd193e57f30d6cc99 100644 (file)
@@ -32,6 +32,7 @@
         <module>netconf-api</module>
         <module>netconf-client</module>
         <module>netconf-server</module>
+        <module>netconf-test-util</module>
         <module>netconf-util</module>
         <module>restconf-api</module>
     </modules>