private static final String PIDFILE_PATH = "/my/file/path";
@Test
public void simpleTermsSuccess() throws MalformedURLException {
ValidatorProcessParameters parms =
createParms(PARAMETER_USERNAME,
"username",
PARAMETER_PASSWORD,
"password",
PARAMETER_SERVER_URL,
"http://some.url/",
PARAMETER_TERMS,
"terms");
assertEquals("username", "username", parms.getServiceInfo()
.getUsername());
assertEquals("password", "password", parms.getServiceInfo()
.getPassword());
assertEquals("serverurl", new URL("http://some.url/"), parms
.getServiceInfo().getBaseUrl());
assertEquals("iteratorType", IteratorType.FS_QUERY, parms
.getIteratorType());
FieldSearchQuery fsq = parms.getQuery();
assertEquals("queryType", FieldSearchQuery.TERMS_TYPE, fsq.getType());
assertEquals("terms", "terms", fsq.getTerms());
}