Created
April 11, 2013 03:03
-
-
Save chintanparikh/5360329 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
package com.example.wheresmystuff.junits; | |
import android.test.AndroidTestCase; | |
import junit.framework.Assert; | |
import com.example.wheresmystuff.presenter.WheresMyStuff; | |
import com.example.wheresmystuff.model.*; | |
public class JUnitTestByChintan extends AndroidTestCase { | |
private User regular_user, admin_user; | |
public void setUp() | |
{ | |
regular_user = new User("regular_user", "password", false, 1); | |
admin_user = new User("admin_user", "password", true, 2); | |
WheresMyStuff.promoteUser(regular_user); | |
} | |
public void testCase1() throws Throwable { | |
Assert.assertTrue(regular_user.isAdmin()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment