File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/main/java/gr/uom/java/xmi Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -978,9 +978,9 @@ public double normalizedNameDistance(UMLOperation operation) {
978
978
}
979
979
980
980
public boolean testMethodCheck(UMLOperation operation) {
981
- if(this.hasTestAnnotation() && !operation.hasTestAnnotation() && !operation.containsAssertion())
981
+ if(this.hasTestAnnotation() && !operation.hasTestAnnotation() && !operation.hasParameterizedTestAnnotation() && !operation. containsAssertion())
982
982
return false;
983
- if(!this.hasTestAnnotation() && !this.containsAssertion() && operation.hasTestAnnotation())
983
+ if(!this.hasTestAnnotation() && !this.hasParameterizedTestAnnotation() && !this. containsAssertion() && operation.hasTestAnnotation())
984
984
return false;
985
985
return true;
986
986
}
Original file line number Diff line number Diff line change @@ -1561,9 +1561,9 @@ else if(removedOperation.hasTestAnnotation() && addedOperation.hasParameterizedT
1561
1561
}
1562
1562
}
1563
1563
if(!matchingMergeCandidateFound && !matchingSplitCandidateFound) {
1564
- if(addedOperation.hasParameterizedTestAnnotation() && !firstMapper.getContainer1().hasParameterizedTestAnnotation()) {
1564
+ List<List<String>> parameterValues = getParameterValues(addedOperation, modelDiff);
1565
+ if(addedOperation.hasParameterizedTestAnnotation() && !parameterValues.isEmpty() && !firstMapper.getContainer1().hasParameterizedTestAnnotation()) {
1565
1566
Set<UMLOperationBodyMapper> filteredMapperSet = new LinkedHashSet<UMLOperationBodyMapper>();
1566
- List<List<String>> parameterValues = getParameterValues(addedOperation, modelDiff);
1567
1567
List<String> parameterNames = addedOperation.getParameterNameList();
1568
1568
int overallMaxMatchingTestParameters = -1;
1569
1569
Map<Integer, Integer> overallMatchingTestParameters = new LinkedHashMap<Integer, Integer>();
You can’t perform that action at this time.
0 commit comments