Permalink
Browse files

fix classname references in failing ejb descriptor test cases

  • Loading branch information...
1 parent 4a48d38 commit 2d869451f8b76454f9fd3c5c571ef6529a7e7e1f @rachmatowicz rachmatowicz committed Sep 29, 2011
@@ -38,7 +38,7 @@
public void test1() throws NamingException {
final InitialContext ctx = new InitialContext();
try {
- final DescriptorGreeterBean bean = (DescriptorGreeterBean) ctx.lookup("java:global/ejb-descriptor-test/DescriptorGreeter!DescriptorGreeterBean");
+ final DescriptorGreeterBean bean = (DescriptorGreeterBean) ctx.lookup("java:global/ejb-descriptor-test/DescriptorGreeter!org.jboss.as.test.ejb.descriptor.DescriptorGreeterBean");
final String name = "test1";
final String result = bean.greet(name);
assertEquals("Hi test1", result);
@@ -56,7 +56,7 @@
public void testAnnotated() throws NamingException {
final InitialContext ctx = new InitialContext();
try {
- final AnnotatedGreeterBean bean = (AnnotatedGreeterBean) ctx.lookup("java:global/ejb-descriptor-test/AnnotatedGreeter!AnnotatedGreeterBean");
+ final AnnotatedGreeterBean bean = (AnnotatedGreeterBean) ctx.lookup("java:global/ejb-descriptor-test/AnnotatedGreeter!org.jboss.as.test.ejb.descriptor.AnnotatedGreeterBean");
final String name = "testAnnotated";
final String result = bean.greet(name);
assertEquals("Hi testAnnotated", result);
@@ -52,7 +52,7 @@
public void testAnnotated() throws NamingException {
final InitialContext ctx = new InitialContext();
try {
- final AnnotatedGreeterBean bean = (AnnotatedGreeterBean) ctx.lookup("java:global/ejb-descriptor-test/AnnotatedGreeter!org.jboss.as.test.integration.ejb.descriptor.AnnotatedGreeterBean");
+ final AnnotatedGreeterBean bean = (AnnotatedGreeterBean) ctx.lookup("java:global/ejb-descriptor-test/AnnotatedGreeter!org.jboss.as.test.ejb.descriptor.AnnotatedGreeterBean");
fail("The annotated bean should not be available");
} catch (NameNotFoundException e) {
// good

0 comments on commit 2d86945

Please sign in to comment.