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
158b5cee
Commit
158b5cee
authored
14 years ago
by
Russell Taylor
Browse files
Options
Downloads
Patches
Plain Diff
Eliminate constructor from ConfigServiceTest. Re #2220.
parent
9489cbf6
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Code/Mantid/Framework/Kernel/test/ConfigServiceTest.h
+2
-7
2 additions, 7 deletions
Code/Mantid/Framework/Kernel/test/ConfigServiceTest.h
with
2 additions
and
7 deletions
Code/Mantid/Framework/Kernel/test/ConfigServiceTest.h
+
2
−
7
View file @
158b5cee
...
...
@@ -21,11 +21,6 @@ class ConfigServiceTest : public CxxTest::TestSuite
{
public:
ConfigServiceTest
()
:
m_changeObserver
(
*
this
,
&
ConfigServiceTest
::
handleConfigChange
)
{
ConfigService
::
Instance
().
updateConfig
(
"MantidTest.properties"
);
}
void
testLogging
()
{
//attempt some logging
...
...
@@ -264,11 +259,12 @@ public:
// Test that the ValueChanged notification is sent
void
testNotifications
()
{
Poco
::
NObserver
<
ConfigServiceTest
,
ConfigServiceImpl
::
ValueChanged
>
changeObserver
(
*
this
,
&
ConfigServiceTest
::
handleConfigChange
);
m_valueChangedSent
=
false
;
ConfigServiceImpl
&
settings
=
ConfigService
::
Instance
();
TS_ASSERT_THROWS_NOTHING
(
settings
.
addObserver
(
m_
changeObserver
));
TS_ASSERT_THROWS_NOTHING
(
settings
.
addObserver
(
changeObserver
));
settings
.
setString
(
"default.facility"
,
"SNS"
);
...
...
@@ -284,7 +280,6 @@ public:
protected
:
bool
m_valueChangedSent
;
Poco
::
NObserver
<
ConfigServiceTest
,
Mantid
::
Kernel
::
ConfigServiceImpl
::
ValueChanged
>
m_changeObserver
;
std
::
string
m_key
;
std
::
string
m_preValue
;
std
::
string
m_curValue
;
...
...
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