Skip to content

Conversation

@snuyanzin
Copy link
Contributor

@snuyanzin snuyanzin commented Nov 2, 2025

The issue is that from one side there is already existing validation of test cases present in xml, from another side if an xml is generated from scratch (_actual.xml) then the generated version might contain test cases in wrong order

final List<String> names = Pair.left(map);
for (String s : names) {
if (s.compareToIgnoreCase(testCaseName) <= 0) {
if (s.compareTo(testCaseName) <= 0) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as here lexicographical order with respect of case is used

// Make sure that there are no duplicate test cases, and count how many
// tests are out of order.
final SortedMap<String, Node> testCases = new TreeMap<>();

~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<Root></Root>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dummy xml in order to generate and test actual

@sonarqubecloud
Copy link

sonarqubecloud bot commented Nov 2, 2025

/**
* Tests checking generated actual XML version.
*/
public class DiffRepositoryGeneratedFileTest {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minior:add jira link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants