@Test void testToEditorSort() { String attr = "attr"; Sort sort = new Sort(of(new Sort.Order(attr, Sort.Direction.ASC))); EditorSort editorSort = sortMapper.toEditorSort(sort); assertEquals(create(of(EditorOrder.create(attr, "ASC"))), editorSort); }
EditorSort toEditorSort(Sort sort) { if (sort == null) { return null; } return EditorSort.create(toEditorOrders(sort)); }
SortMapper { EditorSort toEditorSort(Sort sort) { if (sort == null) { return null; } return EditorSort.create(toEditorOrders(sort)); } }
SortMapper { EditorSort toEditorSort(Sort sort) { if (sort == null) { return null; } return EditorSort.create(toEditorOrders(sort)); }  }
SortMapper { EditorSort toEditorSort(Sort sort) { if (sort == null) { return null; } return EditorSort.create(toEditorOrders(sort)); }   }
SortMapper { EditorSort toEditorSort(Sort sort) { if (sort == null) { return null; } return EditorSort.create(toEditorOrders(sort)); }    }