@Test public void testGetRequestType() { ReportDefinition reportDefinition = new ReportDefinition(); reportDefinition.setDownloadFormat(DownloadFormat.GZIPPED_CSV); XmlReportDefinitionRequest request = new XmlReportDefinitionRequest(reportDefinition); assertEquals("Incorrect request type", RequestType.XML, request.getRequestType()); assertEquals( "Incorrect download format", DownloadFormat.GZIPPED_CSV, request.getDownloadFormat()); }
@Override public RequestType getRequestType() { return RequestType.XML; }
XmlReportDefinitionRequest implements ReportRequest { @Override public RequestType getRequestType() { return RequestType.XML; } }
XmlReportDefinitionRequest implements ReportRequest { @Override public RequestType getRequestType() { return RequestType.XML; } XmlReportDefinitionRequest(ReportDefinition reportDefinition); }
XmlReportDefinitionRequest implements ReportRequest { @Override public RequestType getRequestType() { return RequestType.XML; } XmlReportDefinitionRequest(ReportDefinition reportDefinition); @Override String getReportRequestString(); @Override DownloadFormat getDownloadFormat(); @Override String getApiVersion(); @Override RequestType getRequestType(); }
XmlReportDefinitionRequest implements ReportRequest { @Override public RequestType getRequestType() { return RequestType.XML; } XmlReportDefinitionRequest(ReportDefinition reportDefinition); @Override String getReportRequestString(); @Override DownloadFormat getDownloadFormat(); @Override String getApiVersion(); @Override RequestType getRequestType();  }