LPS-44487 - Source formatting
LPS-44487 - Source formatting
Test Fixes - StagingUsecase - tests
Test Fixes - CPWebcontent - actions
Test Fixes - DynamicdatalistsUsecase - actions
Test Fixes - CPDynamicdatalists - macros
Test Fixes - WebcontentpublicationUsecase - macros
Test Fixes - WebcontentpublicationUsecase SF
LPS-43888 Move formatImports method to new class ImportsFormatter
LPS-43888 Specialize separate Java and JSP import formatters, with tests

Tests broken because of LPS-43888 are marked with @Ignore.

All active tests are green.
LPS-43888 Let specific Java and JSP formatters extend ImportsFormatter

This is a preliminary step so in the next commit we move specialized
Java and JSP logic into each specific formatter.
LPS-43888 Move specialized Java and JSP logic to specialized formatters
LPS-43888 JavaImportsFormatter is now aware of the "static" keyword

Next commits shall use this information for sorting and grouping
LPS-43888 Remove classStartPos; regex matches full qualified import now

All active tests still green. Must now sort and group with static, and
remove @Ignore from the remaining tests
LPS-43888 Move and encapsulate packageLevel logic into ImportPackage
LPS-43888 Move and encapsulate grouping logic into ImportPackage
LPS-43888 Fixed. Sorting and grouping now aware of the static keyword.

@Ignore removed from broken tests. All tests green now.

Committing pre-existing source file affected by the new sorting order.
LPS-43888 Make it O(n * log n) instead of O(n ^ 2)
LPS-43888 JavaSourceProcessorTest runs faster as a plain unit test

Being test code instead of production code, it's harmless to read the
file directly instead of going through FileImpl. This spares the need
for "@RunWith(LiferayIntegrationJUnitTestRunner.class)" and the test
finishes in a fraction of the time, straight from Eclipse, with no extra
settings.

As a bonus, it should now be possible to move this test from
test/integration to test/unit so it runs earlier in the test cycle.
LPS-43888 Rename tests and no need to explain in so much details what the expected behavior of the tests are