ARTEMIS-2220 Fix PageCursorStressTest::testSimpleCursorWithFilter NPE

FakeQueue is not correctly setting the queue on its PageSubscription,
leading to fail the test due to NPEs when PageSubscription::getQueue
is being used.
This commit is contained in:
Francesco Nigro 2019-01-04 23:50:56 +01:00 committed by Clebert Suconic
parent 72b85b1938
commit c1eba53b77
1 changed files with 3 additions and 0 deletions

View File

@ -735,6 +735,9 @@ public class FakeQueue extends CriticalComponentImpl implements Queue {
public void setPageSubscription(PageSubscription sub) {
this.subs = sub;
if (subs != null) {
sub.setQueue(this);
}
}
@Override