Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import junit.framework.TestCase;
- /**
- * <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a>
- */
- public class ApplicationTest extends TestCase {
- protected double fValue1 = 2.0;
- protected double fValue2 = 3.0;
- public ApplicationTest()
- {
- TestCase test = new ApplicationTest("mathExampleTest");
- test.run();
- }
- //simply tests if 2+3 = 5
- public void mathExampleTest()
- {
- double result = fValue1 + fValue2;
- assertTrue(result == 5.0);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement