You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 13, 2020. It is now read-only.
I found that the assumptionSort method in Corollaries class skips over some methods resulting in a broken dependency tree for tests.
Regarding the source code snippet for this method:
private void assumptionSort(List methods) {
int size = methods.size();
for (int i = 0; i < size; i++) {
FrameworkMethod m = methods.get(i);
Assumes assumes = m.getAnnotation(Assumes.class);
if (assumes != null) {
Set assumptions = new HashSet(Arrays.asList(assumes.value()));
for (int j = size - 1; j > i; j--) {
if (assumptions.contains(methods.get(j).getName())) {
methods.add(j, methods.remove(i));
break;
}
}
}
}
}
Applying this change should fix it:
-methods.add(j, methods.remove(i));
+methods.add(j, methods.remove(i--));
The text was updated successfully, but these errors were encountered: