diff --git a/tests/integration-tests/tests-tlr/src/test/java/edu/kit/kastel/mcse/ardoco/tlr/tests/integration/tlrhelper/ModelElementSentenceLink.java b/tests/integration-tests/tests-tlr/src/test/java/edu/kit/kastel/mcse/ardoco/tlr/tests/integration/tlrhelper/ModelElementSentenceLink.java index 44fd3bd..04ed6d4 100644 --- a/tests/integration-tests/tests-tlr/src/test/java/edu/kit/kastel/mcse/ardoco/tlr/tests/integration/tlrhelper/ModelElementSentenceLink.java +++ b/tests/integration-tests/tests-tlr/src/test/java/edu/kit/kastel/mcse/ardoco/tlr/tests/integration/tlrhelper/ModelElementSentenceLink.java @@ -8,7 +8,7 @@ /** * Represents a simple trace link by the id of the model and number of the sentence involved. */ -public record ModelElementSentenceLink(String modelElementId, int sentenceNr) implements Comparable { +public record ModelElementSentenceLink(String modelElementId, int sentenceNumber) implements Comparable { public ModelElementSentenceLink(SadSamTraceLink traceLink) { this(traceLink.getModelElementUid(), traceLink.getSentenceNumber()); @@ -16,7 +16,7 @@ public ModelElementSentenceLink(SadSamTraceLink traceLink) { @Override public int compareTo(ModelElementSentenceLink o) { - return Comparator.comparing(ModelElementSentenceLink::modelElementId).thenComparing(ModelElementSentenceLink::sentenceNr).compare(this, o); + return Comparator.comparing(ModelElementSentenceLink::modelElementId).thenComparing(ModelElementSentenceLink::sentenceNumber).compare(this, o); } }