001package edu.samplu.admin.test;
002
003import org.junit.Test;
004
005import java.util.HashMap;
006import java.util.Map;
007
008/**
009 * @author Kuali Rice Team (rice.collab@kuali.org)
010 */
011public class DocumentSearchURLParametersIT_testSupplyingSavedSearchNameDoesNothing extends DocumentSearchURLParametersITBase {
012    /**
013     * Supplying a saveName does not result in the saved search getting loaded.
014     * @throws InterruptedException
015     */
016    @Test
017    public void testSupplyingSavedSearchNameDoesNothing() throws InterruptedException {
018        // get the search saved
019        driver.get(getDocSearchURL(BASIC_FIELDS));
020
021        driver.get(getDocSearchURL("saveName=testBasicSearchFields_saved_search"));
022
023        Map<String, String> emptyForm = new HashMap<String, String>();
024        for (String key: CORE_FIELDS.keySet()) {
025            emptyForm.put(key, "");
026        }
027
028        assertInputValues(emptyForm);
029    }
030}