SimpleSearchLayout extends AbstractModelSearchLayout<ID, T> { public SimpleSearchLayout(BaseService<ID, T> service, EntityModel<T> entityModel, QueryType queryType, FormOptions formOptions, SortOrder<?> sortOrder, FetchJoinInformation... joins) { super(service, entityModel, queryType, formOptions, sortOrder, joins); } SimpleSearchLayout(BaseService<ID, T> service, EntityModel<T> entityModel, QueryType queryType,
			FormOptions formOptions, SortOrder<?> sortOrder, FetchJoinInformation... joins); List<String> getColumnThresholds(); @Override ModelBasedSearchForm<ID, T> getSearchForm(); void setColumnThresholds(List<String> columnThresholds); @Override void setSearchValue(String propertyId, Object value); @Override void setSearchValue(String propertyId, Object value, Object auxValue);  }
@Test public void testSimpleSearchLayout() { SimpleSearchLayout<Integer, TestEntity> layout = createLayout(new FormOptions().setShowIterationButtons(true)); layout.build(); assertTrue(layout.getAddButton().isVisible()); assertTrue(layout.getEditButton().isVisible()); assertFalse(layout.getRemoveButton().isVisible()); assertEquals("name", layout.getSortOrders().get(0).getSorted()); TestEntity entity = layout.createEntity(); assertNotNull(entity); layout.getGridWrapper().forceSearch(); assertEquals(3, layout.getGridWrapper().getDataProviderSize()); layout.select(e3); layout.detailsMode(e3); assertEquals(2, layout.getEditForm().getNextButtons().size()); layout.getEditForm().getNextButtons().iterator().next().click(); assertEquals(e2, layout.getEditForm().getEntity()); assertTrue(layout.hasPrevEntity()); assertTrue(layout.hasNextEntity()); assertEquals(2, layout.getEditForm().getPreviousButtons().size()); layout.getEditForm().getPreviousButtons().iterator().next().click(); assertEquals(e3, layout.getEditForm().getEntity()); }