use of com.thoughtworks.go.server.dao.handlers.BuildStateTypeHandlerCallback in project gocd by gocd.
the class BuildStateTypeHandlerCallbackTest method shouldSerialize.
@Test
public void shouldSerialize() throws SQLException {
PreparedStatement ps = mock(PreparedStatement.class);
BuildStateTypeHandlerCallback callback = new BuildStateTypeHandlerCallback(JobState.class);
callback.setParameter(ps, 42, JobState.Completed, null);
verify(ps).setString(42, "Completed");
verifyNoMoreInteractions(ps);
}
Aggregations