MCPcopy Create free account
hub / github.com/MITK/MITK / OverrideInt

Method OverrideInt

Modules/Core/test/mitkPreferencesTest.cpp:226–235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

224 }
225
226 void OverrideInt()
227 {
228 auto* preferences = mitk::CoreServices::GetPreferencesService()->GetSystemPreferences();
229
230 preferences->PutInt("count", 10);
231 CPPUNIT_ASSERT_EQUAL(10, preferences->GetInt("count", 0));
232
233 preferences->OverrideInt("count", 99);
234 CPPUNIT_ASSERT_EQUAL(99, preferences->GetInt("count", 0));
235 }
236
237 void OverrideBool()
238 {

Callers

nothing calls this directly

Calls 3

PutIntMethod · 0.80
GetSystemPreferencesMethod · 0.45
GetIntMethod · 0.45

Tested by

no test coverage detected