Package ns.foundation.protectedaccess

Examples of ns.foundation.protectedaccess.RestrictedClass


    _KeyBinding binding = NSKeyValueCoding.DefaultImplementation._createKeyGetBindingForKey(obj, "knownKey", lookupOrder);
    assertEquals(4, binding.valueInObject(obj));
  }
 
  public void testKeyBindingRestrictedAccess$withProtectedAccessor() {
    RestrictedClass obj = new RestrictedClass();
    assertEquals(FORTY_TWO, Utility.valueForKey(obj, "knownMethod"));
    assertEquals(FORTY_TWO, Utility.valueForKey(obj, "knownField"));
    assertEquals(FORTY_TWO, Utility.valueForKey(obj, "knownMethod2"));
    assertEquals(FORTY_TWO, Utility.valueForKey(obj, "knownField2"));
  }
View Full Code Here

TOP

Related Classes of ns.foundation.protectedaccess.RestrictedClass

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.