SbRestSffTask extends SbRestAbstractTask { public SbRestSffTask(RestOperation restOperation, ServiceFunctionForwarder dataObject, ExecutorService odlExecutor) { super(restOperation, odlExecutor); this.exporterFactory = new SffExporterFactory(); if (restOperation.equals(RestOperation.DELETE)) { this.jsonObject = exporterFactory.getExporter().exportJsonNameOnly(dataObject); } else { this.jsonObject = exporterFactory.getExporter().exportJson(dataObject); } setRestUriList(dataObject); } SbRestSffTask(RestOperation restOperation, ServiceFunctionForwarder dataObject, ExecutorService odlExecutor);   }
@Test public void testSbRestSffTask() throws IOException { SbRestSffTask sbRestSffTask = new SbRestSffTask(RestOperation.PUT, this.buildServiceFunctionForwarder(), executorService); JsonNode jsonObject = mapper.readTree(sbRestSffTask.jsonObject); assertTrue("Must be true", jsonObject.equals(this.buildServiceFunctionForwarderObjectNode())); assertTrue("Must be true", sbRestSffTask.restUriList.get(0).contains(REST_URI)); }