--- /dev/null
+/*
+ * Copyright (c) 2024 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
+ */
+/**
+ * RESTCONF server API.
+ */
+module org.opendaylight.restconf.server.api {
+ exports org.opendaylight.restconf.server.api;
+
+ requires transitive com.google.common;
+ requires transitive org.opendaylight.restconf.api;
+ requires transitive org.opendaylight.yangtools.yang.data.api;
+ requires transitive org.opendaylight.yangtools.yang.data.codec.gson;
+ requires transitive org.opendaylight.yangtools.yang.data.codec.xml;
+ requires transitive org.opendaylight.yangtools.yang.data.util;
+ requires transitive org.opendaylight.yangtools.yang.model.api;
+ requires transitive org.opendaylight.yang.gen.ietf.yang.patch.rfc8072;
+ requires org.opendaylight.yang.gen.ietf.restconf.rfc8040;
+ requires org.opendaylight.yangtools.yang.data.impl;
+ requires org.opendaylight.yangtools.yang.data.spi;
+ requires org.slf4j;
+ requires stax.utils;
+
+ // Annotation-only dependencies
+ requires static transitive org.eclipse.jdt.annotation;
+ requires static com.github.spotbugs.annotations;
+}
import org.opendaylight.restconf.api.QueryParameters;
import org.opendaylight.restconf.api.query.ContentParam;
import org.opendaylight.restconf.api.query.DepthParam;
-import org.opendaylight.restconf.api.query.RestconfQueryParam;
import org.opendaylight.restconf.api.query.WithDefaultsParam;
class ParamsTest {
assertEquals(WithDefaultsParam.EXPLICIT, params.withDefaults());
}
- private static void assertInvalidIAE(final Function<QueryParameters, ?> paramsMethod,
- final RestconfQueryParam<?> param) {
- assertParamsThrows("Invalid parameter: " + param.paramName(), paramsMethod, param.paramName(),
- "odl-test-value");
- }
-
- private static void assertInvalidIAE(final Function<QueryParameters, ?> paramsMethod) {
- assertParamsThrows("Invalid parameter: odl-unknown-param", paramsMethod, "odl-unknown-param", "odl-test-value");
- }
-
private static void assertParamsThrows(final String expectedMessage,
final Function<QueryParameters, ?> paramsMethod, final String name, final String value) {
assertParamsThrows(expectedMessage, paramsMethod, QueryParameters.of(name, value));