@Test public void canCreateZone() throws Exception { assertFalse(service.canCreateZone(citizen)); accountDao.changeTotalVotedDebate(citizen.getAccountId(), 60, 0); assertTrue(service.canCreateZone(citizen)); }
@Override public boolean canCreateZone(Authorization authorization) { return verifyAuthority(authorization).flatMap(this::verifyCredit).isSuccess(); }
ZoneServiceImpl implements ZoneService { @Override public boolean canCreateZone(Authorization authorization) { return verifyAuthority(authorization).flatMap(this::verifyCredit).isSuccess(); } }
ZoneServiceImpl implements ZoneService { @Override public boolean canCreateZone(Authorization authorization) { return verifyAuthority(authorization).flatMap(this::verifyCredit).isSuccess(); }  }
ZoneServiceImpl implements ZoneService { @Override public boolean canCreateZone(Authorization authorization) { return verifyAuthority(authorization).flatMap(this::verifyCredit).isSuccess(); }  @Override ZoneInfo loadZone(Zone zone); @Override ZoneInfo createDefault(String zone, String aliasName); @Override ZoneInfo createKaif(String zone, String aliasName); @Override void updateTheme(Zone zone, String theme); @Override Map<String, List<ZoneInfo>> listZoneAtoZ(); @Override List<ZoneInfo> listRecommendZones(); @Override List<ZoneInfo> listCitizenZones(); @Override ZoneInfo createByUser(String zone, String aliasName, Authorization creator); @Override List<ZoneInfo> listAdministerZones(String username); @Override boolean isZoneAvailable(String zone); @Override boolean canCreateZone(Authorization authorization); @Override List<String> listAdministratorsWithCache(Zone zone); }
ZoneServiceImpl implements ZoneService { @Override public boolean canCreateZone(Authorization authorization) { return verifyAuthority(authorization).flatMap(this::verifyCredit).isSuccess(); }  @Override ZoneInfo loadZone(Zone zone); @Override ZoneInfo createDefault(String zone, String aliasName); @Override ZoneInfo createKaif(String zone, String aliasName); @Override void updateTheme(Zone zone, String theme); @Override Map<String, List<ZoneInfo>> listZoneAtoZ(); @Override List<ZoneInfo> listRecommendZones(); @Override List<ZoneInfo> listCitizenZones(); @Override ZoneInfo createByUser(String zone, String aliasName, Authorization creator); @Override List<ZoneInfo> listAdministerZones(String username); @Override boolean isZoneAvailable(String zone); @Override boolean canCreateZone(Authorization authorization); @Override List<String> listAdministratorsWithCache(Zone zone);  }