@Test public void path_fnArgNodeType_one_template_isNotOk() throws RestAnnotationException { final FunctionArgument[] args = { new NodeFnArg("arg1") }; final PathAnnotationImpl pa = new PathAnnotationImpl(); pa.setFunctionSignature(new ArgsFunctionSignature(args)); pa.setLiterals(new Literal[]{ new StringLiteral("/{$arg1}") }); ErrorCode code = null; try { pa.initialise(); } catch(final RestAnnotationException rae) { code = rae.getErrorCode(); } assertEquals(RestXqErrorCodes.RQST0006, code); }
@Override public void initialise() throws RestAnnotationException { super.initialise(); this.pathRegularExpression = parsePath(); }
PathAnnotationImpl extends AbstractRestAnnotation implements PathAnnotation { @Override public void initialise() throws RestAnnotationException { super.initialise(); this.pathRegularExpression = parsePath(); } }
PathAnnotationImpl extends AbstractRestAnnotation implements PathAnnotation { @Override public void initialise() throws RestAnnotationException { super.initialise(); this.pathRegularExpression = parsePath(); }  }
PathAnnotationImpl extends AbstractRestAnnotation implements PathAnnotation { @Override public void initialise() throws RestAnnotationException { super.initialise(); this.pathRegularExpression = parsePath(); }  @Override void initialise(); @Override boolean matchesPath(final String path); @Override Map<String, String> extractPathParameters(final String uriPath); @Override long getPathSpecificityMetric(); }
PathAnnotationImpl extends AbstractRestAnnotation implements PathAnnotation { @Override public void initialise() throws RestAnnotationException { super.initialise(); this.pathRegularExpression = parsePath(); }  @Override void initialise(); @Override boolean matchesPath(final String path); @Override Map<String, String> extractPathParameters(final String uriPath); @Override long getPathSpecificityMetric(); final static String pathSegmentRegExp; final static Pattern ptnPathSegment; final static String pathRegExp; final static Pattern ptnPath; }