test_class.file: session-agent/src/test/java/com/amadeus/session/agent/TestServletContextAdapter.java
test_class.identifier: TestServletContextAdapter
test_case.body: @Test
    public void testIgnoreNonPublicMethods() {
      ClassVisitor cv = mock(ClassVisitor.class);
      ServletContextAdapter sca = new ServletContextAdapter(cv);
      MethodVisitor result = sca.visitMethod(ACC_PROTECTED, "addListener", "(Ljava/lang/Object;)V", null, null);
      assertThat(result, not(instanceOf(EnahceAddListener.class)));
      result = sca.visitMethod(ACC_PRIVATE, "addListener", "(Ljava/util/EventListener;)V", null, null);
      assertThat(result, not(instanceOf(EnahceAddListener.class)));
      result = sca.visitMethod(ACC_STATIC | ACC_PUBLIC, "addListener", "(Ljava/util/EventListener;)V", null, null);
      assertThat(result, not(instanceOf(EnahceAddListener.class)));
    }
test_case.class_method_signature: TestServletContextAdapter.testIgnoreNonPublicMethods()
test_case.full_signature: @Test public void testIgnoreNonPublicMethods()
test_case.identifier: testIgnoreNonPublicMethods
test_case.invocations: mock visitMethod assertThat not instanceOf visitMethod assertThat not instanceOf visitMethod assertThat not instanceOf
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testIgnoreNonPublicMethods()
focal_class.declarator: className
focal_class.original_string: String className;
focal_class.type: String
focal_class.var_name: className
focal_class.declarator: addedStaticInit
focal_class.original_string: boolean addedStaticInit;
focal_class.type: boolean
focal_class.var_name: addedStaticInit
focal_class.file: session-agent/src/main/java/com/amadeus/session/agent/ServletContextAdapter.java
focal_class.identifier: ServletContextAdapter
focal_class.class_method_signature: ServletContextAdapter.ServletContextAdapter(ClassVisitor cv)
focal_class.full_signature: public  ServletContextAdapter(ClassVisitor cv)
focal_class.identifier: ServletContextAdapter
focal_class.modifiers: public
focal_class.parameters: (ClassVisitor cv)
focal_class.signature:  ServletContextAdapter(ClassVisitor cv)
focal_class.class_method_signature: ServletContextAdapter.visit(int version, int access, String name, String signature, String superName, String[] interfaces)
focal_class.full_signature: @Override public void visit(int version, int access, String name, String signature, String superName, String[] interfaces)
focal_class.identifier: visit
focal_class.modifiers: @Override public
focal_class.parameters: (int version, int access, String name, String signature, String superName, String[] interfaces)
focal_class.return: void
focal_class.signature: void visit(int version, int access, String name, String signature, String superName, String[] interfaces)
focal_class.class_method_signature: ServletContextAdapter.visitMethod(int access, String name, String desc, String signature, String[] exceptions)
focal_class.full_signature: @Override public MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions)
focal_class.identifier: visitMethod
focal_class.modifiers: @Override public
focal_class.parameters: (int access, String name, String desc, String signature, String[] exceptions)
focal_class.return: MethodVisitor
focal_class.signature: MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions)
focal_class.class_method_signature: ServletContextAdapter.visitEnd()
focal_class.full_signature: @Override public void visitEnd()
focal_class.identifier: visitEnd
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void visitEnd()
focal_class.superclass: extends ClassVisitor
focal_method.body: @Override
    public MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) {
      if ((access & (ACC_STATIC | ACC_PUBLIC)) == ACC_PUBLIC
          && "addListener".equals(name)
          && ("(Ljava/lang/Object;)V".equals(desc) || "(Ljava/util/EventListener;)V".equals(desc))) {
        debug("modifying addListener(...) method for %s", className);
        MethodVisitor mv = super.visitMethod(access, name, desc, signature, exceptions);
        return new EnahceAddListener(mv);
      }
      // Enhance static initializer if present
      if ("<clinit>".equals(name) && !addedStaticInit) {
        MethodVisitor mv = super.visitMethod(access, name, desc, signature, exceptions);
        return new EnhanceStaticInit(mv);
      }
      return super.visitMethod(access, name, desc, signature, exceptions);
    }
focal_method.class_method_signature: ServletContextAdapter.visitMethod(int access, String name, String desc, String signature, String[] exceptions)
focal_method.full_signature: @Override public MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions)
focal_method.identifier: visitMethod
focal_method.invocations: equals equals equals debug visitMethod equals visitMethod visitMethod
focal_method.modifiers: @Override public
focal_method.parameters: (int access, String name, String desc, String signature, String[] exceptions)
focal_method.return: MethodVisitor
focal_method.signature: MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions)