1 /* 2 * Copyright (C) 2008 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 testprogress2; 18 19 import com.sun.javadoc.ClassDoc; 20 21 /** 22 * 23 */ 24 public class ClassOriginator implements Originator { 25 private final ClassDoc mClassDoc; 26 27 private final String mComment; 28 29 ClassOriginator(ClassDoc classDoc, String comment) { 30 mClassDoc = classDoc; 31 mComment = comment; 32 } 33 34 /* 35 * (non-Javadoc) 36 * @see testprogress.Originator#asString() 37 */ 38 public String asString() { 39 return (mComment != null ? mComment + " - " : "") + " -class- " 40 + mClassDoc.qualifiedName(); 41 } 42 43 public boolean isDisabled() { 44 return false; 45 } 46 47 /** 48 * a reference from a class is never a to be fixed 49 */ 50 public String getToBeFixed() { 51 return null; 52 } 53 54 /** 55 * a reference from a class is never a broken tests 56 */ 57 public String getBrokenTest() { 58 return null; 59 } 60 61 /** 62 * a reference from a class is never a failure 63 */ 64 public String getKnownFailure() { 65 return null; 66 } 67 68 } 69