@Override @Test public void testBug352214() { container.getResourceDescriptions(); // initialize uri map ResourceDescriptionChangeEvent event = new ResourceDescriptionChangeEvent(Collections.<IResourceDescription.Delta>singletonList( new ChangedResourceDescriptionDelta(resourceDescription, null))); simulateEmpty = true; container.descriptionsChanged(event); assertEquals(0, container.getResourceDescriptionCount()); assertTrue(Iterables.all(container.getResourceDescriptions(), Predicates.notNull())); assertFalse(container.hasResourceDescription(uri)); assertNull(container.getResourceDescription(uri)); }
protected ChangedResourceDescriptionDelta createDelta(IResourceDescription.Delta delta, IResourceDescription.Delta prev) { return new ChangedResourceDescriptionDelta(prev.getOld(), delta.getNew()); }