@Test public void serviceTicketCount() { assertEquals(Integer.MIN_VALUE, decorator.serviceTicketCount()); }
@Override public int serviceTicketCount() { if (this.ticketRegistry instanceof TicketRegistryState) { return ((TicketRegistryState) this.ticketRegistry).serviceTicketCount(); } logger.debug("Ticket registry {} does not support report the serviceTicketCount() operation of the registry state.", this.ticketRegistry.getClass().getName()); return super.serviceTicketCount(); }
TicketRegistryDecorator extends AbstractTicketRegistry { @Override public int serviceTicketCount() { if (this.ticketRegistry instanceof TicketRegistryState) { return ((TicketRegistryState) this.ticketRegistry).serviceTicketCount(); } logger.debug("Ticket registry {} does not support report the serviceTicketCount() operation of the registry state.", this.ticketRegistry.getClass().getName()); return super.serviceTicketCount(); } }
TicketRegistryDecorator extends AbstractTicketRegistry { @Override public int serviceTicketCount() { if (this.ticketRegistry instanceof TicketRegistryState) { return ((TicketRegistryState) this.ticketRegistry).serviceTicketCount(); } logger.debug("Ticket registry {} does not support report the serviceTicketCount() operation of the registry state.", this.ticketRegistry.getClass().getName()); return super.serviceTicketCount(); } TicketRegistryDecorator(final TicketRegistry actualTicketRegistry, final Map<String, String> cache); }
TicketRegistryDecorator extends AbstractTicketRegistry { @Override public int serviceTicketCount() { if (this.ticketRegistry instanceof TicketRegistryState) { return ((TicketRegistryState) this.ticketRegistry).serviceTicketCount(); } logger.debug("Ticket registry {} does not support report the serviceTicketCount() operation of the registry state.", this.ticketRegistry.getClass().getName()); return super.serviceTicketCount(); } TicketRegistryDecorator(final TicketRegistry actualTicketRegistry, final Map<String, String> cache); @Override void addTicket(final Ticket ticket); @Override Ticket getTicket(final String ticketId); @Override boolean deleteTicket(final String ticketId); @Override Collection<Ticket> getTickets(); @Override int sessionCount(); @Override int serviceTicketCount(); }
TicketRegistryDecorator extends AbstractTicketRegistry { @Override public int serviceTicketCount() { if (this.ticketRegistry instanceof TicketRegistryState) { return ((TicketRegistryState) this.ticketRegistry).serviceTicketCount(); } logger.debug("Ticket registry {} does not support report the serviceTicketCount() operation of the registry state.", this.ticketRegistry.getClass().getName()); return super.serviceTicketCount(); } TicketRegistryDecorator(final TicketRegistry actualTicketRegistry, final Map<String, String> cache); @Override void addTicket(final Ticket ticket); @Override Ticket getTicket(final String ticketId); @Override boolean deleteTicket(final String ticketId); @Override Collection<Ticket> getTickets(); @Override int sessionCount(); @Override int serviceTicketCount();  }