List of usage examples for org.apache.commons.beanutils BeanToPropertyValueTransformer BeanToPropertyValueTransformer
public BeanToPropertyValueTransformer(String propertyName)
From source file:com.denimgroup.threadfix.service.FilterJsonBlobServiceImpl.java
@Override @SuppressWarnings("unchecked") public List<FilterJsonBlob> loadAllAssociated() { if (policyService == null) { return list(); }/*from w ww .jav a 2s .c o m*/ return (List<FilterJsonBlob>) CollectionUtils.collect(policyService.loadAll(), new BeanToPropertyValueTransformer("filterJsonBlob")); }
From source file:de.hybris.platform.b2bacceleratorfacades.order.populators.B2BApprovalDataPopulator.java
@Override public void populate(final WorkflowActionModel source, final B2BOrderApprovalData target) { final OrderModel orderModel = getB2bWorkflowIntegrationService().getOrderFromAction(source); target.setWorkflowActionModelCode(source.getCode()); target.setB2bOrderData(getOrderConverter().convert(orderModel)); target.setAllDecisions(new ArrayList<String>(CollectionUtils.collect(source.getDecisions(), new BeanToPropertyValueTransformer(WorkflowDecisionModel.QUALIFIER) { @Override/*from w w w . jav a2s. c o m*/ public Object transform(final Object object) { final Object original = super.transform(object); if (original instanceof String) { return ((String) super.transform(object)).toUpperCase(); } else { return original; } } }))); if (source.getSelectedDecision() != null) { target.setSelectedDecision(source.getSelectedDecision().getName()); } target.setApprovalComments(source.getComment()); if (WorkflowActionStatus.IN_PROGRESS.equals(source.getStatus())) { target.setApprovalDecisionRequired(true); } final List<B2BOrderHistoryEntryData> orderHistoryEntriesData = Converters .convertAll(orderModel.getHistoryEntries(), getB2bOrderHistoryEntryConverter()); //TODO:Add the QUOTE and MERCHANT keywords in enum as a dictionary for filtering target.setQuotesApprovalHistoryEntriesData( filterOrderHistoryEntriesForApprovalStage(orderHistoryEntriesData, "QUOTE")); target.setMerchantApprovalHistoryEntriesData( filterOrderHistoryEntriesForApprovalStage(orderHistoryEntriesData, "MERCHANT")); target.setOrderHistoryEntriesData(orderHistoryEntriesData); }
From source file:ar.com.zauber.commons.message.impl.message.ResourceBundleMessageTemplate.java
/** * @see MessageFactory#renderString(java.lang.String, java.util.Map) * //from www.j a v a2s.c o m * Try not to use this one. * * */ @SuppressWarnings("unchecked") public final String renderString(final String message, final Map<String, Object> model) { List<Map.Entry<String, Object>> entries = new ArrayList<Map.Entry<String, Object>>(model.entrySet()); Collections.sort(entries, new Comparator<Map.Entry<String, Object>>() { public int compare(final Map.Entry<String, Object> o1, final Map.Entry<String, Object> o2) { return o1.getKey().compareTo(o2.getKey()); } }); Collection<Object> parameters = CollectionUtils.collect(entries, new BeanToPropertyValueTransformer("value")); return renderString(message, parameters.toArray()); }
From source file:eionet.meta.dao.mysql.SchemaDAOImpl.java
/** * @see eionet.meta.dao.ISchemaDAO#listForSchemaSets(List<SchemaSets>) *//* w ww . ja v a2s.co m*/ @Override public List<Schema> listForSchemaSets(List<SchemaSet> schemaSets) { Map<String, Object> params = new HashMap<String, Object>(); StringBuilder sql = new StringBuilder("select SCHEMA_ID from T_SCHEMA "); if (schemaSets != null && schemaSets.size() > 0) { sql.append("where SCHEMA_SET_ID IN ( :schemaSetIds) "); params.put("schemaSetIds", CollectionUtils.collect(schemaSets, new BeanToPropertyValueTransformer("id"))); } sql.append("order by FILENAME"); List<Integer> schemaIdList = getNamedParameterJdbcTemplate().queryForList(sql.toString(), params, Integer.class); return getSchemas(schemaIdList); }
From source file:com.denimgroup.threadfix.service.DefaultConfigServiceImpl.java
@Override @SuppressWarnings("unchecked") public List<String> getDisplayNamesFromExportFields(List<CSVExportField> exportFields) { return (List<String>) CollectionUtils.collect(exportFields, new BeanToPropertyValueTransformer("displayName")); }
From source file:eionet.meta.dao.mysql.TableDAOImpl.java
/** * {@inheritDoc}// w w w. java 2 s . c o m */ @Override public List<DataSetTable> listForDatasets(List<DataSet> datasets) { StringBuilder sql = new StringBuilder(); int nameAttrId = getNameAttributeId(); Map<String, Object> params = new HashMap<String, Object>(); params.put("nameAttrId", nameAttrId); params.put("parentType", "T"); sql.append( "select dst.TABLE_ID, dst.SHORT_NAME, ds.REG_STATUS, dst.IDENTIFIER, ds.IDENTIFIER, ds.DATASET_ID, "); sql.append( "(select VALUE from ATTRIBUTE where M_ATTRIBUTE_ID = :nameAttrId and DATAELEM_ID = dst.TABLE_ID "); sql.append("and PARENT_TYPE = :parentType limit 1 ) as fullName "); sql.append("from DS_TABLE as dst "); sql.append("inner join DST2TBL as dst2ds on dst2ds.TABLE_ID = dst.TABLE_ID "); sql.append("inner join DATASET as ds on dst2ds.DATASET_ID = ds.DATASET_ID "); sql.append("where ds.DELETED is null "); sql.append("and ds.WORKING_COPY = 'N' "); //set dataset filters if (datasets != null && datasets.size() > 0) { sql.append("and ds.DATASET_ID IN( :datasetIds ) "); params.put("datasetIds", CollectionUtils.collect(datasets, new BeanToPropertyValueTransformer("id"))); } sql.append("order by ds.IDENTIFIER asc, ds.DATASET_ID desc, dst.IDENTIFIER asc, dst.TABLE_ID desc"); final List<DataSetTable> resultList = new ArrayList<DataSetTable>(); getNamedParameterJdbcTemplate().query(sql.toString(), params, new RowCallbackHandler() { @Override public void processRow(ResultSet rs) throws SQLException { DataSetTable table = new DataSetTable(); table.setId(rs.getInt("dst.TABLE_ID")); table.setShortName(rs.getString("dst.SHORT_NAME")); table.setName(rs.getString("fullName")); table.setDataSetStatus(rs.getString("ds.REG_STATUS")); // skip tables that do not actually exist (ie trash from some erroneous situation) if (StringUtils.isEmpty(rs.getString("dst.IDENTIFIER"))) { return; } table.setIdentifier(rs.getString("dst.IDENTIFIER")); resultList.add(table); } }); return resultList; }
From source file:com.denimgroup.threadfix.service.queue.scheduledjob.ScheduledRemoteProviderImporter.java
@SuppressWarnings("unchecked") public boolean addScheduledRemoteProviderImport(ScheduledRemoteProviderImport scheduledRemoteProviderImport) { String groupName = createGroupName(); String jobName = createJobName(scheduledRemoteProviderImport); JobDetail job = JobBuilder.newJob(ScheduledRemoteProviderImportJob.class).withIdentity(jobName, groupName) .build();//from www . ja va 2s. co m List<RemoteProviderType> remoteProviderTypes = remoteProviderTypeService.loadAll(); List<Integer> idList = (List<Integer>) CollectionUtils.collect(remoteProviderTypes, new BeanToPropertyValueTransformer("id")); String remoteProviderTypeIds = StringUtils.join(idList, ","); job.getJobDataMap().put("remoteProviderTypeIds", remoteProviderTypeIds); job.getJobDataMap().put("queueSender", queueSender); try { String cronExpression = getCronExpression(scheduledRemoteProviderImport); if (cronExpression == null) return false; Trigger trigger = TriggerBuilder.<CronTrigger>newTrigger().forJob(jobName, groupName) .withIdentity(jobName, groupName).withSchedule(cronSchedule(cronExpression)).build(); Date ft = scheduler.scheduleJob(job, trigger); log.info(job.getKey() + " has been scheduled to run at: " + ft + " and repeat based on expression: " + cronExpression); } catch (RuntimeException e) { if (e.getCause() instanceof ParseException) { log.error("Got ParseException while parsing cron expression.", e.getCause()); return false; } else { throw e; } } catch (SchedulerException scheEx) { log.error("Error when scheduling job", scheEx); return false; } return true; }
From source file:com.topsec.tsm.sim.report.web.ReportController.java
/** * /*from w w w .ja v a2s . co m*/ */ @RequestMapping("getReportTree") @ResponseBody public Object getReportTree(SID sid, HttpServletRequest request) { if (null == auditor) { if (null == nodeMgrFacade) { nodeMgrFacade = (NodeMgrFacade) SpringContextServlet.springCtx.getBean("nodeMgrFacade"); } auditor = nodeMgrFacade.getKernelAuditor(false); } TreeModel tree = new TreeModel("basic", "", "open"); tree.putAttribute("type", ReportUiConfig.ReportTreeType.TRUNK); Set<AuthUserDevice> devices = sid.getUserDevice() == null ? Collections.<AuthUserDevice>emptySet() : sid.getUserDevice(); if (dataSourceService == null) { dataSourceService = (DataSourceService) FacadeUtil.getFacadeBean(request, null, "dataSourceService"); } if (reportService == null) { reportService = (ReportService) FacadeUtil.getFacadeBean(request, null, "reportService"); } if (sid.isAuditor() || sid.hasAuditorRole()) { TreeModel selfAudit = new TreeModel(LogKeyInfo.LOG_SYSTEM_TYPE, "", "closed"); selfAudit.putAttribute("dvcType", LogKeyInfo.LOG_SYSTEM_TYPE); selfAudit.putAttribute("type", ReportUiConfig.ReportTreeType.TRUNK); List<Map> rptMapList = reportService.getRptMaster("Comprehensive" + LogKeyInfo.LOG_SYSTEM_TYPE); if (!GlobalUtil.isNullOrEmpty(rptMapList)) { Map trunkMap = rptMapList.get(0); selfAudit.putAttribute("viewItem", trunkMap.get("viewItem")); } List<TreeModel> schildren = createTreeModel(reportService, LogKeyInfo.LOG_SYSTEM_TYPE); selfAudit.setChildren(schildren); tree.addChild(selfAudit); } if (sid.hasOperatorRole() || sid.isOperator()) { TreeModel system = new TreeModel(LogKeyInfo.LOG_SYSTEM_RUN_TYPE, "", "closed"); system.putAttribute("dvcType", LogKeyInfo.LOG_SYSTEM_RUN_TYPE); system.putAttribute("type", ReportUiConfig.ReportTreeType.TRUNK); List<Map> rptMapList = reportService.getRptMaster("Comprehensive" + LogKeyInfo.LOG_SYSTEM_RUN_TYPE); if (!GlobalUtil.isNullOrEmpty(rptMapList)) { Map trunkMap = rptMapList.get(0); system.putAttribute("viewItem", trunkMap.get("viewItem")); } List<TreeModel> syschildren = createTreeModel(reportService, LogKeyInfo.LOG_SYSTEM_RUN_TYPE); system.setChildren(syschildren); tree.addChild(system); TreeModel event = new TreeModel(LogKeyInfo.LOG_SIM_EVENT + "", "", "closed"); event.putAttribute("dvcType", LogKeyInfo.LOG_SIM_EVENT); event.putAttribute("type", ReportUiConfig.ReportTreeType.TRUNK); List<Map> rptMapEvList = reportService.getRptMaster("Comprehensive" + LogKeyInfo.LOG_SIM_EVENT); if (!GlobalUtil.isNullOrEmpty(rptMapEvList)) { Map trunkMap = rptMapEvList.get(0); event.putAttribute("viewItem", trunkMap.get("viewItem")); } List<TreeModel> echildren = createTreeModel(reportService, LogKeyInfo.LOG_SIM_EVENT); event.setChildren(echildren); tree.addChild(event); } TreeModel log = new TreeModel(LogKeyInfo.LOG_GLOBAL_DETAIL, "", "open"); log.putAttribute("dvcType", LogKeyInfo.LOG_GLOBAL_DETAIL); log.putAttribute("type", ReportUiConfig.ReportTreeType.TRUNK); List<TreeModel> children = createTreeModel(reportService, LogKeyInfo.LOG_GLOBAL_DETAIL); log.addChild(children.get(0)); List<SimDatasource> simDatasources = dataSourceService.getDataSource(DataSourceService.CMD_ALL); List<String> dvcTypes = null; if (sid.isOperator()) { dvcTypes = dataSourceService.getDistinctDvcType(DataSourceService.CMD_ALL); } else { dvcTypes = new ArrayList<String>(); BeanToPropertyValueTransformer trans = new BeanToPropertyValueTransformer("ip"); Collection<String> userDeviceIPs = (Collection<String>) CollectionUtils.collect(devices, trans); for (SimDatasource simDatasource : simDatasources) { Device device = AssetFacade.getInstance().getAssetByIp(simDatasource.getDeviceIp()); if (device != null && userDeviceIPs.contains(simDatasource.getDeviceIp())) { if (!dvcTypes.contains(simDatasource.getSecurityObjectType())) { dvcTypes.add(simDatasource.getSecurityObjectType()); } } } } if (!GlobalUtil.isNullOrEmpty(dvcTypes) && (sid.hasOperatorRole() || sid.isOperator())) { for (String dvc : dvcTypes) { if (!LogKeyInfo.LOG_SYSTEM_TYPE.equals(dvc) && !LogKeyInfo.LOG_SYSTEM_RUN_TYPE.equals(dvc)) { String name = DeviceTypeNameUtil.getDeviceTypeName(dvc, request.getLocale()); TreeModel trees = new TreeModel(dvc, name); trees.putAttribute("dvcType", dvc); trees.putAttribute("type", ReportUiConfig.ReportTreeType.TRUNK); List<Map> rptMapList = reportService.getRptMaster("Comprehensive" + dvc); if (!GlobalUtil.isNullOrEmpty(rptMapList)) { Map trunkMap = rptMapList.get(0); trees.putAttribute("viewItem", trunkMap.get("viewItem")); } List<TreeModel> bchildren = createTreeModel(reportService, dvc); trees.setChildren(bchildren); trees.setState(bchildren.isEmpty() ? "open" : "closed"); log.addChild(trees); } } tree.addChild(log); } JSONArray jsonArray = new JSONArray(1); jsonArray.add(tree); return jsonArray; }
From source file:com.topsec.tsm.sim.report.web.ReportController.java
/** * /*from w ww .j ava 2 s. com*/ */ @RequestMapping("reportQuery") @SuppressWarnings("unchecked") public String reportQuery(SID sid, HttpServletRequest request, HttpServletResponse response) throws Exception { boolean fromRest = false; if (request.getParameter("fromRest") != null) { fromRest = Boolean.parseBoolean(request.getParameter("fromRest")); } JSONObject json = new JSONObject(); ReportBean bean = new ReportBean(); bean = ReportUiUtil.tidyFormBean(bean, request); String onlyByDvctype = request.getParameter("onlyByDvctype"); String[] talCategory = bean.getTalCategory(); ReportModel.setBeanPropery(bean); RptMasterTbService rptMasterTbImp = (RptMasterTbService) SpringContextServlet.springCtx .getBean(ReportUiConfig.MstBean); List<Map<String, Object>> subResult = rptMasterTbImp.queryTmpList(ReportUiConfig.MstSubSql, new Object[] { StringUtil.toInt(bean.getMstrptid(), StringUtil.toInt(bean.getTalTop(), 5)) }); StringBuffer layout = new StringBuffer(); Map<Integer, Integer> rowColumns = ReportModel.getRowColumns(subResult); Map<String, Object> params = new HashMap<String, Object>(); params.put("dvcType", bean.getDvctype()); params.put("talTop", bean.getTalTop()); params.put("mstId", bean.getMstrptid()); params.put("eTime", bean.getTalEndTime()); if ("Esm/Topsec/SimEvent".equals(bean.getDvctype()) || "Esm/Topsec/SystemLog".equals(bean.getDvctype()) || "Esm/Topsec/SystemRunLog".equals(bean.getDvctype()) || "Log/Global/Detail".equals(bean.getDvctype())) { onlyByDvctype = "onlyByDvctype"; } String sUrl = null; List<SimDatasource> simDatasources = dataSourceService.getDataSourceByDvcType(bean.getDvctype()); removeRepeatDs(simDatasources); Set<AuthUserDevice> devices = ObjectUtils.nvl(sid.getUserDevice(), Collections.<AuthUserDevice>emptySet()); List<SimDatasource> dslist = new ArrayList<SimDatasource>(); if (sid.isOperator()) { SimDatasource dsource = new SimDatasource(); dsource.setDeviceIp(""); dsource.setSecurityObjectType(bean.getDvctype()); dsource.setAuditorNodeId(""); dslist.add(0, dsource); dslist.addAll(simDatasources); } else { BeanToPropertyValueTransformer trans = new BeanToPropertyValueTransformer("ip"); Collection<String> userDeviceIPs = (Collection<String>) CollectionUtils.collect(devices, trans); for (SimDatasource simDatasource : simDatasources) { if (userDeviceIPs.contains(simDatasource.getDeviceIp())) { dslist.add(simDatasource); } } } int screenWidth = StringUtil.toInt(request.getParameter("screenWidth"), 1280) - 25 - 200; boolean flag = "onlyByDvctype".equals(onlyByDvctype); SimDatasource selectDataSource = getSelectDataSource(dslist, bean, flag, request); AssetObject assetObject = null == selectDataSource ? null : AssetFacade.getInstance().getAssetByIp(selectDataSource.getDeviceIp()); if (fromRest) { json.put("selectDataSourceId", selectDataSource == null ? 0 : selectDataSource.getResourceId()); json.put("selectDataSourceName", selectDataSource == null ? "" : assetObject.getName()); } request.setAttribute("selectDataSourceId", selectDataSource == null ? 0 : selectDataSource.getResourceId()); request.setAttribute("selectDataSourceName", selectDataSource == null ? "" : assetObject.getName()); StringBuffer subUrl = new StringBuffer(); Map layoutValue = new HashMap(); for (int i = 0, len = subResult.size(); i < len; i++) { params.remove("sTime"); Map subMap = subResult.get(i); if (i == 0) { bean.setViewItem(StringUtil.toString(subMap.get("viewItem"), "")); } Integer row = (Integer) subMap.get("subRow"); layout.append(row + ":" + subMap.get("subColumn") + ","); if (GlobalUtil.isNullOrEmpty(subMap)) { continue; } boolean qushi = StringUtil.booleanVal(subMap.get("chartProperty")); String tableSql = StringUtil.nvl((String) subMap.get("tableSql")); String subName = StringUtil.nvl((String) subMap.get("subName")); String mstName = StringUtil.nvl((String) subMap.get("mstName")); String pageSql = StringUtil.nvl((String) subMap.get("pagesql")); String chartSql = StringUtil.nvl((String) subMap.get("chartSql")); String nowTime = ReportUiUtil.getNowTime(ReportUiConfig.dFormat1); String talEndTime = bean.getTalEndTime(); if (qushi && (subName.contains("") || subName.contains("") || subName.contains("") || subName.contains("") || mstName.contains("") || mstName.contains("") || mstName.contains("") || mstName.contains(""))) { bean.setTalEndTime(nowTime); params.put("eTime", bean.getTalEndTime()); if (tableSql.indexOf("Hour") > 20 || tableSql.indexOf("_hour") > 20) { params.put("sTime", ReportUiUtil.toStartTime("hour", bean.getTalEndTime())); } else if (tableSql.indexOf("Day") > 20 || tableSql.indexOf("_day") > 20) { params.put("sTime", ReportUiUtil.toStartTime("day", bean.getTalEndTime())); } else if (tableSql.indexOf("Month") > 20 || tableSql.indexOf("_month") > 20) { params.put("sTime", ReportUiUtil.toStartTime("month", bean.getTalEndTime())); } else if (pageSql.indexOf("Hour") > 20 || pageSql.indexOf("_hour") > 20 || chartSql.indexOf("Hour") > 20) { params.put("sTime", ReportUiUtil.toStartTime("hour", bean.getTalEndTime())); } else if (pageSql.indexOf("Day") > 20 || pageSql.indexOf("_day") > 20 || chartSql.indexOf("Day") > 20) { params.put("sTime", ReportUiUtil.toStartTime("day", bean.getTalEndTime())); } else if (pageSql.indexOf("Month") > 20 || pageSql.indexOf("_month") > 20 || chartSql.indexOf("Month") > 20) { params.put("sTime", ReportUiUtil.toStartTime("month", bean.getTalEndTime())); } else { params.put("sTime", bean.getTalStartTime()); } } else if (subName.indexOf("") > 1) { bean.setTalEndTime(nowTime); params.put("eTime", bean.getTalEndTime()); if (tableSql.indexOf("Hour") > 20 || tableSql.indexOf("_hour") > 20) { params.put("sTime", ReportUiUtil.toStartTime("undefined", bean.getTalEndTime())); } else { params.put("sTime", bean.getTalStartTime()); } String startTime = params.get("sTime").toString(); String endTime = params.get("eTime").toString(); subName = subName + " " + startTime.substring(5) + " - " + endTime.substring(10) + "";//endTime.substring(10,endTime.length()-4)+"0:00"; subMap.put("subName", subName); } else { params.put("sTime", bean.getTalStartTime()); } bean.setTalEndTime(talEndTime); sUrl = getUrl(ReportUiConfig.subUrl, request, params, bean.getTalCategory()).toString(); subUrl.replace(0, subUrl.length(), sUrl); subUrl.append("&").append(ReportUiConfig.subrptid).append("=").append(subMap.get("subId")); subUrl.substring(0, subUrl.length()); int column = rowColumns.get(row); String width = String.valueOf((screenWidth - 10 * column) / column); String _column = subMap.get("subColumn").toString(); layoutValue.put(row + _column, ReportUiUtil.createSubTitle(subMap, width, subUrl.toString(), bean.getTalCategory(), StringUtil.toInt(bean.getTalTop(), 5))); } if (talCategory != null) { if (fromRest) json.put("superiorUrl", getSuperiorUrl(request, params, bean.getTalCategory()).toString()); request.setAttribute("superiorUrl", getSuperiorUrl(request, params, bean.getTalCategory()).toString()); } if (!GlobalUtil.isNullOrEmpty(subResult) && subResult.size() > 0) { if (!GlobalUtil.isNullOrEmpty(subResult.get(0).get("mstName"))) { if (fromRest) { json.put("title", subResult.get(0).get("mstName")); } request.setAttribute("title", subResult.get(0).get("mstName")); } } String htmlLayout = ReportModel.createMstTable(layout.toString(), layoutValue); StringBuffer sb = getExportUrl(request, params, talCategory); request.setAttribute("expUrl", sb.toString()); request.setAttribute("layout", htmlLayout); request.setAttribute("bean", bean); request.setAttribute("dslist", dslist); if (fromRest) { json.put("expUrl", sb.toString()); json.put("layout", htmlLayout); json.put("bean", JSONObject.toJSON(bean)); json.put("dslist", JSONObject.toJSON(dslist)); return json.toString(); } return "/page/report/base_report_detail"; }
From source file:de.hybris.platform.solrfacetsearch.integration.FacetDrillDownTest.java
private void checkFacets(final SearchResult result) { final List<Facet> facets3 = result.getFacets(); assertFalse("Facets collection must not be empty", facets3.isEmpty()); assertTrue("Result not contain facet price", result.containsFacet("price")); final Facet facet = result.getFacet("price"); final List<String> facetValues = (List<String>) CollectionUtils.collect(facet.getFacetValues(), new BeanToPropertyValueTransformer("name"), new ArrayList<String>()); final IndexedProperty priceProperty = indexedType.getIndexedProperties().get("price"); assertNotNull("No such indexed property: 'price'", priceProperty); final List<ValueRange> priceRanges = IndexedProperties.getValueRanges(priceProperty, null); assertNotNull("No priceRanges found", priceRanges); assertFalse("Price ranges must not be empty", priceRanges.isEmpty()); final List<String> ranngeValues = (List<String>) CollectionUtils.collect(priceRanges, new BeanToPropertyValueTransformer("name"), new ArrayList<String>()); final Iterator<String> facetValueItr = facetValues.iterator(); final Iterator<String> rangeValueItr = ranngeValues.iterator(); while (rangeValueItr.hasNext()) { final String rangeValue = rangeValueItr.next(); if (facetValues.contains(rangeValue)) { assertTrue("No more facet values", facetValueItr.hasNext()); final String facetValue = facetValueItr.next(); assertEquals("Facet value", rangeValue, facetValue); }/*w w w . j ava 2 s .c o m*/ } assertTrue("Result not contain facet manufacturerName", result.containsFacet("manufacturerName")); //assertTrue("Result not contain facet processor", result.containsFacet("processor")); assertTrue("Result not contain facet categoryName", result.containsFacet("categoryName")); }