public static final Index createTestIndexOneField(){
  Index index=new Index("myindexwithonefield");
  index.setTable(DB,"mytable");
  ArrayList<IndexField> fields=new ArrayList<>();
  fields.add(new IndexField("myindexedfield"));
  index.setFields(fields);
  index.isUnique(false);
  return index;
}

public static final Index createTestIndexOneField ( ) { Index index = new Index ( "myindexwithonefield" ) ; index . setTable ( DB , "mytable" ) ; ArrayList < IndexField > fields = new ArrayList < > ( ) ; fields . add ( new IndexField ( "myindexedfield" ) ) ; index . setFields ( fields ) ; index . isUnique ( false ) ; return index ; }
creates at test index with one field .
