com.example.spoon.ordering.tests
Class LoginActivityTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by android.test.InstrumentationTestCase
              extended by android.test.ActivityTestCase
                  extended by android.test.ActivityInstrumentationTestCase2<LoginActivity>
                      extended by com.example.spoon.ordering.tests.LoginActivityTest
All Implemented Interfaces:
junit.framework.Test

public class LoginActivityTest
extends android.test.ActivityInstrumentationTestCase2<LoginActivity>


Constructor Summary
LoginActivityTest()
           
 
Method Summary
protected  void setUp()
           
 void testBlankPassword_ShowsError()
           
 void testBlankUsername_ShowsError()
           
 void testEmptyForm_ShowsBothErrors()
           
 void testPasswordTooShort_ShowsError()
           
 void testValidValues_StartsNewActivity()
           
 
Methods inherited from class android.test.ActivityInstrumentationTestCase2
getActivity, runTest, setActivityInitialTouchMode, setActivityIntent, tearDown
 
Methods inherited from class android.test.ActivityTestCase
scrubClass, setActivity
 
Methods inherited from class android.test.InstrumentationTestCase
getInstrumentation, injectInsrumentation, injectInstrumentation, launchActivity, launchActivityWithIntent, runTestOnUiThread, sendKeys, sendKeys, sendRepeatedKeys
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LoginActivityTest

public LoginActivityTest()
Method Detail

setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class android.test.ActivityInstrumentationTestCase2<LoginActivity>
Throws:
Exception

testEmptyForm_ShowsBothErrors

public void testEmptyForm_ShowsBothErrors()

testBlankPassword_ShowsError

public void testBlankPassword_ShowsError()

testBlankUsername_ShowsError

public void testBlankUsername_ShowsError()

testPasswordTooShort_ShowsError

public void testPasswordTooShort_ShowsError()

testValidValues_StartsNewActivity

public void testValidValues_StartsNewActivity()


Copyright © 2012-2013 Square, Inc.. All Rights Reserved.