@SuppressWarnings("unchecked") @Test public void cleanAuthenticationInfoTest() throws IllegalAccessException { Map<String, List<PlainAccessResource>> plainAccessResourceMap = (Map<String, List<PlainAccessResource>>) FieldUtils.readDeclaredField(plainPermissionManager, "plainAccessResourceMap", true); Assert.assertFalse(plainAccessResourceMap.isEmpty()); plainPermissionManager.clearPermissionInfo(); plainAccessResourceMap = (Map<String, List<PlainAccessResource>>) FieldUtils.readDeclaredField(plainPermissionManager, "plainAccessResourceMap", true); Assert.assertTrue(plainAccessResourceMap.isEmpty()); }
void clearPermissionInfo() { this.plainAccessResourceMap.clear(); this.globalWhiteRemoteAddressStrategy.clear(); }
PlainPermissionManager { void clearPermissionInfo() { this.plainAccessResourceMap.clear(); this.globalWhiteRemoteAddressStrategy.clear(); } }
PlainPermissionManager { void clearPermissionInfo() { this.plainAccessResourceMap.clear(); this.globalWhiteRemoteAddressStrategy.clear(); } PlainPermissionManager(); }
PlainPermissionManager { void clearPermissionInfo() { this.plainAccessResourceMap.clear(); this.globalWhiteRemoteAddressStrategy.clear(); } PlainPermissionManager(); void load(); String getAclConfigDataVersion(); boolean updateAccessConfig(PlainAccessConfig plainAccessConfig); boolean deleteAccessConfig(String accesskey); boolean updateGlobalWhiteAddrsConfig(List<String> globalWhiteAddrsList); AclConfig getAllAclConfig(); PlainAccessResource buildPlainAccessResource(PlainAccessConfig plainAccessConfig); void validate(PlainAccessResource plainAccessResource); boolean isWatchStart(); }
PlainPermissionManager { void clearPermissionInfo() { this.plainAccessResourceMap.clear(); this.globalWhiteRemoteAddressStrategy.clear(); } PlainPermissionManager(); void load(); String getAclConfigDataVersion(); boolean updateAccessConfig(PlainAccessConfig plainAccessConfig); boolean deleteAccessConfig(String accesskey); boolean updateGlobalWhiteAddrsConfig(List<String> globalWhiteAddrsList); AclConfig getAllAclConfig(); PlainAccessResource buildPlainAccessResource(PlainAccessConfig plainAccessConfig); void validate(PlainAccessResource plainAccessResource); boolean isWatchStart();  }