Author: scabanovich
Date: 2008-02-12 06:21:46 -0500 (Tue, 12 Feb 2008)
New Revision: 6254
Modified:
trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/ScannerTest.java
Log:
JBIDE-1764 Test added
Modified:
trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/ScannerTest.java
===================================================================
---
trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/ScannerTest.java 2008-02-12
11:15:50 UTC (rev 6253)
+++
trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/ScannerTest.java 2008-02-12
11:21:46 UTC (rev 6254)
@@ -258,6 +258,12 @@
ISeamAnnotatedFactory af = (ISeamAnnotatedFactory)myFactory;
assertTrue("Scope of 'myFactory' must be 'session'",
af.getScope() == ScopeType.SESSION);
+ // g) @Factory getMyFactory2 - no name is set in annotation
+ ISeamFactory myFactory2 = find(fs, "myFactory");
+ assertTrue("Declared factory 'myFactory2' is not found in
'myUser'", myFactory2 != null);
+ ISeamAnnotatedFactory af2 = (ISeamAnnotatedFactory)myFactory2;
+ assertTrue("Scope of 'myFactory' must be 'session'",
af2.getScope() == ScopeType.SESSION);
+
}
private IBijectedAttribute findBijectedAttribute(Set<IBijectedAttribute> bijected,
String name) {
Show replies by date