use of com.developmentontheedge.be5.operation.OperationResult in project be5 by DevelopmentOnTheEdge.
the class StandardOperationsTest method executeEditWithParams.
private void executeEditWithParams(String params) {
when(SqlServiceMock.mock.select(any(), any(), any())).thenReturn(getDps(ImmutableMap.of("name", "TestName", "value", 12345, "ID", 12L)));
OperationResult operationResult = executeOperation("testtableAdmin", "All records", "Edit", "12", params).getSecond();
assertEquals(OperationResult.redirect("table/testtableAdmin/All records"), operationResult);
verify(SqlServiceMock.mock).select(eq("SELECT * FROM testtableAdmin WHERE ID =?"), any(), eq(12L));
}
Aggregations