I have a small database table as follows:
select * from customers;
+---------------+---------------+-------------------+-------------------+
| date | customerTitle | customerBill | status |
+---------------+---------------+-------------------+-------------------+
| 1441478000000 | MR | 000-000-100-0001 | approve |
| 1442478000000 | MR | 000-000-200-0002 | approve |
| 1443478000000 | MISS | 000-000-300-0003 | approve |
| 1445478000000 | MRS | 000-000-400-0004 | approve |
+---------------+---------------+-------------------+-------------------+
4 rows in set (0.00 sec)
Currently, I query some of the fields in a column/row individually. Is there a way I can just get all the fields from this MySQL table and then assert it against a stored list of values and check that all columns, rows and fields match with expected?
How do I achieve this using code in Java?