SbRestRspTask extends SbRestAbstractTask { public SbRestRspTask(RestOperation restOperation, RenderedServicePath dataObject, ExecutorService odlExecutor) { super(restOperation, odlExecutor); this.exporterFactory = new RspExporterFactory(); if (restOperation.equals(RestOperation.DELETE)) { this.jsonObject = exporterFactory.getExporter().exportJsonNameOnly(dataObject); } else { this.jsonObject = exporterFactory.getExporter().exportJson(dataObject); } setRestUriList(dataObject); } SbRestRspTask(RestOperation restOperation, RenderedServicePath dataObject, ExecutorService odlExecutor);   }
@Test public void testSbRestRspTask() throws IOException { SbRestRspTask sbRestRspTask = new SbRestRspTask(RestOperation.PUT, this.buildRenderedServicePath(), executorService); JsonNode jsonObject = mapper.readTree(sbRestRspTask.jsonObject); assertTrue("Must be true", jsonObject.equals(this.buildRenderedServicePathObjectNode())); assertTrue("Must be true", sbRestRspTask.restUriList.get(0).contains(REST_URI)); }