Examples of Parameterized


Examples of cn.wensiqun.asmsupport.Parameterized

    /**
     * 将方法的参数入栈
     */
    protected void argumentsToStack() {
      for(int i=0; i<arguments.length; i++){
            Parameterized argu = arguments[i];
            log.debug("push argument to stack");
            if(argu instanceof IVariable){
                ((IVariable) argu).availableFor(this);
            }
            argu.loadToStack(block);
            cast(argu.getParamterizedType(), mtdEntity.getArgClasses()[i]);
        }
    }
View Full Code Here

Examples of com.beust.jcommander.Parameterized

            encoding = flags.encoding;
        }
        lint = makeLint(flags);
        setResultFormatter(flags.report);
        for (ParameterDescription pd : jc.getParameters()) {
            Parameterized p = pd.getParameterized();
            // Is it declared on JSLintFlags?
            if (!pd.getObject().getClass().isAssignableFrom(JSLintFlags.class)) {
                continue;
            }
            try {
                // Need to get Option.
                Option o = getOption(p.getName());
                // Need to get value.
                Object val = p.get(jslintFlags);
                if (val == null) {
                    continue;
                }
                Class<?> type = p.getType();
                if (type.isAssignableFrom(Boolean.class)) {
                    lint.addOption(o);
                }
                // In theory, everything else should be a String for later parsing.
                else if (type.isAssignableFrom(String.class)) {
                    lint.addOption(o, (String) val);
                } else {
                    die("unknown type \"" + type + "\" (for " + p.getName() + ")");
                }
            } catch (IllegalArgumentException e) {
                die(e.getMessage());
            }
        }
View Full Code Here

Examples of org.junit.runners.Parameterized

        }
    }

    @Test(expected = InitializationError.class)
    public void exceptionWhenPrivateConstructor() throws Throwable {
        new Parameterized(PrivateConstructor.class);
    }
View Full Code Here

Examples of org.junit.runners.Parameterized

    }
  }
 
  @Test(expected=InitializationError.class)
  public void exceptionWhenPrivateConstructor() throws Throwable {
    new Parameterized(PrivateConstructor.class);
  }
View Full Code Here

Examples of org.junit.runners.Parameterized

                }
            }
        }
        if (delegatedRunner == null) {
            try {
                delegatedRunner = new Parameterized(testClass);
            } catch (Throwable t) {
                throw new RuntimeException("Unable to create delegated Test runner !", t);
            }
        }
    }
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.