X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fconfig%2Fyang-jmx-generator-plugin%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fconfig%2Fyangjmxgenerator%2Fplugin%2FAbstractGeneratorTest.java;h=a17d50da5215405857a324f1e651767f8579517e;hb=20a32e6459fd1e27e7669bf1ebc7742b96787b94;hp=fb5cd2e9899cdbe96540ff322ed3f5c4c5d50f1b;hpb=b2a7e1a511100f0512095da585c2b717bb0101b5;p=controller.git diff --git a/opendaylight/config/yang-jmx-generator-plugin/src/test/java/org/opendaylight/controller/config/yangjmxgenerator/plugin/AbstractGeneratorTest.java b/opendaylight/config/yang-jmx-generator-plugin/src/test/java/org/opendaylight/controller/config/yangjmxgenerator/plugin/AbstractGeneratorTest.java index fb5cd2e989..a17d50da52 100644 --- a/opendaylight/config/yang-jmx-generator-plugin/src/test/java/org/opendaylight/controller/config/yangjmxgenerator/plugin/AbstractGeneratorTest.java +++ b/opendaylight/config/yang-jmx-generator-plugin/src/test/java/org/opendaylight/controller/config/yangjmxgenerator/plugin/AbstractGeneratorTest.java @@ -12,13 +12,11 @@ import org.junit.Before; import org.opendaylight.controller.config.yangjmxgenerator.AbstractYangTest; public abstract class AbstractGeneratorTest extends AbstractYangTest { - private static final File GENERATOR_OUTPUT_PATH_ROOT = new File( - "target/testgen"); + private static final File GENERATOR_OUTPUT_PATH_ROOT = new File("target/testgen"); protected final File generatorOutputPath; public AbstractGeneratorTest() { - generatorOutputPath = new File(GENERATOR_OUTPUT_PATH_ROOT, getClass() - .getSimpleName()); + generatorOutputPath = new File(GENERATOR_OUTPUT_PATH_ROOT, getClass().getSimpleName()); } @Before @@ -26,10 +24,10 @@ public abstract class AbstractGeneratorTest extends AbstractYangTest { deleteFolder(generatorOutputPath); } - public void deleteFolder(File folder) { + public void deleteFolder(final File folder) { File[] files = folder.listFiles(); if (files != null) { - for (File f: files) { + for (File f : files) { if (f.isDirectory()) { deleteFolder(f); } else { @@ -39,5 +37,4 @@ public abstract class AbstractGeneratorTest extends AbstractYangTest { } folder.delete(); } - }