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.binding.java.api.generator.test;
10 import static org.junit.Assert.assertTrue;
12 import org.junit.Before;
13 import org.junit.BeforeClass;
14 import org.opendaylight.mdsal.binding.generator.api.BindingGenerator;
15 import org.opendaylight.mdsal.binding.generator.impl.BindingGeneratorImpl;
17 public abstract class BaseCompilationTest {
19 protected BindingGenerator bindingGenerator;
22 public static void createTestDirs() {
23 if (CompilationTestUtils.TEST_DIR.exists()) {
24 CompilationTestUtils.deleteTestDir(CompilationTestUtils.TEST_DIR);
26 assertTrue(CompilationTestUtils.GENERATOR_OUTPUT_DIR.mkdirs());
27 assertTrue(CompilationTestUtils.COMPILER_OUTPUT_DIR.mkdirs());
32 bindingGenerator = new BindingGeneratorImpl(true);