MCPcopy Create free account
hub / github.com/akeranen/the-one / testEmptyRunIndex

Method testEmptyRunIndex

test/SettingsTest.java:175–188  ·  view source on GitHub ↗

Test filling empty values of run index from secondary namespace

()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

setSecondaryNamespaceMethod · 0.95
getIntMethod · 0.95
setRunIndexMethod · 0.95

Tested by

no test coverage detected