View Javadoc

    1   /*
    2    * This file is part of dependency-check-core.
    3    *
    4    * Dependency-check-core is free software: you can redistribute it and/or modify it
    5    * under the terms of the GNU General Public License as published by the Free
    6    * Software Foundation, either version 3 of the License, or (at your option) any
    7    * later version.
    8    *
    9    * Dependency-check-core is distributed in the hope that it will be useful, but
    10   * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    11   * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
    12   * details.
    13   *
    14   * You should have received a copy of the GNU General Public License along with
    15   * dependency-check-core. If not, see http://www.gnu.org/licenses/.
    16   *
    17   * Copyright (c) 2012 Jeremy Long. All Rights Reserved.
    18   */
    19  package org.owasp.dependencycheck.data.cpe;
    20
    21  import junit.framework.TestCase;
    22  import org.junit.After;
    23  import org.junit.AfterClass;
    24  import org.junit.Before;
    25  import org.junit.BeforeClass;
    26  import org.owasp.dependencycheck.data.nvdcve.BaseDBTestCase;
    27
    28  /**
    29   *
    30   * @author Jeremy Long (jeremy.long@owasp.org)
    31   */
    32  public abstract class BaseIndexTestCase extends TestCase {
    33
    34      @BeforeClass
    35      public static void setUpClass() throws Exception {
    36      }
    37
    38      @AfterClass
    39      public static void tearDownClass() throws Exception {
    40      }
    41
    42      @Before
    43      @Override
    44      public void setUp() throws Exception {
    45          BaseDBTestCase.ensureDBExists();
    46          super.setUp();
    47      }
    48
    49      @After
    50      @Override
    51      public void tearDown() throws Exception {
    52          super.tearDown();
    53      }
    54  }