Search in sources :

Example 6 with TodoEntry

use of com.consol.citrus.samples.todolist.model.TodoEntry in project citrus-samples by christophd.

the class JdbcTodoListDao method convertToTodoEntry.

private List<TodoEntry> convertToTodoEntry(final ResultSet resultSet) throws SQLException {
    final List<TodoEntry> list = new ArrayList<>();
    while (resultSet.next()) {
        final String id = resultSet.getString(1);
        final String title = resultSet.getString(2);
        final String description = resultSet.getString(3);
        list.add(new TodoEntry(UUID.fromString(id), title, description));
    }
    return list;
}
Also used : ArrayList(java.util.ArrayList) TodoEntry(com.consol.citrus.samples.todolist.model.TodoEntry)

Aggregations

TodoEntry (com.consol.citrus.samples.todolist.model.TodoEntry)6 CitrusTest (com.consol.citrus.annotations.CitrusTest)2 TestContext (com.consol.citrus.context.TestContext)2 Attachment (com.consol.citrus.samples.todolist.model.Attachment)2 UUID (java.util.UUID)2 Test (org.testng.annotations.Test)2 ByteArrayOutputStream (java.io.ByteArrayOutputStream)1 IOException (java.io.IOException)1 ArrayList (java.util.ArrayList)1 SoapMessage (org.springframework.ws.soap.SoapMessage)1