@Test public void normalizePropagation() { for (int index = 0; index < TransactionOperationFinalizer.propagationNames.size(); index++) { String expected = TransactionOperationFinalizer.propagationNames.get(index), actual = TransactionOperationFinalizer.normalizePropagation(new Operation().put("propagation", index)); assertEquals("Mismatched values for index=" + index, expected, actual); } }
static String normalizePropagation(Operation operation) { int propagation = operation.getInt("propagation", (-1)); if ((propagation >= 0) && (propagation < propagationNames.size())) { return propagationNames.get(propagation); } else { return null; } }
TransactionOperationFinalizer implements OperationFinalizer { static String normalizePropagation(Operation operation) { int propagation = operation.getInt("propagation", (-1)); if ((propagation >= 0) && (propagation < propagationNames.size())) { return propagationNames.get(propagation); } else { return null; } } }
TransactionOperationFinalizer implements OperationFinalizer { static String normalizePropagation(Operation operation) { int propagation = operation.getInt("propagation", (-1)); if ((propagation >= 0) && (propagation < propagationNames.size())) { return propagationNames.get(propagation); } else { return null; } }  }
TransactionOperationFinalizer implements OperationFinalizer { static String normalizePropagation(Operation operation) { int propagation = operation.getInt("propagation", (-1)); if ((propagation >= 0) && (propagation < propagationNames.size())) { return propagationNames.get(propagation); } else { return null; } }  static void register(Operation operation); void finalize(Operation operation, Map<String, Object> richObjects); }
TransactionOperationFinalizer implements OperationFinalizer { static String normalizePropagation(Operation operation) { int propagation = operation.getInt("propagation", (-1)); if ((propagation >= 0) && (propagation < propagationNames.size())) { return propagationNames.get(propagation); } else { return null; } }  static void register(Operation operation); void finalize(Operation operation, Map<String, Object> richObjects);  }