Skip to content

Commit 699d129

Browse files
extend model by show successful/disabled tests
1 parent c73fca4 commit 699d129

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

sqldev/src/main/java/org/utplsql/sqldev/model/preference/PreferenceModel.xtend

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ class PreferenceModel extends HashStructureAdapter {
4646
static final String KEY_SHOW_INFO_COUNTER = "showInfoCounter"
4747
static final String KEY_SHOW_WARNING_INDICATOR = "showWarningIndicator"
4848
static final String KEY_SHOW_INFO_INDICATOR = "showInfoIndicator"
49+
static final String KEY_SHOW_SUCCESSFUL_TESTS = "showSuccessfulTests"
50+
static final String KEY_SHOW_DISABLED_TESTS = "showDisabledTests"
4951
static final String KEY_SHOW_TEST_DESCRIPTION = "showTestDescription"
5052
static final String KEY_SYNC_DETAIL_TAB = "syncDetailTab"
5153
static final String KEY_TEST_PACKAGE_PREFIX = "testPackagePrefix"
@@ -166,6 +168,22 @@ class PreferenceModel extends HashStructureAdapter {
166168
def setShowInfoIndicator(boolean showInfoIndicator) {
167169
getHashStructure.putBoolean(PreferenceModel.KEY_SHOW_INFO_INDICATOR, showInfoIndicator)
168170
}
171+
172+
def isShowSuccessfulTests() {
173+
return getHashStructure.getBoolean(PreferenceModel.KEY_SHOW_SUCCESSFUL_TESTS, true)
174+
}
175+
176+
def setShowSuccessfulTests(boolean showSuccessfulTests) {
177+
getHashStructure.putBoolean(PreferenceModel.KEY_SHOW_SUCCESSFUL_TESTS, showSuccessfulTests)
178+
}
179+
180+
def isShowDisabledTests() {
181+
return getHashStructure.getBoolean(PreferenceModel.KEY_SHOW_DISABLED_TESTS, true)
182+
}
183+
184+
def setShowDisabledTests(boolean showDisabledTests) {
185+
getHashStructure.putBoolean(PreferenceModel.KEY_SHOW_DISABLED_TESTS, showDisabledTests)
186+
}
169187

170188
def isShowTestDescription() {
171189
return getHashStructure.getBoolean(PreferenceModel.KEY_SHOW_TEST_DESCRIPTION, false)

sqldev/src/test/java/org/utplsql/sqldev/test/preference/PreferenceModelTest.xtend

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ class PreferenceModelTest {
3737
Assert.assertFalse(model.showInfoCounter)
3838
Assert.assertFalse(model.showWarningIndicator)
3939
Assert.assertFalse(model.showInfoIndicator)
40+
Assert.assertTrue(model.showSuccessfulTests)
41+
Assert.assertTrue(model.showDisabledTests)
4042
Assert.assertFalse(model.isShowTestDescription)
4143
Assert.assertTrue(model.syncDetailTab)
4244
Assert.assertEquals("test_", model.testPackagePrefix)

0 commit comments

Comments
 (0)