Sha256: 0032006b1434572a8634d703cf2263ceb78c27d16cbd2201511cd139a4a42174

Contents?: true

Size: 1015 Bytes

Versions: 2

Compression:

Stored size: 1015 Bytes

Contents

package org.embulk.output.kintone;

import net.jcip.annotations.NotThreadSafe;
import org.junit.Test;

@NotThreadSafe
public class TestTaskMode extends TestTask {
  @Override
  public void before() {
    super.before();
    merge(config("domain: task/mode"));
  }

  @Test
  public void testInsert() throws Exception {
    merge(config("mode: insert"));
    runOutput();
    merge(config("prefer_nulls: true"));
    runOutput();
    merge(config("ignore_nulls: true"));
    runOutput();
  }

  @Test
  public void testUpdate() throws Exception {
    merge(config("mode: update", "update_key: string_number"));
    runOutput();
    merge(config("prefer_nulls: true"));
    runOutput();
    merge(config("ignore_nulls: true"));
    runOutput();
  }

  @Test
  public void testUpsert() throws Exception {
    merge(config("mode: upsert", "update_key: double_single_line_text"));
    runOutput();
    merge(config("prefer_nulls: true"));
    runOutput();
    merge(config("ignore_nulls: true"));
    runOutput();
  }
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
embulk-output-kintone-1.1.0 src/test/java/org/embulk/output/kintone/TestTaskMode.java
embulk-output-kintone-1.0.0 src/test/java/org/embulk/output/kintone/TestTaskMode.java