/*
 * Copyright 2000-2013 JetBrains s.r.o.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.siyeh.ig.inheritance;

import com.siyeh.ig.IGInspectionTestCase;

public class AbstractMethodWithMissingImplementationsInspectionTest extends IGInspectionTestCase {

  public void test() throws Exception {
    final AbstractMethodWithMissingImplementationsInspection tool = new AbstractMethodWithMissingImplementationsInspection();
    doTest("com/siyeh/igtest/inheritance/abstract_method_with_missing_implementations", tool);
  }
}
