Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
56 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
tests/src/test/java/org/jboss/weld/tests/beanManager/annotation/ManagerAnnotationTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
package org.jboss.weld.tests.beanManager.annotation; | ||
|
||
import javax.persistence.PersistenceContext; | ||
|
||
import org.jboss.testharness.impl.packaging.Artifact; | ||
import org.jboss.weld.test.AbstractWeldTest; | ||
import org.testng.annotations.Test; | ||
|
||
@Artifact | ||
public class ManagerAnnotationTest extends AbstractWeldTest | ||
{ | ||
|
||
@Test | ||
public void testIsQualifier() throws Exception | ||
{ | ||
assert !getCurrentManager().isQualifier(PersistenceContext.class); | ||
} | ||
|
||
@Test | ||
public void testIsInterceptorBinding() throws Exception | ||
{ | ||
assert !getCurrentManager().isInterceptorBinding(PersistenceContext.class); | ||
} | ||
|
||
@Test | ||
public void testIsNormalScope() throws Exception | ||
{ | ||
assert !getCurrentManager().isNormalScope(PersistenceContext.class); | ||
} | ||
|
||
@Test | ||
public void testIsPassivatingScope() throws Exception | ||
{ | ||
assert !getCurrentManager().isPassivatingScope(PersistenceContext.class); | ||
} | ||
|
||
@Test | ||
public void testIsScope() throws Exception | ||
{ | ||
assert !getCurrentManager().isScope(PersistenceContext.class); | ||
} | ||
|
||
@Test | ||
public void testIsStereotype() throws Exception | ||
{ | ||
assert !getCurrentManager().isStereotype(PersistenceContext.class); | ||
} | ||
|
||
|
||
} |