Vector names = new Vector();
names.add(new Name("BadBoys"));
FindQualifiers findQualifiers = new FindQualifiers();
Vector qualifier = new Vector();
qualifier.add(new FindQualifier("exactNameMatch"));
findQualifiers.setFindQualifierVector(qualifier);
BusinessList businessList = null;
businessList = proxy.find_business(names, null, null, null, null,
findQualifiers, 5);
if (businessList.getBusinessInfos().getBusinessInfoVector().size() != 0) {
return false;
}
names.clear();
names.add(new Name("BadBoysGetSpanked"));
businessList = proxy.find_business(names, null, null, null, null,
findQualifiers, 5);
if (businessList.getBusinessInfos().getBusinessInfoVector().size() != 1) {
return false;
}
/**
* exact match, case insensitive
*/
names.clear();
names.add(new Name("badboysgetspanked"));
businessList = proxy.find_business(names, null, null, null, null,
findQualifiers, 5);
if (businessList.getBusinessInfos().getBusinessInfoVector().size() != 1) {
return false;
}
/**
* exact match, case sensitive, negative
*/
findQualifiers = new FindQualifiers();
qualifier = new Vector();
qualifier.add(new FindQualifier("exactNameMatch"));
qualifier.add(new FindQualifier("caseSensitiveMatch"));
findQualifiers.setFindQualifierVector(qualifier);
names.clear();
names.add(new Name("badboysgetspanked"));
businessList = proxy.find_business(names, null, null, null, null,