package ca.ualberta.cs.swapmyride;

import android.test.ActivityInstrumentationTestCase2;

/**
 * Created by Garry on 2015-10-08.
 */
public class ConfigurationTest extends ActivityInstrumentationTestCase2{
    public ConfigurationTest(){
        super(MainMenu.class);
    }

    public void testImagePreferance(){
        User user = new User();
        user.setDownloadImages(false);
        Image image = new Image();
        //autoDownloadImage should return true if the image downloads
        boolean downloaded = autoDownloadImage(image);
        assertFalse(downloaded);
        //when the user selects to download an image, it should download
        downloaded = manualDownloadImage(image);
        assertTrue(downloaded);
    }

    public void testEditProfile(){
        
    }

}

@@ -777,16 +777,757 @@
         
+User user = new User();%0A        user.setUserName(%22gbullock%22);%0A        user.setName(%22Garry%22);%0A        user.setEmail(%22gbull@whatever.com%22);%0A        user.setAddress(%22123 123st%22);%0A%0A        //check all user info was set properly%0A        assertTrue(user.getName().equals(%22Garry%22));%0A        assertTrue(user.getEmail().equals(%22gbull@whatever.com%22));%0A        assertTrue(user.getAddress().equals(%22123 123st%22));%0A%0A        user.setName(%22Jake%22);%0A        user.setEmail(%22Jake@whatever.com%22);%0A        user.setAddress(%22111 101st%22);%0A%0A        //check overwriting previous works properly%0A        assertTrue(user.getName().equals(%22Jake%22));%0A        assertTrue(user.getEmail().equals(%22Jake@whatever.com%22));%0A        assertTrue(user.getAddress().equals(%22111 101st%22));
 %0A    %7D%0A%0A

Add EditProfile test