Skip to content

Instantly share code, notes, and snippets.

@thiagoolsilva
Created May 19, 2016 15:57
Show Gist options
  • Save thiagoolsilva/901365e0727119f9109d281355e6bd84 to your computer and use it in GitHub Desktop.
Save thiagoolsilva/901365e0727119f9109d281355e6bd84 to your computer and use it in GitHub Desktop.
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