private Class<? extends RowsMatchStrategy> detectStrategyClass(CommandCall commandCall) { String strategy = commandCall.getParameter("matchStrategy", "match-strategy"); if (strategy == null || DefaultMatchStrategy.DEFAULT_STRATEGY_NAME.equalsIgnoreCase(strategy)) { return DefaultMatchStrategy.class; } Class<? extends RowsMatchStrategy> strategyClass = findFirstExistingClass(DEFAULT_STRATEGIES_PACKAGE + strategy + DEFAULT_STRATEGIES_SUFFIX, strategy); if (strategyClass == null) { throw new IllegalArgumentException("MatchStrategy '" + strategy + "' is not found"); } return strategyClass; }
private Class<? extends RowsMatchStrategy> detectStrategyClass(CommandCall commandCall) { String strategy = commandCall.getParameter("matchStrategy", "match-strategy"); if (strategy == null || DefaultMatchStrategy.DEFAULT_STRATEGY_NAME.equalsIgnoreCase(strategy)) { return DefaultMatchStrategy.class; } Class<? extends RowsMatchStrategy> strategyClass = findFirstExistingClass(DEFAULT_STRATEGIES_PACKAGE + strategy + DEFAULT_STRATEGIES_SUFFIX, strategy); if (strategyClass == null) { throw new IllegalArgumentException("MatchStrategy '" + strategy + "' is not found"); } return strategyClass; }
private ImplementationStatus getImplementationStatus(CommandCall node) { // by default the implementation status is expected to pass ImplementationStatus implementationStatus = ImplementationStatus.EXPECTED_TO_PASS; // if there's a status param, it overrides expected to pass String params = node.getParameter("status"); if (params != null) { implementationStatus = ImplementationStatus.implementationStatusFor(params); } // if there's a status modifier and there's a status for the example, it overrides status param if (implementationStatusModifier != null) { ImplementationStatus runtimeImplementation = implementationStatusModifier.getStatusForExample(exampleDefinition(node.getElement())); if (runtimeImplementation != null) { implementationStatus = runtimeImplementation; } } return implementationStatus; }
private ImplementationStatus getImplementationStatus(CommandCall node) { // by default the implementation status is expected to pass ImplementationStatus implementationStatus = ImplementationStatus.EXPECTED_TO_PASS; // if there's a status param, it overrides expected to pass String params = node.getParameter("status"); if (params != null) { implementationStatus = ImplementationStatus.implementationStatusFor(params); } // if there's a status modifier and there's a status for the example, it overrides status param if (implementationStatusModifier != null) { ImplementationStatus runtimeImplementation = implementationStatusModifier.getStatusForExample(exampleDefinition(node.getElement())); if (runtimeImplementation != null) { implementationStatus = runtimeImplementation; } } return implementationStatus; }
columnCommand.verify(evaluator, backgroundResultRecorder, fixture); String matchingRole = columnCommand.getParameter("matchingRole", "matching-role"); if (matchingRole != null && matchingRole.equalsIgnoreCase("key")) { total += backgroundResultRecorder.getTotalCount();
columnCommand.verify(evaluator, backgroundResultRecorder, fixture); String matchingRole = columnCommand.getParameter("matchingRole", "matching-role"); if (matchingRole != null && matchingRole.equalsIgnoreCase("key")) { total += backgroundResultRecorder.getTotalCount();