public void testEmptyRunIndex(){
  String rs="runSetting";
  Settings s=new Settings("Ns");
  s.setSecondaryNamespace("DefNs");
  assertEquals(s.getInt(rs),1);
  Settings.setRunIndex(1);
  assertEquals(s.getInt(rs),1);
  Settings.setRunIndex(2);
  assertEquals(s.getInt(rs),2);
  Settings.setRunIndex(3);
  assertEquals(s.getInt(rs),1);
}

public void testEmptyRunIndex ( ) { String rs = "runSetting" ; Settings s = new Settings ( "Ns" ) ; s . setSecondaryNamespace ( "DefNs" ) ; assertEquals ( s . getInt ( rs ) , 1 ) ; Settings . setRunIndex ( 1 ) ; assertEquals ( s . getInt ( rs ) , 1 ) ; Settings . setRunIndex ( 2 ) ; assertEquals ( s . getInt ( rs ) , 2 ) ; Settings . setRunIndex ( 3 ) ; assertEquals ( s . getInt ( rs ) , 1 ) ; }
test filling empty values of run index from secondary namespace
