Skip to content

Instantly share code, notes, and snippets.

@thesurlydev
Created October 24, 2010 17:46
Show Gist options
  • Save thesurlydev/643714 to your computer and use it in GitHub Desktop.
Save thesurlydev/643714 to your computer and use it in GitHub Desktop.
public class SearchTest extends AppTransactionalStrutsTestCase {
private static final String BOND_NAME = "ACE 2006-ASP6 A2C";
@Override
protected void setupAction() throws DataAccessException {
}
@Test
public void testSearchByBondName() throws Exception {
request.addParameter("searchRequest.bondName", BOND_NAME);
ActionProxy proxy = initActionProxy("/trader/searchPostBack!postBack.action");
Assert.assertEquals(Action.INPUT, proxy.execute());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment