test_class.file: oak-core/src/test/java/org/apache/jackrabbit/oak/security/user/autosave/AuthorizableWrapperTest.java
test_class.identifier: AuthorizableWrapperTest
test_class.superclass: extends AbstractAutoSaveTest
test_case.body: @Test
      public void testApply() throws Exception {
          Iterator<Authorizable> it = AuthorizableWrapper.createIterator(Lists.newArrayList(getTestUser(), (Authorizable) null).iterator(), autosaveMgr);
          while(it.hasNext()) {
              it.next();
          }
          verify(autosaveMgr, times(1)).wrap(any(Authorizable.class));
      }
test_case.class_method_signature: AuthorizableWrapperTest.testApply()
test_case.full_signature: @Test public void testApply()
test_case.identifier: testApply
test_case.invocations: createIterator iterator newArrayList getTestUser hasNext next wrap verify times any
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testApply()
focal_class.declarator: mgr
focal_class.modifier: private final
focal_class.original_string: private final AutoSaveEnabledManager mgr;
focal_class.type: AutoSaveEnabledManager
focal_class.var_name: mgr
focal_class.file: oak-core/src/main/java/org/apache/jackrabbit/oak/security/user/autosave/AuthorizableWrapper.java
focal_class.identifier: AuthorizableWrapper
focal_class.interfaces: implements Function<T, T>
focal_class.class_method_signature: AuthorizableWrapper.AuthorizableWrapper(AutoSaveEnabledManager mgr)
focal_class.full_signature: private  AuthorizableWrapper(AutoSaveEnabledManager mgr)
focal_class.identifier: AuthorizableWrapper
focal_class.modifiers: private
focal_class.parameters: (AutoSaveEnabledManager mgr)
focal_class.signature:  AuthorizableWrapper(AutoSaveEnabledManager mgr)
focal_class.class_method_signature: AuthorizableWrapper.apply(T authorizable)
focal_class.full_signature: @Override public T apply(T authorizable)
focal_class.identifier: apply
focal_class.modifiers: @Override public
focal_class.parameters: (T authorizable)
focal_class.return: T
focal_class.signature: T apply(T authorizable)
focal_class.class_method_signature: AuthorizableWrapper.createIterator(Iterator<Authorizable> dlgs, AutoSaveEnabledManager mgr)
focal_class.full_signature: static Iterator<Authorizable> createIterator(Iterator<Authorizable> dlgs, AutoSaveEnabledManager mgr)
focal_class.identifier: createIterator
focal_class.modifiers: static
focal_class.parameters: (Iterator<Authorizable> dlgs, AutoSaveEnabledManager mgr)
focal_class.return: Iterator<Authorizable>
focal_class.signature: Iterator<Authorizable> createIterator(Iterator<Authorizable> dlgs, AutoSaveEnabledManager mgr)
focal_class.class_method_signature: AuthorizableWrapper.createGroupIterator(Iterator<Group> dlgs, AutoSaveEnabledManager mgr)
focal_class.full_signature: static Iterator<Group> createGroupIterator(Iterator<Group> dlgs, AutoSaveEnabledManager mgr)
focal_class.identifier: createGroupIterator
focal_class.modifiers: static
focal_class.parameters: (Iterator<Group> dlgs, AutoSaveEnabledManager mgr)
focal_class.return: Iterator<Group>
focal_class.signature: Iterator<Group> createGroupIterator(Iterator<Group> dlgs, AutoSaveEnabledManager mgr)
focal_method.body: @Override
      public T apply(T authorizable) {
          if (authorizable == null) {
              return null;
          } else {
              return (T) mgr.wrap(authorizable);
          }
      }
focal_method.class_method_signature: AuthorizableWrapper.apply(T authorizable)
focal_method.full_signature: @Override public T apply(T authorizable)
focal_method.identifier: apply
focal_method.invocations: wrap
focal_method.modifiers: @Override public
focal_method.parameters: (T authorizable)
focal_method.return: T
focal_method.signature: T apply(T authorizable)