@SuppressWarnings("rawtypes") @Override public void transform(IConfigurationAnnotation annotation, Class testClass, Constructor testCtor, Method testMethod) { if (testClass != null) { xformConfig.add("class: " + testClass.getSimpleName()); } else if (testCtor != null) { xformConfig.add("ctor: " + testCtor.getName()); } else { xformConfig.add("method: " + testMethod.getName()); } }
@Override public void transform(IConfigurationAnnotation iConfigurationAnnotation, Class aClass, Constructor constructor, Method method) { if (method != null) { try { context = new AutomationContext(); Annotation classAnnotation = method.getDeclaringClass().getAnnotation(SetEnvironment.class); Annotation methodAnnotation = method.getAnnotation(SetEnvironment.class); log.info("Started Configuration Transform manager " + method.getName()); //skip configuration methods if class level custom annotation is set. if (classAnnotation != null) { if (!annotationComparator(classAnnotation.toString())) { iConfigurationAnnotation.setEnabled(false); log.info("Skipped Configuration method <" + method.getName() + "> on " + "annotation <" + classAnnotation.toString() + ">"); } //skip configuration methods if configuration method level custom annotation is set. } else if (methodAnnotation != null) { if (!annotationComparator(methodAnnotation.toString())) { iConfigurationAnnotation.setEnabled(false); log.info("Skipped Configuration method <" + method.getName() + "> on " + "annotation <" + methodAnnotation.toString() + ">"); } } } catch (Exception e) { handleException("Error transform custom annotations ", e); } } }
@SuppressWarnings("rawtypes") public void transform(IConfigurationAnnotation iConfigurationAnnotation, Class arg1, Constructor arg2, Method arg3) { }
@Override @SuppressWarnings("rawtypes") public void transform(IConfigurationAnnotation annotation, Class testClass, Constructor testConstructor, Method testMethod) { // TODO Auto-generated method stub }