use of com.airhacks.enhydrator.transform.RowTransformer in project enhydrator by AdamBien.
the class PumpTest method postRowTransformerInitialization.
@Test
public void postRowTransformerInitialization() {
Map<String, Object> bindings = new HashMap<>();
bindings.put("date", new Date());
RowTransformer transformer = mock(RowTransformer.class);
Pump pump = new Pump.Engine().homeScriptFolder(EXISTING_HOME_FOLDER, bindings).endWith(transformer).build();
verify(transformer).init(bindings);
}
use of com.airhacks.enhydrator.transform.RowTransformer in project enhydrator by AdamBien.
the class PumpTest method preRowTransformerInitialization.
@Test
public void preRowTransformerInitialization() {
Map<String, Object> bindings = new HashMap<>();
bindings.put("date", new Date());
RowTransformer transformer = mock(RowTransformer.class);
Pump pump = new Pump.Engine().homeScriptFolder(EXISTING_HOME_FOLDER, bindings).startWith(transformer).build();
verify(transformer).init(bindings);
}
Aggregations