<commit_before>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);
    }
    
}
<commit_msg>Added Image Preference test<commit_after>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(){
        
    }

}

{'fraction_non_alphanumeric': 0.08471615720524017, 'fraction_numerical': 0.017467248908296942, 'mean_word_length': 3.292134831460674, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 11, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7324758', 'n_tokens_mistral': 316, 'n_tokens_neox': 299, 'n_words': 78}