protected void initBeforeAfterGroups(Class<? extends ITestOrConfiguration> annotationClass, String[] groups) { String[] groupsAtMethodLevel = calculateGroupsTouseConsideringValuesAndGroupValues(annotationClass, groups); //@BeforeGroups and @AfterGroups annotation cannot be used at Class level. So its always null String[] groupsAtClassLevel = null; setGroups(getStringArray(groupsAtMethodLevel, groupsAtClassLevel)); initRestOfGroupDependencies(annotationClass); }
protected void initBeforeAfterGroups( Class<? extends ITestOrConfiguration> annotationClass, String[] groups) { String[] groupsAtMethodLevel = calculateGroupsTouseConsideringValuesAndGroupValues(annotationClass, groups); // @BeforeGroups and @AfterGroups annotation cannot be used at Class level. So its always null setGroups(getStringArray(groupsAtMethodLevel, null)); initRestOfGroupDependencies(annotationClass); }
getStringArray(null != annotation ? annotation.getDependsOnGroups() : null, null != classAnnotation ? classAnnotation.getDependsOnGroups() : null), xmlGroupDependencies); getStringArray(null != annotation ? annotation.getDependsOnMethods() : null, null != classAnnotation ? classAnnotation.getDependsOnMethods() : null);
getStringArray( null != annotation ? annotation.getDependsOnGroups() : null, null != classAnnotation ? classAnnotation.getDependsOnGroups() : null), getStringArray( null != annotation ? annotation.getDependsOnMethods() : null, null != classAnnotation ? classAnnotation.getDependsOnMethods() : null);
protected void initGroups(Class<? extends ITestOrConfiguration> annotationClass) { ITestOrConfiguration annotation = getAnnotationFinder().findAnnotation(getConstructorOrMethod(), annotationClass); Object object = getInstance(); Class<?> clazz = getConstructorOrMethod().getDeclaringClass(); if (object != null) { clazz = object.getClass(); } ITestOrConfiguration classAnnotation = getAnnotationFinder().findAnnotation(clazz, annotationClass); setGroups( getStringArray( null != annotation ? annotation.getGroups() : null, null != classAnnotation ? classAnnotation.getGroups() : null)); initRestOfGroupDependencies(annotationClass); }
protected void initGroups(Class<? extends ITestOrConfiguration> annotationClass) { // // Init groups // { ITestOrConfiguration annotation = getAnnotationFinder().findAnnotation(getConstructorOrMethod(), annotationClass); ITestOrConfiguration classAnnotation = getAnnotationFinder().findAnnotation(getConstructorOrMethod().getDeclaringClass(), annotationClass); setGroups(getStringArray(null != annotation ? annotation.getGroups() : null, null != classAnnotation ? classAnnotation.getGroups() : null)); } // // Init groups depended upon // initRestOfGroupDependencies(annotationClass); }