2 * Copyright (c) 2016 Cisco Systems, Inc. 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.mdsal.unified.html.generator;
10 import static org.junit.Assert.assertEquals;
12 import com.google.common.collect.Table;
13 import java.util.Optional;
15 import org.junit.Test;
16 import org.opendaylight.yangtools.plugin.generator.api.GeneratedFile;
17 import org.opendaylight.yangtools.plugin.generator.api.GeneratedFilePath;
18 import org.opendaylight.yangtools.plugin.generator.api.GeneratedFileType;
19 import org.opendaylight.yangtools.yang.model.api.EffectiveModelContext;
20 import org.opendaylight.yangtools.yang.test.util.YangParserTestUtils;
22 @Deprecated(forRemoval = true)
23 public class DocGenTest {
25 public void testListGeneration() throws Exception {
26 final EffectiveModelContext context = YangParserTestUtils.parseYangResourceDirectory("/doc-gen");
27 final DocumentationGenerator generator = new DocumentationGenerator();
28 Table<GeneratedFileType, GeneratedFilePath, GeneratedFile> generatedFiles = generator.generateFiles(context,
29 Set.copyOf(context.getModules()), (module, representation) -> Optional.empty());
30 assertEquals(4, generatedFiles.size());