Test filling empty values of run index from secondary namespace
()
| 173 | * Test filling empty values of run index from secondary namespace |
| 174 | */ |
| 175 | public void testEmptyRunIndex() { |
| 176 | String rs = "runSetting"; |
| 177 | Settings s = new Settings("Ns"); |
| 178 | s.setSecondaryNamespace("DefNs"); |
| 179 | assertEquals(s.getInt(rs), 1); |
| 180 | Settings.setRunIndex(1); |
| 181 | assertEquals(s.getInt(rs), 1); |
| 182 | |
| 183 | Settings.setRunIndex(2); |
| 184 | assertEquals(s.getInt(rs), 2); // the only defined value |
| 185 | |
| 186 | Settings.setRunIndex(3); |
| 187 | assertEquals(s.getInt(rs), 1); |
| 188 | } |
| 189 | |
| 190 | public void testRunIndexCSVs() { |
| 191 | // test CSVs |
nothing calls this directly
no test coverage detected