protected Object invoke(FixtureInteraction interaction, Method method, Object[] arguments) throws Throwable { return interaction.methodInvoke(method, this, arguments); }
protected MethodExecutionResult findAndInvoke(String methodName, Object[] args, Object instance) throws Throwable { FixtureInteraction interaction = context.getInteraction(); return interaction.findAndInvoke(methodName, instance, args); } }
public void create(String instanceName, String className, Object[] args) throws SlimError, IllegalArgumentException, IllegalAccessException, InvocationTargetException, InstantiationException { Object potentialActor = variables.getStored(className); if (potentialActor != null && !(potentialActor instanceof String)) { addToInstancesOrLibrary(instanceName, potentialActor); } else { String replacedClassName = variables .replaceSymbolsInString(className); Object instance = interaction.createInstance(paths, replacedClassName, replaceSymbols(args)); addToInstancesOrLibrary(instanceName, instance); } }
protected MethodExecutionResult findAndInvoke(String methodName, Object[] args, Object instance) throws Throwable { FixtureInteraction interaction = context.getInteraction(); return interaction.findAndInvoke(methodName, instance, args); } }
public void create(String instanceName, String className, Object[] args) throws SlimError, IllegalArgumentException, IllegalAccessException, InvocationTargetException, InstantiationException { Object potentialActor = variables.getStored(className); if (potentialActor != null && !(potentialActor instanceof String)) { addToInstancesOrLibrary(instanceName, potentialActor); } else { String replacedClassName = variables .replaceSymbolsInString(className); Object instance = interaction.createInstance(paths, replacedClassName, replaceSymbols(args)); addToInstancesOrLibrary(instanceName, instance); } }
@Override public Object aroundSlimInvoke(FixtureInteraction fixtureInteraction, Method method, Object... arguments) throws Throwable { METHODS.add(method.getName()); return fixtureInteraction.methodInvoke(method, this, arguments); }
@Override public Object aroundSlimInvoke(FixtureInteraction fixtureInteraction, Method method, Object... arguments) throws Throwable { METHODS.add(method.getName()); return fixtureInteraction.methodInvoke(method, this, arguments); }