Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add missing test, move osgi bundle to sub folder
- Loading branch information
Showing
5 changed files
with
61 additions
and
21 deletions.
There are no files selected for viewing
File renamed without changes.
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
21 changes: 21 additions & 0 deletions
21
...oss/weld/tests/resource/producer/non/dependent/NonDependentResourceProducerFieldTest.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.resource.producer.non.dependent; | ||
|
||
import org.jboss.testharness.impl.packaging.Artifact; | ||
import org.jboss.testharness.impl.packaging.ExpectedDeploymentException; | ||
import org.jboss.weld.exceptions.DefinitionException; | ||
import org.jboss.weld.test.AbstractWeldTest; | ||
import org.testng.annotations.Test; | ||
|
||
@Artifact | ||
@ExpectedDeploymentException(DefinitionException.class) | ||
public class NonDependentResourceProducerFieldTest extends AbstractWeldTest | ||
{ | ||
|
||
@Test(groups="incontainer-broken") | ||
// JBoss AS not reporting the right exception | ||
public void test() | ||
{ | ||
assert false; | ||
} | ||
|
||
} |
17 changes: 17 additions & 0 deletions
17
.../src/test/java/org/jboss/weld/tests/resource/producer/non/dependent/ResourceProducer.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,17 @@ | ||
package org.jboss.weld.tests.resource.producer.non.dependent; | ||
|
||
import javax.enterprise.context.ApplicationScoped; | ||
import javax.enterprise.inject.Produces; | ||
import javax.persistence.EntityManager; | ||
import javax.persistence.PersistenceContext; | ||
|
||
public class ResourceProducer | ||
{ | ||
|
||
@SuppressWarnings("unused") | ||
@Produces | ||
@ApplicationScoped | ||
@PersistenceContext | ||
private EntityManager entityManager; | ||
|
||
} |