Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mantid
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mantidproject
mantid
Commits
ac5a3a06
Commit
ac5a3a06
authored
5 years ago
by
Gemma Guest
Browse files
Options
Downloads
Patches
Plain Diff
Add unit test for instrument-changed
Re #26529
parent
6d6d57d7
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
qt/scientific_interfaces/test/ISISReflectometry/RunsTable/RunsTablePresenterProcessingTest.h
+9
-1
9 additions, 1 deletion
...eflectometry/RunsTable/RunsTablePresenterProcessingTest.h
with
9 additions
and
1 deletion
qt/scientific_interfaces/test/ISISReflectometry/RunsTable/RunsTablePresenterProcessingTest.h
+
9
−
1
View file @
ac5a3a06
...
@@ -111,7 +111,7 @@ public:
...
@@ -111,7 +111,7 @@ public:
verifyAndClearExpectations
();
verifyAndClearExpectations
();
}
}
void
testNotifyInstrument
Chang
ed
()
{
void
testNotify
Change
Instrument
Request
ed
()
{
auto
presenter
=
makePresenter
(
m_view
,
ReductionJobs
());
auto
presenter
=
makePresenter
(
m_view
,
ReductionJobs
());
auto
const
instrument
=
std
::
string
(
"test_instrument"
);
auto
const
instrument
=
std
::
string
(
"test_instrument"
);
EXPECT_CALL
(
m_view
,
getInstrumentName
())
EXPECT_CALL
(
m_view
,
getInstrumentName
())
...
@@ -123,6 +123,14 @@ public:
...
@@ -123,6 +123,14 @@ public:
verifyAndClearExpectations
();
verifyAndClearExpectations
();
}
}
void
testNotifyInstrumentChanged
()
{
auto
presenter
=
makePresenter
(
m_view
,
ReductionJobs
());
auto
const
instrument
=
std
::
string
(
"test_instrument"
);
EXPECT_CALL
(
m_view
,
setInstrumentName
(
instrument
)).
Times
(
1
);
presenter
.
notifyInstrumentChanged
(
instrument
);
verifyAndClearExpectations
();
}
void
testRowStateChangedForDefaultRowAndGroup
()
{
void
testRowStateChangedForDefaultRowAndGroup
()
{
auto
presenter
=
makePresenter
(
m_view
,
oneGroupWithARowModel
());
auto
presenter
=
makePresenter
(
m_view
,
oneGroupWithARowModel
());
expectGroupStateCleared
();
expectGroupStateCleared
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment