Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SEAM-50 disable BookingAgentTest on glassfish
- Loading branch information
1 parent
e1cf8f0
commit 206e50f
Showing
5 changed files
with
35 additions
and
18 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
19 changes: 19 additions & 0 deletions
19
.../src/test/java/org/jboss/seam/examples/booking/booking/TestAuthenticatedUserProducer.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,19 @@ | ||
package org.jboss.seam.examples.booking.booking; | ||
|
||
import javax.enterprise.inject.Produces; | ||
import javax.persistence.EntityManager; | ||
import javax.persistence.PersistenceContext; | ||
|
||
import org.jboss.seam.examples.booking.account.Authenticated; | ||
import org.jboss.seam.examples.booking.model.User; | ||
|
||
public class TestAuthenticatedUserProducer { | ||
@PersistenceContext | ||
EntityManager em; | ||
|
||
@Produces | ||
@Authenticated | ||
public User getRegisteredUser() { | ||
return em.find(User.class, "ike"); | ||
} | ||
} |
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