Home | History | Annotate | Download | only in comparator
      1 /*
      2  * Copyright (C) 2009 The Android Open Source Project
      3  *
      4  * Licensed under the Apache License, Version 2.0 (the "License");
      5  * you may not use this file except in compliance with the License.
      6  * You may obtain a copy of the License at
      7  *
      8  *      http://www.apache.org/licenses/LICENSE-2.0
      9  *
     10  * Unless required by applicable law or agreed to in writing, software
     11  * distributed under the License is distributed on an "AS IS" BASIS,
     12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13  * See the License for the specific language governing permissions and
     14  * limitations under the License.
     15  */
     16 
     17 package signature.comparator;
     18 import org.junit.runner.RunWith;
     19 import org.junit.runners.Suite;
     20 
     21 import signature.converter.doclet.DocletTestConverter;
     22 import signature.converter.util.ITestSourceConverter;
     23 
     24 @RunWith(Suite.class)
     25 @Suite.SuiteClasses({
     26     AllDocletTests.DocletPackageCompareTest.class,
     27     AllDocletTests.DocletClassCompareTest.class,
     28     AllDocletTests.DocletMethodCompareTests.class
     29 })
     30 public class AllDocletTests {
     31     private static ITestSourceConverter newConverter(){
     32         return new DocletTestConverter();
     33     }
     34 
     35     public static class DocletPackageCompareTest extends PackageCompareTest {
     36         @Override public ITestSourceConverter createConverter() {
     37             return newConverter();
     38         }
     39     }
     40 
     41     public static class DocletClassCompareTest extends ClassCompareTest {
     42         @Override public ITestSourceConverter createConverter() {
     43             return newConverter();
     44         }
     45     }
     46 
     47     public static class DocletMethodCompareTests extends MethodCompareTests {
     48         @Override public ITestSourceConverter createConverter() {
     49             return newConverter();
     50         }
     51     }
     52 }