Package sortpom.parameter

Examples of sortpom.parameter.PluginParametersBuilder


    /**
     * Instantiate SortPom and sort the file content
     */
    private String createSortedXml(String fileContent) {
        SortPomImpl sortPom = new SortPomImpl();
        PluginParameters pluginParameters = new PluginParametersBuilder()
                .setEncoding("UTF-8")
                .setFormatting("\n", true, true)
                .setIndent(2, false)
                .setSortEntities("", "", true)
                .setSortOrder("default_0_4_0.xml", "")
View Full Code Here


        String expected = IOUtils.toString(new FileInputStream("src/test/resources/Real1_expected_toString.txt"), UTF_8);
        assertEquals(expected, getToStringOnRootElementWrapper("Real1_input.xml"));
    }

    private String getToStringOnRootElementWrapper(String inputFileName) throws IOException, JDOMException {
        PluginParameters pluginParameters = new PluginParametersBuilder()
                .setPomFile(null).setBackupInfo(false, ".bak")
                .setEncoding("UTF-8")
                .setFormatting("\r\n", true, true)
                .setIndent(2, false)
                .setSortOrder("default_0_4_0.xml", null)
View Full Code Here

public class TextWrapperCreatorTest {
    private final TextWrapperCreator textWrapperCreator = new TextWrapperCreator();

    @Before
    public void setup() {
        textWrapperCreator.setup(new PluginParametersBuilder().setEncoding("UTF-8")
                .setFormatting("\n", true, true).createPluginParameters());
    }
View Full Code Here

TOP

Related Classes of sortpom.parameter.PluginParametersBuilder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.