Promote replicate to a full feature
[mdsal.git] / dom / unified-html-generator / src / test / java / org / opendaylight / mdsal / unified / html / generator / DocGenTest.java
1 /*
2  * Copyright (c) 2016 Cisco Systems, Inc. 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.mdsal.unified.html.generator;
9
10 import static org.junit.Assert.assertEquals;
11
12 import com.google.common.collect.Table;
13 import java.util.Optional;
14 import java.util.Set;
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;
21
22 @Deprecated(forRemoval = true)
23 public class DocGenTest {
24     @Test
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());
31     }
32 }