public EvoEntityManager(EntityManager em, EntityManagerFactory factory) throws IllegalArgumentException{ Inputs.checkNull(em,factory); this.em = em; this.factory = factory; }
@Test public void test0() throws Throwable { Inputs inputs0 = new Inputs(); }
public boolean hasProperty(String property) throws IllegalArgumentException{ Inputs.checkNull(property); return false; //TODO }
/** * Add a test call * * @return */ public void addTestCall(GenericAccessibleObject<?> call) throws IllegalArgumentException{ Inputs.checkNull(call); testMethods.add(call); }
@Deprecated // better (more precise results) to use the other constructor public MethodDescriptor(String className, String methodName, String inputParameterMatchers) throws IllegalArgumentException{ Inputs.checkNull(methodName,inputParameterMatchers); this.className = className; this.methodName = methodName; this.inputParameterMatchers = inputParameterMatchers; counter = 0; }
public static boolean canInstantiateOnlyOnce(Class<?> klass) throws IllegalArgumentException{ Inputs.checkNull(klass); for(Class<?> c : classes) { if(c.isAssignableFrom(klass)){ return true; } } return false; } }
public void accessedHttpRequestParameter(String param) throws IllegalArgumentException{ Inputs.checkNull(param); httpRequestParameters.add(param); } }
public void accessLookUpContextName(String name){ Inputs.checkNull(name); lookedUpContextNames.add(name); }
public void addEnvironmentTestCall(GenericAccessibleObject<?> call) throws IllegalArgumentException{ Inputs.checkNull(call); environmentMethods.add(call); }
private void validateInputs() throws IllegalArgumentException{ Inputs.checkNull(parameters); for(VariableReference ref : parameters){ Inputs.checkNull(ref); } if(parameterAnnotations!=null){ if(parameterAnnotations.length != parameters.size()){ throw new IllegalArgumentException("Size mismatched"); } } }
public void skipInstrumentation(String prefix) throws IllegalArgumentException{ Inputs.checkNull(prefix); skipInstrumentationForPrefix.add(prefix); }
public void accessedDispatcher(String dispatcherName) throws IllegalArgumentException{ Inputs.checkNull(dispatcherName); dispatchers.add(dispatcherName); }
public InjectionCache(Class<?> fieldClass, Class<? extends Annotation>... annotations) { Inputs.checkNull(fieldClass,annotations); this.fieldClass = fieldClass; this.annotations = Collections.unmodifiableList(Arrays.asList(annotations)); }
public List<VariableReference> getParameters(String id) throws IllegalArgumentException { Inputs.checkNull(id); int[] minMax = methodParameters.get(id); if (minMax == null) { return null; } List<VariableReference> list = new ArrayList<>(); for (int i = minMax[0]; i <= minMax[1]; i++) { list.add(parameters.get(i)); } return list; }
/** * Execute the given runnable synchronously, but issue a warning if it takes too long * * @param runnable * @param name of the operation (will be used in the log) * @param warn_time_ms max time allowed for this operation before issuing a warning */ public static void execute(Runnable runnable, String name, long warn_time_ms){ Inputs.checkNull(runnable, name); long start = java.lang.System.currentTimeMillis(); runnable.run(); long delta = java.lang.System.currentTimeMillis() - start; if(delta > warn_time_ms){ logger.warn("Operation '{}' took too long: {}ms", name, delta); } }
public GenericMethod(Method method, Type type) { super(new GenericClass(type)); this.method = method; Inputs.checkNull(method, type); }
public static List<TestChromosome> loadTests(File folder, String fileName) throws IllegalArgumentException { Inputs.checkNull(folder, fileName); File target = new File(folder,fileName); return loadTests(target); }
public GenericMethod(Method method, GenericClass type) { super(new GenericClass(type)); this.method = method; Inputs.checkNull(method, type); }
public static List<File> getRecursivelyAllFilesInAllSubfolders(File folder, String suffix) throws IllegalArgumentException{ Inputs.checkNull(folder, suffix); List<File> buffer = new ArrayList<>(); _recursiveAllFiles(folder, suffix, buffer); return buffer; }
/** * Scan the <code>base</code> folder, and return a list of all files with the given name <code>ending</code> * * @param base * @param suffix * @return */ public static List<File> getRecursivelyAllFilesInAllSubfolders(String base, String suffix) throws IllegalArgumentException{ Inputs.checkNull(base, suffix); return getRecursivelyAllFilesInAllSubfolders(new File(base), suffix); }