View Javadoc

1   package edu.samplu.admin.test;
2   
3   import org.junit.Test;
4   
5   import java.util.HashMap;
6   import java.util.Map;
7   
8   /**
9    * @author Kuali Rice Team (rice.collab@kuali.org)
10   */
11  public class DocumentSearchURLParametersIT_testSupplyingSavedSearchNameDoesNothing extends DocumentSearchURLParametersITBase {
12      /**
13       * Supplying a saveName does not result in the saved search getting loaded.
14       * @throws InterruptedException
15       */
16      @Test
17      public void testSupplyingSavedSearchNameDoesNothing() throws InterruptedException {
18          // get the search saved
19          driver.get(getDocSearchURL(BASIC_FIELDS));
20  
21          driver.get(getDocSearchURL("saveName=testBasicSearchFields_saved_search"));
22  
23          Map<String, String> emptyForm = new HashMap<String, String>();
24          for (String key: CORE_FIELDS.keySet()) {
25              emptyForm.put(key, "");
26          }
27  
28          assertInputValues(emptyForm);
29      }
30  }