@Test public void testGetExtractionCommands() { final RecordDataExtractor extractor = new RecordDataExtractor(record, environment); final List<String> expected = new ArrayList<String>(4); expected.add("call echojson("); expected.add(record.getName()); expected.add(", '" + extractor.getRemoteDataLocation().getPath() + "'"); expected.add(") go"); assertThat(extractor.getExtractionCommands()).isEqualTo(expected); }
public Collection<String> getExtractionCommands() { final List<String> lines = new ArrayList<String>(4); lines.add("call echojson("); lines.add(getRecord().getName()); lines.add(", '" + remoteDataLocation.getPath() + "'"); lines.add(") go"); return lines; }
RecordDataExtractor { public Collection<String> getExtractionCommands() { final List<String> lines = new ArrayList<String>(4); lines.add("call echojson("); lines.add(getRecord().getName()); lines.add(", '" + remoteDataLocation.getPath() + "'"); lines.add(") go"); return lines; } }
RecordDataExtractor { public Collection<String> getExtractionCommands() { final List<String> lines = new ArrayList<String>(4); lines.add("call echojson("); lines.add(getRecord().getName()); lines.add(", '" + remoteDataLocation.getPath() + "'"); lines.add(") go"); return lines; } RecordDataExtractor(final Record record);  RecordDataExtractor(final Record record, final Environment environment); }
RecordDataExtractor { public Collection<String> getExtractionCommands() { final List<String> lines = new ArrayList<String>(4); lines.add("call echojson("); lines.add(getRecord().getName()); lines.add(", '" + remoteDataLocation.getPath() + "'"); lines.add(") go"); return lines; } RecordDataExtractor(final Record record);  RecordDataExtractor(final Record record, final Environment environment); void extractRecordData(); Collection<String> getExtractionCommands(); Record getRecord(); }
RecordDataExtractor { public Collection<String> getExtractionCommands() { final List<String> lines = new ArrayList<String>(4); lines.add("call echojson("); lines.add(getRecord().getName()); lines.add(", '" + remoteDataLocation.getPath() + "'"); lines.add(") go"); return lines; } RecordDataExtractor(final Record record);  RecordDataExtractor(final Record record, final Environment environment); void extractRecordData(); Collection<String> getExtractionCommands(); Record getRecord();  }