-
Notifications
You must be signed in to change notification settings - Fork 286
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WELD-1007]; initial wctor fix; TODO on actual generic params usage.
- Loading branch information
Showing
3 changed files
with
78 additions
and
34 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
21 changes: 21 additions & 0 deletions
21
tests-arquillian/src/test/java/org/jboss/weld/tests/smoke/Crasher.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,21 @@ | ||
package org.jboss.weld.tests.smoke; | ||
|
||
import javax.annotation.Nonnull; | ||
|
||
/** | ||
* @author Sam Corbet | ||
* @author <a href="mailto:ales.justin@jboss.org">Ales Justin</a> | ||
*/ | ||
public class Crasher { | ||
protected class NonStaticInner { | ||
public NonStaticInner(@Nonnull Integer a) { | ||
System.out.println("Hi" + a); | ||
} | ||
|
||
protected class NonStaticInner2 { | ||
public NonStaticInner2(@Nonnull Double a) { | ||
System.out.println("Hi" + a); | ||
} | ||
} | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
tests-arquillian/src/test/java/org/jboss/weld/tests/smoke/SmokeTest.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,34 @@ | ||
package org.jboss.weld.tests.smoke; | ||
|
||
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.Assert; | ||
import org.junit.Test; | ||
import org.junit.runner.RunWith; | ||
|
||
import javax.enterprise.inject.Instance; | ||
|
||
/** | ||
* Smoke tests -- check anything unusual. | ||
* | ||
* @author Sam Corbet | ||
* @author <a href="mailto:ales.justin@jboss.org">Ales Justin</a> | ||
*/ | ||
@RunWith(Arquillian.class) | ||
public class SmokeTest { | ||
@Deployment | ||
public static Archive getDeployment() { | ||
return ShrinkWrap.create(BeanArchive.class) | ||
.addPackage(Crasher.class.getPackage()); | ||
} | ||
|
||
@Test | ||
public void testInnerClass(Instance<Crasher> instance) { | ||
Crasher crasher = instance.get(); | ||
Assert.assertNotNull(crasher); | ||
} | ||
|
||
} |