@Test public void getAllAclConfigTest(){ PlainAccessValidator plainAccessValidator = new PlainAccessValidator(); AclConfig aclConfig = plainAccessValidator.getAllAclConfig(); Assert.assertEquals(aclConfig.getGlobalWhiteAddrs().size(), 2); Assert.assertEquals(aclConfig.getPlainAccessConfigs().size(), 2); }
@Override public AclConfig getAllAclConfig() { return aclPlugEngine.getAllAclConfig(); }
PlainAccessValidator implements AccessValidator { @Override public AclConfig getAllAclConfig() { return aclPlugEngine.getAllAclConfig(); } }
PlainAccessValidator implements AccessValidator { @Override public AclConfig getAllAclConfig() { return aclPlugEngine.getAllAclConfig(); } PlainAccessValidator(); }
PlainAccessValidator implements AccessValidator { @Override public AclConfig getAllAclConfig() { return aclPlugEngine.getAllAclConfig(); } PlainAccessValidator(); @Override AccessResource parse(RemotingCommand request, String remoteAddr); @Override void validate(AccessResource accessResource); @Override boolean updateAccessConfig(PlainAccessConfig plainAccessConfig); @Override boolean deleteAccessConfig(String accesskey); @Override String getAclConfigVersion(); @Override boolean updateGlobalWhiteAddrsConfig(List<String> globalWhiteAddrsList); @Override AclConfig getAllAclConfig(); }
PlainAccessValidator implements AccessValidator { @Override public AclConfig getAllAclConfig() { return aclPlugEngine.getAllAclConfig(); } PlainAccessValidator(); @Override AccessResource parse(RemotingCommand request, String remoteAddr); @Override void validate(AccessResource accessResource); @Override boolean updateAccessConfig(PlainAccessConfig plainAccessConfig); @Override boolean deleteAccessConfig(String accesskey); @Override String getAclConfigVersion(); @Override boolean updateGlobalWhiteAddrsConfig(List<String> globalWhiteAddrsList); @Override AclConfig getAllAclConfig();  }