package com.box.l10n.mojito.cli.command;

import com.box.l10n.mojito.cli.CLITestBase;
import org.junit.Test;

public class SimpleFileEditorCommandTest extends CLITestBase {

    @Test
    public void jsonIndent() {
        getL10nJCommander().run("simple-file-editor",
                "-i", getInputResourcesTestDir().getAbsolutePath(),
                "-o", getTargetTestDir().getAbsolutePath(),
                 "--json-indent");

        checkExpectedGeneratedResources();
    }

    @Test
    public void poRemoveUsages() {
        getL10nJCommander().run("simple-file-editor",
                "-i", getInputResourcesTestDir().getAbsolutePath(),
                "-o", getTargetTestDir().getAbsolutePath(),
                "--po-remove-usages"
                );

        checkExpectedGeneratedResources();
    }

    @Test
    public void macStringsRemoveUsages() {

        System.setProperty("overrideExpectedTestFiles", "true");

        getL10nJCommander().run("simple-file-editor",
                "-i", getInputResourcesTestDir().getAbsolutePath(),
                "-o", getTargetTestDir().getAbsolutePath(),
                "--macstrings-remove-usages"
        );

        checkExpectedGeneratedResources();
    }
}
@@ -868,74 +868,8 @@
  %7B%0A%0A
-        System.setProperty(%22overrideExpectedTestFiles%22, %22true%22);%0A%0A
     

Remove expected file override in test