コード例 #1
0
 @Test
 public final void correctCustomSortOrderShouldSortThePm() throws Exception {
   SortPomImplUtil.create()
       .defaultOrderFileName("difforder/differentOrder.xml")
       .lineSeparator("\n")
       .testFiles("/full_unsorted_input.xml", "/sortOrderFiles/sorted_differentOrder.xml");
 }
コード例 #2
0
 @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");
 }
コード例 #3
0
 @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");
 }
コード例 #4
0
 @Test
 public final void custom1ShouldWorkAsPredefinedSortOrder() throws Exception {
   SortPomImplUtil.create()
       .predefinedSortOrder("custom_1")
       .lineSeparator("\n")
       .testFiles("/full_unsorted_input.xml", "/sortOrderFiles/sorted_custom_1.xml");
 }
コード例 #5
0
 @Test
 public void xmlDeviationsShouldNotHarmPlugin() throws Exception {
   SortPomImplUtil.create()
       .lineSeparator("\n")
       .testFiles("/Xml_deviations_input.xml", "/Xml_deviations_output.xml");
 }