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.dex.DexTestConverter;
     22 import signature.converter.util.ITestSourceConverter;
     23 
     24 @RunWith(Suite.class)
     25 @Suite.SuiteClasses({
     26     AllDexTests.DexPackageCompareTest.class,
     27     AllDexTests.DexClassCompareTest.class,
     28     AllDexTests.DexMethodCompareTests.class,
     29     AllDexTests.DexAnnotationCompareTest.class
     30 })
     31 public class AllDexTests {
     32     private static ITestSourceConverter newConverter(){
     33         return new DexTestConverter();
     34     }
     35 
     36     public static class DexPackageCompareTest extends PackageCompareTest {
     37         @Override public ITestSourceConverter createConverter() {
     38             return newConverter();
     39         }
     40     }
     41 
     42     public static class DexClassCompareTest extends ClassCompareTest {
     43         @Override public ITestSourceConverter createConverter() {
     44             return newConverter();
     45         }
     46     }
     47 
     48     public static class DexMethodCompareTests extends MethodCompareTests {
     49         @Override public ITestSourceConverter createConverter() {
     50             return newConverter();
     51         }
     52     }
     53 
     54     public static class DexAnnotationCompareTest extends AnnotationCompareTest{
     55         @Override public ITestSourceConverter createConverter() {
     56             return newConverter();
     57         }
     58     }
     59 
     60 
     61 }