Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stub out remaining tests for Chapter 4
git-svn-id: http://anonsvn.jboss.org/repos/weld/ri/trunk@178 1c488680-804c-0410-94cd-c6b725194a0e
- Loading branch information
Showing
11 changed files
with
317 additions
and
31 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
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
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
53 changes: 53 additions & 0 deletions
53
webbeans-ri/src/test/java/org/jboss/webbeans/test/ClientProxyTest.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,53 @@ | ||
package org.jboss.webbeans.test; | ||
|
||
import javax.webbeans.UnproxyableDependencyException; | ||
|
||
import org.testng.annotations.Test; | ||
|
||
@SpecVersion("PDR") | ||
public class ClientProxyTest | ||
{ | ||
|
||
|
||
@Test(groups="clientProxy") @SpecAssertion(section={"4.4", "4.8"}) | ||
public void testClientProxyUsedForNormalScope() | ||
{ | ||
assert false; | ||
} | ||
|
||
@Test(groups="clientProxy") @SpecAssertion(section={"4.4", "4.8"}) | ||
public void testClientProxyNotUsedForPseudoScope() | ||
{ | ||
assert false; | ||
} | ||
|
||
@Test(groups="clientProxy") @SpecAssertion(section="4.4") | ||
public void testClientProxyIsSerializable() | ||
{ | ||
assert false; | ||
} | ||
|
||
@Test(groups="clientProxy", expectedExceptions=UnproxyableDependencyException.class) @SpecAssertion(section="4.4.1") | ||
public void testInjectionPointWithUnproxyableTypeResolvesToNormalScopedWebBean() | ||
{ | ||
assert false; | ||
} | ||
|
||
@Test(groups="clientProxy") @SpecAssertion(section="4.4.2") | ||
public void testClientProxyInvocation() | ||
{ | ||
assert false; | ||
} | ||
|
||
/* | ||
@Test(groups="clientProxy") @SpecAssertion(section="4.4") | ||
public void test | ||
{ | ||
assert false; | ||
} | ||
*/ | ||
|
||
|
||
} |
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
57 changes: 57 additions & 0 deletions
57
webbeans-ri/src/test/java/org/jboss/webbeans/test/InjectionTests.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,57 @@ | ||
package org.jboss.webbeans.test; | ||
|
||
import javax.webbeans.ContextNotActiveException; | ||
import javax.webbeans.NullableDependencyException; | ||
|
||
import org.testng.annotations.Test; | ||
|
||
@SpecVersion("PDR") | ||
public class InjectionTests extends AbstractTest | ||
{ | ||
|
||
@Test(groups="injection") @SpecAssertion(section="4.2") | ||
public void testPrimitiveTypesEquivalentToBoxedTypes() | ||
{ | ||
assert false; | ||
} | ||
|
||
@Test(groups="injection") @SpecAssertion(section="4.2") | ||
public void testInjectionPerformsBoxingIfNecessary() | ||
{ | ||
assert false; | ||
} | ||
|
||
@Test(groups="injection") @SpecAssertion(section="4.2") | ||
public void testInjectionPerformsUnboxingIfNecessary() | ||
{ | ||
assert false; | ||
} | ||
|
||
@Test(groups="injection", expectedExceptions=NullableDependencyException.class) @SpecAssertion(section="4.2") | ||
public void testPrimitiveInjectionPointResolvesToNullableWebBean() | ||
{ | ||
assert false; | ||
} | ||
|
||
@Test(groups="injection", expectedExceptions=ContextNotActiveException.class) @SpecAssertion(section="4.3") | ||
public void testInvokeNormalInjectedWebBeanWhenContextNotActive() | ||
{ | ||
assert false; | ||
} | ||
|
||
@Test(groups="injection") @SpecAssertion(section="4.3") | ||
public void testInovkeDependentScopeWhenContextNotActive() | ||
{ | ||
assert false; | ||
} | ||
|
||
/* | ||
@Test(groups="injection") @SpecAssertion(section="4.2") | ||
public void test | ||
{ | ||
assert false; | ||
} | ||
*/ | ||
} |
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
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
30 changes: 30 additions & 0 deletions
30
webbeans-ri/src/test/java/org/jboss/webbeans/test/ManagerTest.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,30 @@ | ||
package org.jboss.webbeans.test; | ||
|
||
import org.testng.annotations.Test; | ||
|
||
@SpecVersion("PDR") | ||
public class ManagerTest | ||
{ | ||
|
||
@Test(groups={"manager", "injection"}) @SpecAssertion(section="4.8") | ||
public void testInjectingManager() | ||
{ | ||
assert false; | ||
} | ||
|
||
@Test(groups={"manager", "ejb3"}) @SpecAssertion(section="4.8") | ||
public void testManagerLookupInJndi() | ||
{ | ||
assert false; | ||
} | ||
|
||
/* | ||
@Test(groups="manager") @SpecAssertion(section="4.8") | ||
public void test | ||
{ | ||
assert false; | ||
} | ||
*/ | ||
} |
Oops, something went wrong.