protected PaxmlResource getDisplayResource() { return entity.getResource(); }
protected PaxmlResource getDisplayResource() { return entity.getResource(); }
@Override public boolean onItem(IEntity entity, ITag tag) { String name = entity.getResource().getName(); if (StringUtils.isBlank(name)) { name = "?"; } sb.insert(0, " > ").insert(0, tag.getLineNumber()).insert(0, "@").insert(0, name); return fullStack; } });
@Override public boolean onItem(IEntity entity, ITag tag) { String name = entity.getResource().getName(); if (StringUtils.isBlank(name)) { name = "?"; } sb.insert(0, " > ").insert(0, tag.getLineNumber()).insert(0, "@").insert(0, name); return fullStack; } });
/** * Get the current paxml resource. * * @return the resource */ public static PaxmlResource getCurrentyResource() { return Context.getCurrentContext().getCurrentEntity().getResource(); }
/** * Get the caller's paxml resource. * * @return the resource */ public static PaxmlResource getCallerResource() { return Context.getCurrentContext().findCallerEntity().getResource(); }
/** * Get the caller's paxml resource. * * @return the resource */ public static PaxmlResource getCallerResource() { return Context.getCurrentContext().findCallerEntity().getResource(); }
/** * Get the current paxml resource. * * @return the resource */ public static PaxmlResource getCurrentyResource() { return Context.getCurrentContext().getCurrentEntity().getResource(); }
/** * {@inheritDoc} */ @Override protected Object doInvoke(Context context) { Object value = getValue(); PaxmlResource res = getEntity().getResource(); String msg = includeResourceName ? ((fullResourceName ? res.getPath() : res.getName()) + ": " + value) : String .valueOf(value); if (level == Level.ERROR) { log.error(msg); } else if (level == Level.WARN) { log.warn(msg); } else if (level == Level.DEBUG) { log.debug(msg); } else { log.info(msg); } return value; }
/** * {@inheritDoc} */ @Override protected Object doInvoke(Context context) { Object value = getValue(); PaxmlResource res = getEntity().getResource(); String msg = includeResourceName ? ((fullResourceName ? res.getPath() : res.getName()) + ": " + value) : String .valueOf(value); if (level == Level.ERROR) { log.error(msg); } else if (level == Level.WARN) { log.warn(msg); } else if (level == Level.DEBUG) { log.debug(msg); } else { log.info(msg); } return value; }
/** * {@inheritDoc} */ @Override protected Object doInvoke(Context context) throws Exception { Object result = super.doInvoke(context); if (log.isDebugEnabled()) { log.debug("Returning from the execution of the current scenario: " + context.getCurrentEntity().getResource().getName()); } context.getCurrentEntityContext().setReturning(true); return result; }
/** * {@inheritDoc} */ @Override protected Object doInvoke(Context context) throws Exception { Object result = super.doInvoke(context); if (log.isDebugEnabled()) { log.debug("Returning from the execution of the current scenario: " + context.getCurrentEntity().getResource().getName()); } context.getCurrentEntityContext().setReturning(true); return result; }
final String entity = context.getProcessId() + "-" + context.getCurrentEntity().getResource().getName(); final String fn = new SimpleDateFormat("yyyy-MM-dd_HH-mm-ss_SSS").format(new Date()); File dir = new File(snapshotFolder);
final String entity = context.getProcessId() + "-" + context.getCurrentEntity().getResource().getName(); final String fn = new SimpleDateFormat("yyyy-MM-dd_HH-mm-ss_SSS").format(new Date()); File dir = new File(snapshotFolder);
/** * {@inheritDoc} */ @Override protected Object doInvoke(Context context) throws Exception { final Object value = getValue(); final String path = value == null ? null : value.toString().trim(); if (StringUtils.isBlank(path)) { throw new PaxmlRuntimeException("No spring xml file given!"); } Resource res = PaxmlUtils.getResource(path, getEntity().getResource().getSpringResource()); PaxmlResource _res = PaxmlResource.createFromResource(res); return SpringXmlEntityFactory.getApplicationContext(_res); }
/** * {@inheritDoc} */ @Override protected Object doInvoke(Context context) throws Exception { final Object value = getValue(); final String path = value == null ? null : value.toString().trim(); if (StringUtils.isBlank(path)) { throw new PaxmlRuntimeException("No spring xml file given!"); } Resource res = Parser.getResource(path, getEntity().getResource().getSpringResource()); PaxmlResource _res = PaxmlResource.createFromResource(res); return SpringXmlEntityFactory.getApplicationContext(_res); }
Resource res = Parser.getResource(file, getEntity().getResource().getSpringResource()); Parser.loadProperties(props, res, null);
Resource res = PaxmlUtils.getResource(file, getEntity().getResource().getSpringResource()); PaxmlUtils.loadProperties(props, res, null);
@Override public boolean onItem(IEntity entity, ITag tag) { CallStack c = new CallStack(); r.getErrorStack().add(c); c.setLine(tag.getLineNumber()); c.setEntityName(entity.getResource().getName()); c.setTagName(tag.getTagName()); return true; } });
@Override public boolean onItem(IEntity entity, ITag tag) { CallStack c = new CallStack(); r.getErrorStack().add(c); c.setLine(tag.getLineNumber()); c.setEntityName(entity.getResource().getName()); c.setTagName(tag.getTagName()); return true; } });