Home | History | Annotate | Download | only in converter
      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.converter;
     18 
     19 import org.junit.runner.RunWith;
     20 import org.junit.runners.Suite;
     21 
     22 import signature.converter.doclet.DocletTestConverter;
     23 import signature.converter.util.ITestSourceConverter;
     24 
     25 @RunWith(Suite.class)
     26 @Suite.SuiteClasses({
     27     AllDocletTests.ClassTest.class,
     28     AllDocletTests.PackageTest.class,
     29     AllDocletTests.AnnotationTest.class,
     30     AllDocletTests.VisibilityTest.class,
     31     AllDocletTests.WildcardTest.class,
     32     AllDocletTests.EnumTest.class
     33 })
     34 public class AllDocletTests {
     35     private static ITestSourceConverter newConverter(){
     36         return new DocletTestConverter();
     37     }
     38 
     39     public static class ClassTest extends ConvertClassTest {
     40         @Override public ITestSourceConverter createConverter() {
     41             return newConverter();
     42         }
     43     }
     44     public static class AnnotationTest extends ConvertAnnotationTest {
     45         @Override public ITestSourceConverter createConverter() {
     46             return newConverter();
     47         }
     48     }
     49     public static class PackageTest extends ConvertPackageTest {
     50         @Override public ITestSourceConverter createConverter() {
     51             return newConverter();
     52         }
     53     }
     54     public static class VisibilityTest extends ConvertVisibilityTest {
     55         @Override public ITestSourceConverter createConverter() {
     56             return newConverter();
     57         }
     58     }
     59     public static class WildcardTest extends ConvertWildcardTest {
     60         @Override
     61         public ITestSourceConverter createConverter() {
     62             return newConverter();
     63         }
     64     }
     65     public static class EnumTest extends ConvertEnumTest {
     66         @Override public ITestSourceConverter createConverter() {
     67             return newConverter();
     68         }
     69     }
     70 }
     71 
     72