TestFilterHelper

public class TestFilterHelper
extends Object

java.lang.Object
com.android.tradefed.util.TestFilterHelper


فئة مساعد لاختبارات التصفية

ملخص

المقاولين العامة

TestFilterHelper ()
TestFilterHelper ( includeFilters, excludeFilters, includeAnnotation, excludeAnnotation) TestFilterHelper ( includeFilters, excludeFilters, includeAnnotation, excludeAnnotation) TestFilterHelper ( includeFilters, excludeFilters, includeAnnotation, excludeAnnotation) TestFilterHelper ( includeFilters, excludeFilters, includeAnnotation, excludeAnnotation) TestFilterHelper ( includeFilters, excludeFilters, includeAnnotation, excludeAnnotation)

الأساليب العامة

void addAllExcludeAnnotation ( notAnnotations) addAllExcludeAnnotation ( notAnnotations)

إضافة ERROR(/Set) الخاص باستبعاد التعليق التوضيحي للاختبار المطلوب تشغيله

void addAllExcludeFilters ( filters) addAllExcludeFilters ( filters)

يضيف ERROR(/Set) عوامل التصفية التي سيتم استبعاد الاختبارات الخاصة بها.

void addAllIncludeAnnotation ( annotations) addAllIncludeAnnotation ( annotations)

إضافة ERROR(/Set) الخاص بتضمين التعليق التوضيحي للاختبار المطلوب تشغيله

void addAllIncludeFilters ( filters) addAllIncludeFilters ( filters)

يضيف ERROR(/Set) عوامل التصفية التي سيتم تضمين الاختبارات الخاصة بها

void addExcludeAnnotation (String notAnnotation)

يضيف تعليقًا توضيحيًا للاستثناء للاختبار المطلوب تشغيله

void addExcludeFilter (String filter)

يضيف عامل تصفية للاختبارات المراد استبعادها

void addIncludeAnnotation (String annotation)

يضيف تعليقًا توضيحيًا للاختبار المطلوب تشغيله

void addIncludeFilter (String filter)

إضافة عامل تصفية للاختبارات المراد تضمينها

void clearExcludeAnnotations ()
void clearExcludeFilters ()
void clearIncludeAnnotations ()
void clearIncludeFilters ()
getExcludeAnnotation ()
getExcludeFilters ()
getIncludeAnnotation ()
getIncludeFilters ()
boolean shouldRun (Description desc, extraJars) shouldRun (Description desc, extraJars)

تحقق مما إذا كان العنصر الذي يحتوي على تعليق توضيحي يجتاز عامل التصفية

boolean shouldRun (String packageName, Class<?> classObj, Method method)

تحقق مما إذا كان العنصر الذي يحتوي على تعليق توضيحي يجتاز عامل التصفية

boolean shouldTestRun (AnnotatedElement annotatedElement)

تحقق مما إذا كان العنصر الذي يحتوي على تعليق توضيحي يجتاز عامل التصفية

المقاولين العامة

TestFilterHelper

public TestFilterHelper ()

TestFilterHelper

public TestFilterHelper ( includeFilters, 
                 excludeFilters, 
                 includeAnnotation, 
                 excludeAnnotation)

حدود
includeFilters

excludeFilters

includeAnnotation

excludeAnnotation

الأساليب العامة

addAllExcludeAnnotation

public void addAllExcludeAnnotation ( notAnnotations)

إضافة ERROR(/Set) الخاص باستبعاد التعليق التوضيحي للاختبار المطلوب تشغيله

حدود
notAnnotations

addAllExcludeFilters

public void addAllExcludeFilters ( filters)

يضيف ERROR(/Set) عوامل التصفية التي سيتم استبعاد الاختبارات الخاصة بها.

حدود
filters

addAllIncludeAnnotation

public void addAllIncludeAnnotation ( annotations)

إضافة ERROR(/Set) الخاص بتضمين التعليق التوضيحي للاختبار المطلوب تشغيله

حدود
annotations

addAllIncludeFilters

public void addAllIncludeFilters ( filters)

يضيف ERROR(/Set) عوامل التصفية التي سيتم تضمين الاختبارات الخاصة بها

حدود
filters

addExcludeAnnotation

public void addExcludeAnnotation (String notAnnotation)

يضيف تعليقًا توضيحيًا للاستثناء للاختبار المطلوب تشغيله

حدود
notAnnotation String

addExcludeFilter

public void addExcludeFilter (String filter)

يضيف عامل تصفية للاختبارات المراد استبعادها

حدود
filter String

addIncludeAnnotation

public void addIncludeAnnotation (String annotation)

يضيف تعليقًا توضيحيًا للاختبار المطلوب تشغيله

حدود
annotation String

addIncludeFilter

public void addIncludeFilter (String filter)

إضافة عامل تصفية للاختبارات المراد تضمينها

حدود
filter String

ClearExcludeAnnotations

public void clearExcludeAnnotations ()

ClearExcludeFilters

public void clearExcludeFilters ()

ClearIncludeAnnotations

public void clearIncludeAnnotations ()

ClearIncludeFilters

public void clearIncludeFilters ()

getExcludeAnnotation

public  getExcludeAnnotation ()

عائدات

getExcludeFilters

public  getExcludeFilters ()

عائدات

getIncludeAnnotation

public  getIncludeAnnotation ()

عائدات

getIncludeFilters

public  getIncludeFilters ()

عائدات

يجب تشغيل

public boolean shouldRun (Description desc, 
                 extraJars)

تحقق مما إذا كان العنصر الذي يحتوي على تعليق توضيحي يجتاز عامل التصفية

حدود
desc Description : Description يصف الاختبار.

extraJars : قائمة ERROR(/File) التي تشير إلى الجرار الإضافية للتحميل.

عائدات
boolean صحيح إذا كان يجب تشغيل طريقة الاختبار، وخطأ فيما عدا ذلك

يجب تشغيل

public boolean shouldRun (String packageName, 
                Class<?> classObj, 
                Method method)

تحقق مما إذا كان العنصر الذي يحتوي على تعليق توضيحي يجتاز عامل التصفية

حدود
packageName String : اسم حزمة الطريقة

classObj Class : فئة الطريقة

method Method : طريقة الاختبار

عائدات
boolean صحيح إذا كان يجب تشغيل طريقة الاختبار، وخطأ فيما عدا ذلك

يجب أن يكون TestRun

public boolean shouldTestRun (AnnotatedElement annotatedElement)

تحقق مما إذا كان العنصر الذي يحتوي على تعليق توضيحي يجتاز عامل التصفية

حدود
annotatedElement AnnotatedElement : العنصر المراد تصفيته

عائدات
boolean صحيح إذا كان يجب إجراء الاختبار، وخطأ فيما عدا ذلك