@Test public final void correctCustomSortOrderShouldSortThePm() throws Exception { SortPomImplUtil.create() .defaultOrderFileName("difforder/differentOrder.xml") .lineSeparator("\n") .testFiles("/full_unsorted_input.xml", "/sortOrderFiles/sorted_differentOrder.xml"); }
@Test public final void recommended2008_06ShouldWorkAsPredefinedSortOrder() throws Exception { SortPomImplUtil.create() .predefinedSortOrder("recommended_2008_06") .lineSeparator("\n") .testFiles("/full_unsorted_input.xml", "/sortOrderFiles/sorted_recommended_2008_06.xml"); }
@Test public final void defaultPredefinedSortOrderShouldWork() throws Exception { SortPomImplUtil.create() .predefinedSortOrder(null) .lineSeparator("\n") .testFiles("/full_unsorted_input.xml", "/sortOrderFiles/sorted_default_1_0_0.xml"); }
@Test public final void custom1ShouldWorkAsPredefinedSortOrder() throws Exception { SortPomImplUtil.create() .predefinedSortOrder("custom_1") .lineSeparator("\n") .testFiles("/full_unsorted_input.xml", "/sortOrderFiles/sorted_custom_1.xml"); }
@Test public void xmlDeviationsShouldNotHarmPlugin() throws Exception { SortPomImplUtil.create() .lineSeparator("\n") .testFiles("/Xml_deviations_input.xml", "/Xml_deviations_output.xml"); }