SbRestSfstTask extends SbRestAbstractTask { public SbRestSfstTask(RestOperation restOperation, ServiceFunctionSchedulerType dataObject, ExecutorService odlExecutor) { super(restOperation, odlExecutor); this.exporterFactory = new SfstExporterFactory(); if (restOperation.equals(RestOperation.DELETE)) { this.jsonObject = exporterFactory.getExporter().exportJsonNameOnly(dataObject); } else { this.jsonObject = exporterFactory.getExporter().exportJson(dataObject); } setRestUriList(dataObject); } SbRestSfstTask(RestOperation restOperation, ServiceFunctionSchedulerType dataObject, ExecutorService odlExecutor);   }
@Test public void testSbRestSfstTask() throws IOException { SbRestSfstTask sbRestSfstTask = new SbRestSfstTask(RestOperation.PUT, this.buildServiceFunctionSchedulerType(), executorService); JsonNode jsonObject = mapper.readTree(sbRestSfstTask.jsonObject); assertTrue("Must be true", jsonObject.equals(this.buildServiceFunctionSchedulerTypeObjectNode())); assertTrue("Must be true", sbRestSfstTask.restUriList.get(0).contains(SFST_REST_URI)); }