* 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.mdsal.yang.library;
import com.google.common.collect.ImmutableMap;
-import java.util.Collections;
-import java.util.List;
+import java.util.Set;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.junit.MockitoJUnitRunner;
.setNamespace(new Uri("test:namespace"))
.setRevision(new RevisionIdentifier("2013-07-22"))
.setSubmodule(ImmutableMap.of(sub.key(), sub))
- .setFeature(List.of())
+ .setFeature(Set.of())
.build();
Module yangLibrary = new ModuleBuilder().setName(new YangIdentifier("ietf-yang-library_2019-01-04"))
.setNamespace(new Uri("urn:ietf:params:xml:ns:yang:ietf-yang-library"))
.setRevision(new RevisionIdentifier("2019-01-04"))
- .setFeature(List.of())
+ .setFeature(Set.of())
.build();
ModuleSet modulesSet = new ModuleSetBuilder()
Schema schema = new SchemaBuilder().setName("state-schema")
- .setModuleSet(Collections.singletonList(modulesSet.getName()))
+ .setModuleSet(Set.of(modulesSet.getName()))
.build();
Datastore datastore = new DatastoreBuilder().setName(Operational.class)