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.dex.DexTestConverter; 23 import signature.converter.util.ITestSourceConverter; 24 25 @RunWith(Suite.class) 26 @Suite.SuiteClasses({ 27 AllDexTests.ClassTest.class, 28 AllDexTests.PackageTest.class, 29 AllDexTests.AnnotationTest.class, 30 AllDexTests.VisibilityTest.class, 31 AllDexTests.WildcardTest.class, 32 AllDexTests.EnumTest.class 33 }) 34 public class AllDexTests { 35 private static ITestSourceConverter newConverter(){ 36 return new DexTestConverter(); 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 60 public static class WildcardTest extends ConvertWildcardTest { 61 @Override public ITestSourceConverter createConverter() { 62 return newConverter(); 63 } 64 } 65 66 public static class EnumTest extends ConvertEnumTest { 67 @Override public ITestSourceConverter createConverter() { 68 return newConverter(); 69 } 70 } 71 72 public static class ParameterizedTypeTest extends ConvertParameterizedTypeTest { 73 @Override public ITestSourceConverter createConverter() { 74 return newConverter(); 75 } 76 } 77 } 78 79