Examples of goTo()


Examples of org.jboss.arquillian.graphene.location.LocationEnricher.goTo()

        return goTo(clazz, Default.class);
    }

    public <T> T goTo(Class<T> pageObject, Class<?> browserQualifier) {
        LocationEnricher locationEnricher = serviceLoader.get().onlyOne(LocationEnricher.class);
        return locationEnricher.goTo(pageObject, browserQualifier);
    }

    private RequestGuardFactory getRequestGuardFactoryFor(Object target) {
        GrapheneContext context;
        if (GrapheneProxy.isProxyInstance(target)) {
View Full Code Here

Examples of org.jvnet.hudson.test.JenkinsRule.WebClient.goTo()

    @Test
    @PresetData(DataSet.ANONYMOUS_READONLY)
    public void testPresetData() throws Exception {
        WebClient wc = rule.createWebClient();
        try {
            wc.goTo("loginError");
            fail("Expecting a 401 error");
        } catch (FailingHttpStatusCodeException e) {
            e.printStackTrace();
            assertEquals(SC_UNAUTHORIZED,e.getStatusCode());
        }
View Full Code Here

Examples of org.objectweb.asm.commons.GeneratorAdapter.goTo()

      ga.ifZCmp(GeneratorAdapter.LT, label);
      ga.loadThis();
      ga.loadArg(0);
      ga.putField(bean, "f", Type.INT_TYPE);
      Label end = new Label();
      ga.goTo(end);
      ga.mark(label);
      ga.throwException(Type.getType(IllegalArgumentException.class),
          "f");
      ga.mark(end);
      ga.returnValue();
View Full Code Here

Examples of org.objectweb.asm.commons.GeneratorAdapter.goTo()

      staticAdapter.putStatic(typeBeingWoven, methodStaticFieldName,
          METHOD_TYPE);

      Label afterCatch = staticAdapter.newLabel();
      staticAdapter.mark(endPopulate);
      staticAdapter.goTo(afterCatch);

      staticAdapter.mark(catchHandler);
      // We don't care about the exception, so pop it off
      staticAdapter.pop();
      // store the reflected method in the static field
View Full Code Here

Examples of org.objectweb.asm.commons.GeneratorAdapter.goTo()

    mg.storeLocal(1,Type.getType(StackTraceElement[].class));

    mg.push(10);
    mg.storeLocal(2,Type.getType(int.class));
   
    mg.goTo(LABEL_LOOP_CMP);

    mg.mark(LABEL_LOOP_START);
    mg.loadLocal(1);
    mg.loadLocal(2);
    mg.arrayLoad(Type.getType(StackTraceElement.class));
View Full Code Here

Examples of org.objectweb.asm.commons.GeneratorAdapter.goTo()

      staticAdapter.putStatic(typeBeingWoven, methodStaticFieldName,
          METHOD_TYPE);

      Label afterCatch = staticAdapter.newLabel();
      staticAdapter.mark(endPopulate);
      staticAdapter.goTo(afterCatch);

      staticAdapter.mark(catchHandler);
      // We don't care about the exception, so pop it off
      staticAdapter.pop();
      // store the reflected method in the static field
View Full Code Here

Examples of org.objectweb.asm.commons.GeneratorAdapter.goTo()

      // for (int i = 0; i < len; i++) {
      final int l_i = mv.newLocal( Type.INT_TYPE );
      mv.push( 0 );
      mv.storeLocal( l_i );
      final Label test = mv.newLabel();
      mv.goTo( test );
      final Label again = mv.mark();

      // lst.add( arr[ i ] );
      mv.loadLocal( l_lst );
      mv.loadLocal( l_arr );
View Full Code Here

Examples of org.objectweb.asm.commons.GeneratorAdapter.goTo()

        final Label handled = mv.newLabel();

        final Label beginHandling = mv.mark();
        ec.compile( _node.argument( 0 ) );
        ec.compileExceptionalValueTest( _testForErrors );
        mv.goTo( handled );
        final Label endHandling = mv.mark();

        for (int i = 0; i < _handledTypesReturningTrue.length; i++) {
          mv.catchException( beginHandling, endHandling, _handledTypesReturningTrue[ i ] );
          mv.visitVarInsn( Opcodes.ASTORE, method().newLocal( 1 ) );
View Full Code Here

Examples of org.objectweb.asm.commons.GeneratorAdapter.goTo()

        for (int i = 0; i < _handledTypesReturningTrue.length; i++) {
          mv.catchException( beginHandling, endHandling, _handledTypesReturningTrue[ i ] );
          mv.visitVarInsn( Opcodes.ASTORE, method().newLocal( 1 ) );
          ec.compileConst( Boolean.TRUE );
          mv.goTo( handled );
        }

        for (int i = 0; i < _handledTypesReturningFalse.length; i++) {
          mv.catchException( beginHandling, endHandling, _handledTypesReturningFalse[ i ] );
          mv.visitVarInsn( Opcodes.ASTORE, method().newLocal( 1 ) );
View Full Code Here

Examples of org.objectweb.asm.commons.GeneratorAdapter.goTo()

        for (int i = 0; i < _handledTypesReturningFalse.length; i++) {
          mv.catchException( beginHandling, endHandling, _handledTypesReturningFalse[ i ] );
          mv.visitVarInsn( Opcodes.ASTORE, method().newLocal( 1 ) );
          ec.compileConst( Boolean.FALSE );
          mv.goTo( handled );
        }

        mv.mark( handled );
      }
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.