Skip to content

Commit

Permalink
Forgot to comment out method contents.
Browse files Browse the repository at this point in the history
  • Loading branch information
lincolnthree committed Aug 26, 2013
1 parent f618bbb commit d7d78ca
Showing 1 changed file with 14 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,17 @@
* http://www.eclipse.org/legal/epl-v10.html
*/

import java.util.concurrent.atomic.AtomicBoolean;

import javax.inject.Inject;

import org.jboss.arquillian.container.test.api.Deployment;
import org.jboss.arquillian.junit.Arquillian;
import org.jboss.forge.addon.projects.Project;
import org.jboss.forge.addon.projects.ProjectFactory;
import org.jboss.forge.addon.projects.ProjectListener;
import org.jboss.forge.addon.resource.DirectoryResource;
import org.jboss.forge.arquillian.AddonDependency;
import org.jboss.forge.arquillian.Dependencies;
import org.jboss.forge.arquillian.archive.ForgeArchive;
import org.jboss.forge.furnace.repositories.AddonDependencyEntry;
import org.jboss.forge.furnace.spi.ListenerRegistration;
import org.jboss.forge.furnace.util.Predicate;
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.junit.Assert;
Expand Down Expand Up @@ -66,20 +62,20 @@ public void testInjectionNotNull()
@Ignore("WELD-1487 - Weld fails to create beans for anonymous types")
public void testCreateProject() throws Exception
{
final AtomicBoolean projectSet = new AtomicBoolean(false);
ListenerRegistration<ProjectListener> registration = projectFactory.addProjectListener(new ProjectListener()
{
@Override
public void projectCreated(Project project)
{
projectSet.set(true);
}
});
Assert.assertNotNull("Should not have returned a null listener registration", registration);
Project project = projectFactory.createTempProject();
registration.removeListener();
Assert.assertNotNull(project);
Assert.assertTrue("Listener was not called", projectSet.get());
// final AtomicBoolean projectSet = new AtomicBoolean(false);
// ListenerRegistration<ProjectListener> registration = projectFactory.addProjectListener(new ProjectListener()
// {
// @Override
// public void projectCreated(Project project)
// {
// projectSet.set(true);
// }
// });
// Assert.assertNotNull("Should not have returned a null listener registration", registration);
// Project project = projectFactory.createTempProject();
// registration.removeListener();
// Assert.assertNotNull(project);
// Assert.assertTrue("Listener was not called", projectSet.get());
}

@Test
Expand Down

0 comments on commit d7d78ca

Please sign in to comment.