@Test public void testGetCommandHistoryNumberOfPages() { Response resp = this.resource.getCommandHistoryNumberOfPages( null, 10 ); Assert.assertEquals( Status.OK.getStatusCode(), resp.getStatus()); Assert.assertEquals( "0", resp.getEntity()); }
@Override public Response getCommandHistoryNumberOfPages( String applicationName, int itemsPerPage ) { this.logger.fine("Request: get the number of pages for commands history."); int number = this.manager.commandsMngr().getHistoryNumberOfPages( itemsPerPage, applicationName ); return Response.ok( String.valueOf( number )).build(); }
HistoryResource implements IHistoryResource { @Override public Response getCommandHistoryNumberOfPages( String applicationName, int itemsPerPage ) { this.logger.fine("Request: get the number of pages for commands history."); int number = this.manager.commandsMngr().getHistoryNumberOfPages( itemsPerPage, applicationName ); return Response.ok( String.valueOf( number )).build(); } }
HistoryResource implements IHistoryResource { @Override public Response getCommandHistoryNumberOfPages( String applicationName, int itemsPerPage ) { this.logger.fine("Request: get the number of pages for commands history."); int number = this.manager.commandsMngr().getHistoryNumberOfPages( itemsPerPage, applicationName ); return Response.ok( String.valueOf( number )).build(); } HistoryResource( Manager manager ); }
HistoryResource implements IHistoryResource { @Override public Response getCommandHistoryNumberOfPages( String applicationName, int itemsPerPage ) { this.logger.fine("Request: get the number of pages for commands history."); int number = this.manager.commandsMngr().getHistoryNumberOfPages( itemsPerPage, applicationName ); return Response.ok( String.valueOf( number )).build(); } HistoryResource( Manager manager ); @Override Response getCommandHistoryNumberOfPages( String applicationName, int itemsPerPage ); @Override List<CommandHistoryItem> getCommandHistory(
			int pageNumber,
			String applicationName,
			int itemsPerPage,
			String sortingCriteria,
			String sortingOrder ); }
HistoryResource implements IHistoryResource { @Override public Response getCommandHistoryNumberOfPages( String applicationName, int itemsPerPage ) { this.logger.fine("Request: get the number of pages for commands history."); int number = this.manager.commandsMngr().getHistoryNumberOfPages( itemsPerPage, applicationName ); return Response.ok( String.valueOf( number )).build(); } HistoryResource( Manager manager ); @Override Response getCommandHistoryNumberOfPages( String applicationName, int itemsPerPage ); @Override List<CommandHistoryItem> getCommandHistory(
			int pageNumber,
			String applicationName,
			int itemsPerPage,
			String sortingCriteria,
			String sortingOrder );  }