Examples of toLongString()


Examples of org.apache.tools.ant.types.resources.FileResource.toLongString()

            FileResource fr = ((FileResource) o);
            if (fr.isDirectory()) {
              throw new BuildException("Directory based FileResources are not supported.");
            }
            if (fr.isExists()) {
              log("'" + fr.toLongString() + "' does not exist", Project.MSG_VERBOSE);
            }
            files.add(fr.getFile().getAbsolutePath());
          } else {
              log("Unsupported Resource type: " + o.toString(), Project.MSG_VERBOSE);
          }
View Full Code Here

Examples of org.apache.tools.ant.types.resources.FileResource.toLongString()

            FileResource fr = ((FileResource) o);
            if (fr.isDirectory()) {
              throw new BuildException("Directory based FileResources are not supported.");
            }
            if (!fr.isExists()) {
              log("'" + fr.toLongString() + "' does not exist", Project.MSG_VERBOSE);
            }
            files.add(fr.getFile().getAbsolutePath());
          } else {
              log("Unsupported Resource type: " + o.toString(), Project.MSG_VERBOSE);
          }
View Full Code Here

Examples of org.aspectj.lang.JoinPoint.toLongString()

      public void before(Method method, Object[] args, Object target) throws Throwable {
        JoinPoint jp = AbstractAspectJAdvice.currentJoinPoint();
        assertTrue("Method named in toString", jp.toString().indexOf(method.getName()) != -1);
        // Ensure that these don't cause problems
        jp.toShortString();
        jp.toLongString();
       
        assertSame(target, AbstractAspectJAdvice.currentJoinPoint().getTarget());
        assertFalse(AopUtils.isAopProxy(AbstractAspectJAdvice.currentJoinPoint().getTarget()));
       
        ITestBean thisProxy = (ITestBean) AbstractAspectJAdvice.currentJoinPoint().getThis();
View Full Code Here

Examples of org.aspectj.lang.JoinPoint.toLongString()

      public void before(Method method, Object[] args, Object target) throws Throwable {
        JoinPoint jp = AbstractAspectJAdvice.currentJoinPoint();
        assertTrue("Method named in toString", jp.toString().contains(method.getName()));
        // Ensure that these don't cause problems
        jp.toShortString();
        jp.toLongString();

        assertSame(target, AbstractAspectJAdvice.currentJoinPoint().getTarget());
        assertFalse(AopUtils.isAopProxy(AbstractAspectJAdvice.currentJoinPoint().getTarget()));

        ITestBean thisProxy = (ITestBean) AbstractAspectJAdvice.currentJoinPoint().getThis();
View Full Code Here

Examples of org.aspectj.lang.JoinPoint.toLongString()

        assertEquals(aspectJVersionJp.getSignature().toLongString(), jp.getSignature().toLongString());
        assertEquals(aspectJVersionJp.getSignature().toShortString(), jp.getSignature().toShortString());
        assertEquals(aspectJVersionJp.getSignature().toString(), jp.getSignature().toString());

        assertEquals(aspectJVersionJp.toLongString(), jp.toLongString());
        assertEquals(aspectJVersionJp.toShortString(), jp.toShortString());
        assertEquals(aspectJVersionJp.toString(), jp.toString());
      }
    });
    ITestBean itb = (ITestBean) pf.getProxy();
View Full Code Here

Examples of org.aspectj.lang.Signature.toLongString()

    }
   
    protected CacheKey createCacheKey(ProceedingJoinPoint pjp, RequestCache requestCache) {
        final Signature signature = pjp.getSignature();
        final Class<?> declaringType = signature.getDeclaringType();
        final String signatureLongString = signature.toLongString();
       
        final boolean[] keyMask = requestCache.keyMask();
        final Object[] args = pjp.getArgs();
       
        final Object[] keyArgs;
View Full Code Here

Examples of org.aspectj.lang.Signature.toLongString()

        final Object[] keyArgs;
        if (keyMask.length == 0) {
            keyArgs = args;
        }
        else if (keyMask.length != args.length) {
            throw new AnnotationFormatError("RequestCache.keyMask has an invalid length on: " + signature.toLongString());
        }
        else {
            keyArgs = new Object[args.length];
            for (int i = 0; i < args.length; i++) {
                if (keyMask[i]) {
View Full Code Here

Examples of org.aspectj.lang.reflect.MethodSignature.toLongString()

          fail("Can't determine parameter names");
        }
        catch (UnsupportedOperationException ex) {
          // Expected
        }
        msig.toLongString();
        msig.toShortString();
      }
    });
    ITestBean itb = (ITestBean) pf.getProxy();
    // Any call will do
View Full Code Here

Examples of org.aspectj.lang.reflect.MethodSignature.toLongString()

        assertSame("Return same JoinPoint repeatedly", AbstractAspectJAdvice.currentJoinPoint(), AbstractAspectJAdvice.currentJoinPoint());
        assertEquals(method.getDeclaringClass(), msig.getDeclaringType());
        assertTrue(Arrays.equals(method.getParameterTypes(), msig.getParameterTypes()));
        assertEquals(method.getReturnType(), msig.getReturnType());
        assertTrue(Arrays.equals(method.getExceptionTypes(), msig.getExceptionTypes()));
        msig.toLongString();
        msig.toShortString();
      }
    });
    ITestBean itb = (ITestBean) pf.getProxy();
    // Any call will do
View Full Code Here

Examples of org.auraframework.test.perf.metrics.PerfMetrics.toLongString()

        // combine all metrics, log/write results, perform tests
        PerfMetrics allMetrics = PerfMetrics.combine(timelineMetrics, profileMetrics, auraMetrics);
        if (allMetrics != null) {
            if (logger.isLoggable(Level.INFO)) {
                logger.info("perf metrics for " + this + '\n' + allMetrics.toLongString());
            }
            List<JSONObject> devToolsLog = allMetrics.getDevToolsLog();
            if (devToolsLog != null) {
                PerfResultsUtil.writeDevToolsLog(devToolsLog, getGoldFileName(), auraUITestingUtil.getUserAgent());
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.