2eae8b6b0954fbc44a2ef54b81f247895e419394
[controller.git] / opendaylight / config / yang-jmx-generator-plugin / src / test / java / org / opendaylight / controller / config / yangjmxgenerator / plugin / AbstractGeneratorTest.java
1 /*
2  * Copyright (c) 2013 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.controller.config.yangjmxgenerator.plugin;
9
10 import java.io.File;
11 import org.apache.commons.io.FileUtils;
12 import org.junit.Before;
13 import org.opendaylight.controller.config.yangjmxgenerator.AbstractYangTest;
14
15 public abstract class AbstractGeneratorTest extends AbstractYangTest {
16     private static final File GENERATOR_OUTPUT_PATH_ROOT = new File(
17             "target/testgen");
18     protected final File generatorOutputPath;
19
20     public AbstractGeneratorTest() {
21         generatorOutputPath = new File(GENERATOR_OUTPUT_PATH_ROOT, getClass()
22                 .getSimpleName());
23     }
24
25     @Before
26     public void cleanUpDirectory() throws Exception {
27         FileUtils.deleteDirectory(generatorOutputPath);
28     }
29
30 }

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.