Commit 101eed76 authored by Daniel Wolf's avatar Daniel Wolf
Browse files

Added testdata

parent 9d13d92b
......@@ -39,7 +39,7 @@ public final class DatabaseHelper extends com.frostnerd.utils.database.DatabaseH
@Override
public void onAfterCreate(SQLiteDatabase db) {
insertTestdata();
}
@Override
......@@ -51,4 +51,13 @@ public final class DatabaseHelper extends com.frostnerd.utils.database.DatabaseH
public void onAfterUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
}
private void insertTestdata(){
for(int i = 0; i <= 30; i++){
insert(new DNSServerSetting("SERVER " + i, (int)Math.pow(1.4,i), 1000,
IPPortPair.wrap("8.8.8.8", 53),
IPPortPair.wrap("8.8.4.4", 53), i%2 == 0, i%2==0, i%2 == 0, i%2==0));
}
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment