Skip to content

Commit 01635f9

Browse files
committed
Update database tests to support onCancelled
1 parent eec99b4 commit 01635f9

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

database/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ android {
1919
}
2020

2121
dependencies {
22-
testCompile 'junit:junit:4.12'
2322
compile "com.android.support:appcompat-v7:${project.ext.support_library_version}"
2423
compile "com.android.support:recyclerview-v7:${project.ext.support_library_version}"
2524

database/src/test/java/com/firebase/ui/database/ApplicationTest.java renamed to library/src/test/java/com/firebase/ui/database/DatabaseTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@
2424
/**
2525
* <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a>
2626
*/
27-
public class ApplicationTest extends ApplicationTestCase<Application> {
27+
public class DatabaseTest extends ApplicationTestCase<Application> {
2828

2929
private static final String APP_NAME = "firebaseui-tests";
3030

31-
public ApplicationTest() {
31+
public DatabaseTest() {
3232
super(Application.class);
3333
}
3434

database/src/test/java/com/firebase/ui/database/FirebaseArrayOfObjectsTest.java renamed to library/src/test/java/com/firebase/ui/database/FirebaseArrayOfObjectsTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public boolean isBool() {
6868

6969
@Before
7070
public void setUp() throws Exception {
71-
FirebaseApp app = ApplicationTest.getAppInstance(getContext());
71+
FirebaseApp app = DatabaseTest.getAppInstance(getContext());
7272
mRef = FirebaseDatabase.getInstance(app).getReference()
7373
.child("firebasearray").child("objects");
7474
mArray = new FirebaseArray(mRef);

database/src/test/java/com/firebase/ui/database/FirebaseArrayTest.java renamed to library/src/test/java/com/firebase/ui/database/FirebaseArrayTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public class FirebaseArrayTest extends AndroidTestCase {
3737

3838
@Before
3939
public void setUp() throws Exception {
40-
FirebaseApp app = ApplicationTest.getAppInstance(getContext());
40+
FirebaseApp app = DatabaseTest.getAppInstance(getContext());
4141
mRef = FirebaseDatabase.getInstance(app).getReference().child("firebasearray");
4242
mArray = new FirebaseArray(mRef);
4343
mRef.removeValue();

0 commit comments

Comments
 (0)