test_class.declarator: writer
test_class.modifier: protected
test_class.original_string: protected AbstractTransformerWriter writer;
test_class.type: AbstractTransformerWriter
test_class.var_name: writer
test_class.file: dataprep-transformation/src/test/java/org/talend/dataprep/transformation/api/transformer/AbstractTransformerWriterTest.java
test_class.identifier: AbstractTransformerWriterTest
test_class.superclass: extends BaseFormatTest
test_case.body: @Test(expected = IllegalStateException.class)
      public void should_only_write_values_in_columns_order_TDP_3188() throws Exception {
  
          final Map<String, String> values = new HashMap<>();
          values.put("key", "value");
          DataSetRow row = new DataSetRow(new RowMetadata(), values);
  
          writer.write(row);
      }
test_case.class_method_signature: AbstractTransformerWriterTest.should_only_write_values_in_columns_order_TDP_3188()
test_case.full_signature: @Test(expected = IllegalStateException.class) public void should_only_write_values_in_columns_order_TDP_3188()
test_case.identifier: should_only_write_values_in_columns_order_TDP_3188
test_case.invocations: put write
test_case.modifiers: @Test(expected = IllegalStateException.class) public
test_case.parameters: ()
test_case.return: void
test_case.signature: void should_only_write_values_in_columns_order_TDP_3188()
focal_class.file: dataprep-transformation/src/main/java/org/talend/dataprep/transformation/api/transformer/AbstractTransformerWriter.java
focal_class.identifier: AbstractTransformerWriter
focal_class.interfaces: implements TransformerWriter
focal_class.class_method_signature: AbstractTransformerWriter.getRecordsWriter()
focal_class.full_signature: protected abstract au.com.bytecode.opencsv.CSVWriter getRecordsWriter()
focal_class.identifier: getRecordsWriter
focal_class.modifiers: protected abstract
focal_class.parameters: ()
focal_class.return: au.com.bytecode.opencsv.CSVWriter
focal_class.signature: au.com.bytecode.opencsv.CSVWriter getRecordsWriter()
focal_class.class_method_signature: AbstractTransformerWriter.write(DataSetRow row)
focal_class.full_signature: @Override public void write(DataSetRow row)
focal_class.identifier: write
focal_class.modifiers: @Override public
focal_class.parameters: (DataSetRow row)
focal_class.return: void
focal_class.signature: void write(DataSetRow row)
focal_method.body: @Override
      public void write(DataSetRow row) throws IOException {
          if (!row.values().isEmpty() && row.getRowMetadata().getColumns().isEmpty()) {
              throw new IllegalStateException(
                      " If a dataset row has some values it should at least have columns just before writing the result of a non json transformation.");
          }
          // values need to be written in the same order as the columns
          getRecordsWriter().writeNext(row.order().toArray(DataSetRow.SKIP_TDP_ID));
      }
focal_method.class_method_signature: AbstractTransformerWriter.write(DataSetRow row)
focal_method.full_signature: @Override public void write(DataSetRow row)
focal_method.identifier: write
focal_method.invocations: isEmpty values isEmpty getColumns getRowMetadata writeNext getRecordsWriter toArray order
focal_method.modifiers: @Override public
focal_method.parameters: (DataSetRow row)
focal_method.return: void
focal_method.signature: void write(DataSetRow row)