Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
mantidproject
mantid
Commits
52f30cb7
Commit
52f30cb7
authored
Jan 20, 2016
by
Shahroz Ahmed
Browse files
presenter test values fixed and updated for Rebin
refs #14886
parent
9bc18e62
Changes
1
Hide whitespace changes
Inline
Side-by-side
MantidQt/CustomInterfaces/test/EnggDiffractionPresenterTest.h
View file @
52f30cb7
...
...
@@ -778,10 +778,12 @@ public:
EnggDiffPresenterNoThread
pres
(
&
mockView
);
// inputs from user
EXPECT_CALL
(
mockView
,
currentPreprocRunNo
())
.
Times
(
1
)
.
Times
(
2
)
.
WillRepeatedly
(
Return
(
g_rebinRunNo
));
EXPECT_CALL
(
mockView
,
rebinningTimeBin
()).
Times
(
1
).
WillOnce
(
Return
(
1.0
));
EXPECT_CALL
(
mockView
,
rebinningTimeBin
())
.
Times
(
1
)
.
WillRepeatedly
(
Return
(
0.100000
));
// No errors/warnings
EXPECT_CALL
(
mockView
,
userError
(
testing
::
_
,
testing
::
_
)).
Times
(
0
);
...
...
@@ -836,13 +838,13 @@ public:
.
WillOnce
(
Return
(
g_rebinRunNo
));
EXPECT_CALL
(
mockView
,
rebinningPulsesNumberPeriods
())
.
Times
(
1
)
.
WillOnce
(
Return
(
1
000
));
.
WillOnce
(
Return
(
0.100
000
));
// 1s is big enough
EXPECT_CALL
(
mockView
,
rebinningPulsesTime
()).
Times
(
1
).
WillOnce
(
Return
(
1
));
// No errors/warnings. There will be an error log from the algorithms
EXPECT_CALL
(
mockView
,
userError
(
testing
::
_
,
testing
::
_
)).
Times
(
0
);
EXPECT_CALL
(
mockView
,
userWarning
(
testing
::
_
,
testing
::
_
)).
Times
(
0
);
EXPECT_CALL
(
mockView
,
userWarning
(
testing
::
_
,
testing
::
_
)).
Times
(
1
);
pres
.
notify
(
IEnggDiffractionPresenter
::
RebinMultiperiod
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment