forked from AvielCo/ParkNBark
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
295 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,29 @@ | ||
package com.evan.parknbark; | ||
|
||
import androidx.annotation.NonNull; | ||
|
||
import com.evan.parknbark.emailpassword.LoginActivity; | ||
import com.evan.parknbark.validation.EditTextValidator; | ||
import com.google.firebase.auth.FirebaseAuthException; | ||
|
||
import org.junit.Before; | ||
import org.junit.Test; | ||
|
||
import static org.junit.Assert.*; | ||
import java.io.IOException; | ||
|
||
import static junit.framework.TestCase.assertTrue; | ||
|
||
public class LoginTest { | ||
private String email; | ||
private String password; | ||
|
||
@Before | ||
public void setUp() throws Exception { | ||
email = "ltest@ltest.test"; | ||
public void setUp() throws IOException { | ||
email = "user@eeexxxaaammmpppllleee.com"; | ||
password = "LoGiNtEsTiNg"; | ||
} | ||
|
||
@Test | ||
public void loginTest() { | ||
public void loginTest() throws FirebaseAuthException { | ||
LoginActivity activity = new LoginActivity(); | ||
assertTrue("Error test failed!", activity.signIn(email, password, true)); | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.