Skip to content

Commit

Permalink
Minor Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
prateekbaheti committed Apr 27, 2015
1 parent bee541c commit 6b3251d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
import gauge.messages.Spec;

public class DataStoreInitializer implements IMessageProcessor {
@Override
public Messages.Message process(Messages.Message message) {
switch (message.getMessageType()) {
case SuiteDataStoreInit:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ public Messages.Message execute(Set<Method> methods, Messages.Message message, O
return createMessageWithExecutionStatusResponse(message, passingExecution);
}

public Messages.Message executeHooks(Set<Method> beforeSpecHooks, Messages.Message message, SpecificationInfo executionInfo) {
public Messages.Message executeHooks(Set<Method> hooks, Messages.Message message, SpecificationInfo executionInfo) {
MethodExecutor methodExecutor = new MethodExecutor();
Spec.ProtoExecutionResult result;
long totalHooksExecutionTime = 0;
for (Method method : beforeSpecHooks) {
for (Method method : hooks) {
if (methodHasArguments(method, executionInfo)) {
result = methodExecutor.execute(method, executionInfo);
} else {
Expand Down

0 comments on commit 6b3251d

Please sign in to comment.