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 package com.google.coretests; 17 18 import junit.framework.TestCase; 19 import dalvik.annotation.AndroidOnly; 20 import dalvik.annotation.BrokenTest; 21 import dalvik.annotation.KnownFailure; 22 import dalvik.annotation.SideEffect; 23 24 /** 25 * A dummy test for testing our CoreTestRunner. 26 */ 27 public class CoreTestDummy extends TestCase { 28 29 @AndroidOnly("") 30 public void testAndroidOnlyPass() { 31 } 32 33 @AndroidOnly("") 34 public void testAndroidOnlyFail() { 35 fail("Oops!"); 36 } 37 38 @BrokenTest("") 39 public void testBrokenTestPass() { 40 } 41 42 @BrokenTest("") 43 public void testBrokenTestFail() { 44 fail("Oops!"); 45 } 46 47 @KnownFailure("") 48 public void testKnownFailurePass() { 49 } 50 51 @KnownFailure("") 52 public void testKnownFailureFail() { 53 fail("Oops!"); 54 } 55 56 @SideEffect("") 57 public void testSideEffectPass() { 58 } 59 60 @SideEffect("") 61 public void testSideEffectFail() { 62 fail("Oops!"); 63 } 64 65 public void testNormalPass() { 66 } 67 68 public void testNormalFail() { 69 fail("Oops!"); 70 } 71 72 } 73