Skip to content

Commit 34f53d9

Browse files
Merge pull request #8 from greenrobot/test-updates
Update existing tests.
2 parents a68d250 + e7ea514 commit 34f53d9

13 files changed

Lines changed: 23 additions & 19 deletions

File tree

ActiveAndroid/src/androidTest/java/de/greenrobot/performance/activeandroid/PerformanceTestActiveAndroid.java renamed to ActiveAndroid/src/androidTest/java/de/greenrobot/performance/activeandroid/PerfTestActiveAndroid.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,17 @@
1212
import java.util.List;
1313

1414
/**
15+
* Note: looks like development has ceased. Last commit on 2014-10-07.
16+
*
1517
* https://github.com/pardom/ActiveAndroid/wiki/Getting-started
1618
*/
17-
public class PerformanceTestActiveAndroid extends BasePerfTestCase {
19+
public class PerfTestActiveAndroid extends BasePerfTestCase {
1820

1921
private static final String DATABASE_NAME = "active-android.db";
2022

2123
@Override
2224
protected String getLogTag() {
23-
return "PerfTestActiveAndroid";
25+
return getClass().getSimpleName();
2426
}
2527

2628
@Override

Cupboard/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ android {
2121

2222
dependencies {
2323
androidTestCompile project(':Common')
24-
androidTestCompile 'nl.qbusict:cupboard:2.1.2'
24+
androidTestCompile 'nl.qbusict:cupboard:2.1.4'
2525
}

Cupboard/src/androidTest/java/de/greenrobot/performance/cupboard/PerformanceTestCupboard.java renamed to Cupboard/src/androidTest/java/de/greenrobot/performance/cupboard/PerfTestCupboard.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
import nl.qbusict.cupboard.DatabaseCompartment;
1515

1616
/**
17-
* https://bitbucket.org/qbusict/cupboard/wiki/GettingStarted
17+
* https://bitbucket.org/littlerobots/cupboard/wiki/GettingStarted
1818
*/
19-
public class PerformanceTestCupboard extends BasePerfTestCase {
19+
public class PerfTestCupboard extends BasePerfTestCase {
2020

2121
private static final String DATABASE_NAME = "cupboard.db";
2222
private static final int DATABASE_VERSION = 1;
@@ -25,7 +25,7 @@ public class PerformanceTestCupboard extends BasePerfTestCase {
2525

2626
@Override
2727
protected String getLogTag() {
28-
return "PerfTestCupboard";
28+
return getClass().getSimpleName();
2929
}
3030

3131
@Override

Firebase/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ android {
2727

2828
dependencies {
2929
androidTestCompile project(':Common')
30-
androidTestCompile 'com.firebase:firebase-client-android:2.3.1'
30+
androidTestCompile 'com.firebase:firebase-client-android:2.5.1'
3131
}

Firebase/src/androidTest/java/de/greenrobot/performance/firebase/PerformanceTestFirebase.java renamed to Firebase/src/androidTest/java/de/greenrobot/performance/firebase/PerfTestFirebase.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@
2626
*
2727
* https://www.firebase.com/docs/android/guide/
2828
*/
29-
public class PerformanceTestFirebase extends BasePerfTestCase {
29+
public class PerfTestFirebase extends BasePerfTestCase {
3030

3131
private Firebase rootFirebaseRef;
3232
private List<SimpleEntityNotNull> reloaded;
3333

3434
@Override
3535
protected String getLogTag() {
36-
return "PerfTestFirebase";
36+
return getClass().getSimpleName();
3737
}
3838

3939
@Override

Parse/build.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ android {
2828

2929
dependencies {
3030
androidTestCompile project(':Common')
31-
compile 'com.parse.bolts:bolts-android:1.2.1'
32-
compile 'com.parse:parse-android:1.10.2'
31+
compile 'com.parse:parse-android:1.13.0'
3332
}
3433

Parse/src/androidTest/java/de/greenrobot/performance/parse/PerformanceTestParse.java renamed to Parse/src/androidTest/java/de/greenrobot/performance/parse/PerfTestParse.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@
1515
/**
1616
* https://parse.com/docs/android/guide
1717
*/
18-
public class PerformanceTestParse extends BasePerfTestCase {
18+
public class PerfTestParse extends BasePerfTestCase {
1919

2020
// reduced query count due to slow performance
2121
private static final int QUERY_COUNT = 100;
2222

2323
@Override
2424
protected String getLogTag() {
25-
return "PerfTestParse";
25+
return getClass().getSimpleName();
2626
}
2727

2828
@Override

Realm/build.gradle

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,22 @@
11
buildscript {
22
dependencies {
33
classpath dep.androidPlugin
4+
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
5+
classpath 'io.realm:realm-gradle-plugin:0.88.0'
46
}
57
}
68

79
apply plugin: 'com.android.application'
10+
apply plugin: 'com.neenbedankt.android-apt'
11+
apply plugin: 'realm-android'
812

913
android {
1014
buildToolsVersion rootProject.ext.buildToolsVersion
1115
compileSdkVersion rootProject.ext.compileSdkVersion
1216

1317
defaultConfig {
1418
applicationId 'de.greenrobot.performance.realm'
15-
minSdkVersion rootProject.ext.minSdkVersion
19+
minSdkVersion 9
1620
targetSdkVersion rootProject.ext.targetSdkVersion
1721

1822
testInstrumentationRunner 'android.test.InstrumentationTestRunner'
@@ -21,5 +25,4 @@ android {
2125

2226
dependencies {
2327
androidTestCompile project(':Common')
24-
androidTestCompile 'io.realm:realm-android:0.82.2'
2528
}

Realm/src/androidTest/java/de/greenrobot/performance/realm/PerformanceTestRealm.java renamed to Realm/src/androidTest/java/de/greenrobot/performance/realm/PerfTestRealm.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@
1515
/**
1616
* https://realm.io/docs/java/latest/ https://github.com/realm/realm-java/
1717
*/
18-
public class PerformanceTestRealm extends BasePerfTestCase {
18+
public class PerfTestRealm extends BasePerfTestCase {
1919

2020
private boolean inMemory = false;
2121

2222
private Realm realm;
2323

2424
@Override
2525
protected String getLogTag() {
26-
return "PerfTestRealm";
26+
return getClass().getSimpleName();
2727
}
2828

2929
@Override

Realm/src/androidTest/java/de/greenrobot/performance/realm/IndexedStringEntity.java renamed to Realm/src/main/java/de/greenrobot/performance/realm/IndexedStringEntity.java

File renamed without changes.

0 commit comments

Comments
 (0)