Skip to content

Commit

Permalink
Arquillian method execute is a bit more strict about how it waits
Browse files Browse the repository at this point in the history
  • Loading branch information
lincolnthree committed Jan 24, 2013
1 parent 0bca93b commit c04e1e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public TestResult invoke(final TestMethodExecutor testMethodExecutor)
{
ServiceRegistry registry = entry.getValue();
Addon addon = entry.getKey();
while (registry == null)
while (!(addon.getStatus().isStarted() || addon.getStatus().isFailed()) || registry == null)
{
/*
* Ensure the addon is fully started and initialized.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import javax.enterprise.event.Observes;
import javax.inject.Inject;

import org.jboss.forge.container.event.PostStartup;
import org.jboss.forge.container.event.Startup;
import org.jboss.forge.environment.Environment;
import org.jboss.forge.resource.DirectoryResource;
import org.jboss.forge.resource.FileResource;
Expand All @@ -20,7 +20,7 @@ public class UIInputHintsRegistrant
@Inject
private Environment environment;

public void initialize(@Observes PostStartup event)
public void initialize(@Observes Startup event)
{
HintsLookup hints = new HintsLookup(environment);
hints.setInputType(FileResource.class, InputTypes.FILE_PICKER);
Expand Down

0 comments on commit c04e1e2

Please sign in to comment.