Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
WELD-1571 Testcase
- Loading branch information
Showing
3 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
...illian/src/test/java/org/jboss/weld/tests/proxy/superclass/NotSimpleConstructorClass.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,8 @@ | ||
package org.jboss.weld.tests.proxy.superclass; | ||
|
||
public class NotSimpleConstructorClass { | ||
|
||
|
||
public NotSimpleConstructorClass(String value) { | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
tests-arquillian/src/test/java/org/jboss/weld/tests/proxy/superclass/SimpleBean.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,12 @@ | ||
package org.jboss.weld.tests.proxy.superclass; | ||
|
||
import javax.enterprise.context.ApplicationScoped; | ||
|
||
@ApplicationScoped | ||
public class SimpleBean extends NotSimpleConstructorClass { | ||
|
||
public SimpleBean() { | ||
super("nothing"); | ||
} | ||
|
||
} |
26 changes: 26 additions & 0 deletions
26
...ava/org/jboss/weld/tests/proxy/superclass/SuperclassWithConstructorWithArgumentsTest.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,26 @@ | ||
package org.jboss.weld.tests.proxy.superclass; | ||
|
||
import javax.inject.Inject; | ||
|
||
import org.jboss.arquillian.container.test.api.Deployment; | ||
import org.jboss.arquillian.junit.Arquillian; | ||
import org.jboss.shrinkwrap.api.Archive; | ||
import org.jboss.shrinkwrap.api.BeanArchive; | ||
import org.jboss.shrinkwrap.api.ShrinkWrap; | ||
import org.junit.Test; | ||
import org.junit.runner.RunWith; | ||
|
||
@RunWith(Arquillian.class) | ||
public class SuperclassWithConstructorWithArgumentsTest { | ||
@Deployment | ||
public static Archive<?> deploy() { | ||
return ShrinkWrap.create(BeanArchive.class).addPackage(SuperclassWithConstructorWithArgumentsTest.class.getPackage()); | ||
} | ||
|
||
@Inject | ||
private SimpleBean bean; | ||
|
||
@Test | ||
public void testSuperClassWithoutSimpleConstructor() { | ||
} | ||
} |