Author: dgolovin
Date: 2008-11-03 20:00:16 -0500 (Mon, 03 Nov 2008)
New Revision: 11496
Modified:
branches/jbosstools-3.0.0.Beta1/seam/tests/org.jboss.tools.seam.core.test/projects/TestScanner/JavaSource/demo/User.java
Log:
@Role and @Roles annotations were added to test class to increase test coverage
Modified:
branches/jbosstools-3.0.0.Beta1/seam/tests/org.jboss.tools.seam.core.test/projects/TestScanner/JavaSource/demo/User.java
===================================================================
---
branches/jbosstools-3.0.0.Beta1/seam/tests/org.jboss.tools.seam.core.test/projects/TestScanner/JavaSource/demo/User.java 2008-11-04
00:22:41 UTC (rev 11495)
+++
branches/jbosstools-3.0.0.Beta1/seam/tests/org.jboss.tools.seam.core.test/projects/TestScanner/JavaSource/demo/User.java 2008-11-04
01:00:16 UTC (rev 11496)
@@ -12,9 +12,19 @@
import javax.persistence.Entity;
+import org.jboss.seam.Component;
import org.jboss.seam.ScopeType;
-import org.jboss.seam.annotations.*;
-import org.jboss.seam.Component;
+import org.jboss.seam.annotations.Create;
+import org.jboss.seam.annotations.Destroy;
+import org.jboss.seam.annotations.Factory;
+import org.jboss.seam.annotations.In;
+import org.jboss.seam.annotations.Install;
+import org.jboss.seam.annotations.Name;
+import org.jboss.seam.annotations.Out;
+import org.jboss.seam.annotations.Role;
+import org.jboss.seam.annotations.Roles;
+import org.jboss.seam.annotations.Scope;
+import org.jboss.seam.annotations.Unwrap;
/**
* Created by JBoss Developer Studio
@@ -24,6 +34,12 @@
@Scope(ScopeType.APPLICATION)
@Entity
@Install(precedence=Install.FRAMEWORK)
+@Role(name="roleName1", scope=ScopeType.SESSION)
+@Roles({
+ @Role(name="roleName2", scope=ScopeType.SESSION),
+ @Role(name="roleName3", scope=ScopeType.SESSION),
+ @Role(name="roleName4", scope=ScopeType.SESSION)
+})
public class User {
Show replies by date