test_class.file: dataprep-backend-service/src/test/java/org/talend/dataprep/processor/WrapperProcessorTest.java
test_class.identifier: WrapperProcessorTest
test_class.superclass: extends ServiceBaseTest
test_case.body: @Test
      public void shouldReportValidWrapperForNull() throws Exception {
          assertTrue(WrapperProcessor.isValidWrapper(null));
      }
test_case.class_method_signature: WrapperProcessorTest.shouldReportValidWrapperForNull()
test_case.full_signature: @Test public void shouldReportValidWrapperForNull()
test_case.identifier: shouldReportValidWrapperForNull
test_case.invocations: assertTrue isValidWrapper
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void shouldReportValidWrapperForNull()
focal_class.declarator: applicationContext
focal_class.modifier: private
focal_class.original_string: private ApplicationContext applicationContext;
focal_class.type: ApplicationContext
focal_class.var_name: applicationContext
focal_class.file: dataprep-backend-service/src/main/java/org/talend/dataprep/processor/WrapperProcessor.java
focal_class.identifier: WrapperProcessor
focal_class.interfaces: implements BeanPostProcessor, ApplicationContextAware
focal_class.class_method_signature: WrapperProcessor.isValidWrapper(Wrapper wrapper)
focal_class.full_signature: static boolean isValidWrapper(Wrapper wrapper)
focal_class.identifier: isValidWrapper
focal_class.modifiers: static
focal_class.parameters: (Wrapper wrapper)
focal_class.return: boolean
focal_class.signature: boolean isValidWrapper(Wrapper wrapper)
focal_class.class_method_signature: WrapperProcessor.postProcessBeforeInitialization(Object bean, String beanName)
focal_class.full_signature: @Override public Object postProcessBeforeInitialization(Object bean, String beanName)
focal_class.identifier: postProcessBeforeInitialization
focal_class.modifiers: @Override public
focal_class.parameters: (Object bean, String beanName)
focal_class.return: Object
focal_class.signature: Object postProcessBeforeInitialization(Object bean, String beanName)
focal_class.class_method_signature: WrapperProcessor.postProcessAfterInitialization(Object bean, String beanName)
focal_class.full_signature: @Override public Object postProcessAfterInitialization(Object bean, String beanName)
focal_class.identifier: postProcessAfterInitialization
focal_class.modifiers: @Override public
focal_class.parameters: (Object bean, String beanName)
focal_class.return: Object
focal_class.signature: Object postProcessAfterInitialization(Object bean, String beanName)
focal_class.class_method_signature: WrapperProcessor.setApplicationContext(ApplicationContext applicationContext)
focal_class.full_signature: @Override public void setApplicationContext(ApplicationContext applicationContext)
focal_class.identifier: setApplicationContext
focal_class.modifiers: @Override public
focal_class.parameters: (ApplicationContext applicationContext)
focal_class.return: void
focal_class.signature: void setApplicationContext(ApplicationContext applicationContext)
focal_method.body: static boolean isValidWrapper(Wrapper wrapper) {
          if (wrapper == null) {
              return true;
          }
          AtomicBoolean isValid = new AtomicBoolean(true);
          ReflectionUtils.doWithFields(wrapper.getClass(), field -> {
              final Autowired annotation = AnnotationUtils.findAnnotation(field, Autowired.class);
              if (annotation != null) {
                  isValid.set(false);
              }
          });
          return isValid.get();
      }
focal_method.class_method_signature: WrapperProcessor.isValidWrapper(Wrapper wrapper)
focal_method.full_signature: static boolean isValidWrapper(Wrapper wrapper)
focal_method.identifier: isValidWrapper
focal_method.invocations: doWithFields getClass findAnnotation set get
focal_method.modifiers: static
focal_method.parameters: (Wrapper wrapper)
focal_method.return: boolean
focal_method.signature: boolean isValidWrapper(Wrapper wrapper)