Skip to content

Commit bb29f71

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

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

library/src/test/java/com/firebase/ui/database/DatabaseTest.java renamed to library/src/test/java/com/firebase/ui/database/ApplicationTest.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 DatabaseTest extends ApplicationTestCase<Application> {
27+
public class ApplicationTest extends ApplicationTestCase<Application> {
2828

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

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

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 = DatabaseTest.getAppInstance(getContext());
71+
FirebaseApp app = ApplicationTest.getAppInstance(getContext());
7272
mRef = FirebaseDatabase.getInstance(app).getReference()
7373
.child("firebasearray").child("objects");
7474
mArray = new FirebaseArray(mRef);

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 = DatabaseTest.getAppInstance(getContext());
40+
FirebaseApp app = ApplicationTest.getAppInstance(getContext());
4141
mRef = FirebaseDatabase.getInstance(app).getReference().child("firebasearray");
4242
mArray = new FirebaseArray(mRef);
4343
mRef.removeValue();

0 commit comments

Comments
 (0)