assertTrue(layer.getFilter() instanceof Id);
assertEquals(features[0].getID(), ((Id)layer.getFilter()).getIDs().toArray(new String[0])[0]);
assertEquals(features[0], map.getEditManager().getEditFeature());
assertEquals("active map should be the map of the issue", map, ApplicationGIS.getActiveMap()); //$NON-NLS-1$
ReferencedEnvelope env = new ReferencedEnvelope(features[0].getBounds());
assertTrue("Map must contain feature", map.getViewportModel().getBounds().contains((Envelope)env.transform(layer.getCRS(), true,5))); //$NON-NLS-1$
}
@Test
public void testSetDescriptionEvents() throws Exception {
FeatureIssue issue=IssuesListTestHelper.createFeatureIssue("Issue"); //$NON-NLS-1$