Created
May 19, 2016 15:57
-
-
Save thiagoolsilva/901365e0727119f9109d281355e6bd84 to your computer and use it in GitHub Desktop.
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
public class FirstTest extends AndroidTestCase { | |
public void test_first_test_1() { | |
String firstObject = "Lopes"; | |
//This step won´t fail because it is not null | |
Assert.assertNotNull(firstObject); | |
String secondObject = "Lopes"; | |
//Check the content of object. This test won´t fail | |
Assert.assertEquals(firstObject, secondObject); | |
Assert.fail("Custom fail message"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment