package ca.ualberta.cs.swapmyride;

import android.test.ActivityInstrumentationTestCase2;

/**
 * Created by adrianomarini on 2015-11-01.
 */
public class UserSingletonTest extends ActivityInstrumentationTestCase2 {
    public UserSingletonTest(){
        super(MainMenu.class);
    }

    public void testAddUser(){
        User user1 = new User();
        user1.setUserName("adrianomarini");
        user1.setUserEmail("marini@ualberta.ca");
        UserSingleton.addCurrentUser(user1);
        User testUser = UserSingleton.getCurrentUser();
        assertTrue(testUser.equals(user1));
    }



}

package ca.ualberta.cs.swapmyride;

import android.test.ActivityInstrumentationTestCase2;

/**
 * Created by adrianomarini on 2015-11-01.
 */
public class UserSingletonTest extends ActivityInstrumentationTestCase2 {
    public UserSingletonTest(){
        super(MainMenu.class);
    }

    public void testAddUser(){
        User user1 = new User();
        user1.setUserName("adrianomarini");
        user1.setUserEmail("marini@ualberta.ca");
        UserSingleton.addCurrentUser(user1.getUserName());
        User testUser = UserSingleton.getCurrentUser();
        assertTrue(testUser.equals(user1));
    }



}

Fix SingletonTest so we can run other tests
Fix SingletonTest so we can run other tests
