assertThat("selection", selection, everyItem(orderWithNumber(startsWith("1000"))));
}
@SuppressWarnings("unchecked") @Test public void
orderingExtractedRecords() throws Exception {
Order order = persist(anOrder().containing(
anItem().withNumber("00000001"),
anItem().withNumber("00000002"),
anItem().withNumber("00000003")));
for (LineItem lineItem : order.getLineItems()) {
orderOf(lineItem).set(order);
persist(lineItem);
}
List<LineItem> selection = Select.from(lineItems).