Skip to content

Commit

Permalink
Ported the event bus tests (Chapter 8) to the TCK. Tests still marked…
Browse files Browse the repository at this point in the history
… broken till TCK functionality is complete.

git-svn-id: http://anonsvn.jboss.org/repos/weld/ri/trunk@999 1c488680-804c-0410-94cd-c6b725194a0e
  • Loading branch information
drallen committed Jan 16, 2009
1 parent 54c067e commit d9f5033
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
Expand Up @@ -11,6 +11,14 @@
import org.jboss.webbeans.bean.SimpleBean;
import org.jboss.webbeans.tck.api.Beans;

/**
* Implements the Beans SPI for the TCK specifically for the JBoss RI.
*
* @author Shane Bryzak
* @author Pete Muir
* @author David Allen
*
*/
public class BeansImpl implements Beans
{

Expand All @@ -36,4 +44,27 @@ public <T> Bean<T> createEnterpriseBean(Class<T> clazz)
return EnterpriseBean.of(clazz, CurrentManager.rootManager());
}

public boolean isEnterpriseBean(Class<?> clazz)
{
return CurrentManager.rootManager().getEjbDescriptorCache().containsKey(clazz);
}

public boolean isEntityBean(Class<?> clazz)
{
// TODO Auto-generated method stub
return false;
}

public boolean isStatefulBean(Class<?> clazz)
{
// TODO Auto-generated method stub
return false;
}

public boolean isStatelessBean(Class<?> clazz)
{
// TODO Auto-generated method stub
return false;
}

}
@@ -1,6 +1,7 @@
package org.jboss.webbeans.test.tck;

import org.jboss.webbeans.context.AbstractContext;
import org.jboss.webbeans.context.DependentContext;
import org.jboss.webbeans.context.RequestContext;
import org.jboss.webbeans.tck.api.Contexts;

Expand All @@ -21,6 +22,11 @@ public void setInactive(AbstractContext context)
{
context.setActive(false);
}

public AbstractContext getDependentContext()
{
return DependentContext.INSTANCE;
}



Expand Down

0 comments on commit d9f5033

Please sign in to comment.