jtucker - your suggestion on where to place the config files for testing got
things working - thanks very much!
as to putting things in the src/main/resources - I do not plan to use the test
configuration for deployment - that's why I use the test-classes location.
Now, I am having one new problem....
| @Test
| public void test_SessionStarter_create_delete_User() throws Exception {
|
| new Script() {
|
| @Override
| protected void updateModelValues() {
|
| log.info("updateModelValues()");
|
| User user = (User)Component.getInstance("user", true);
| log.info("user -> "+user);
| assert user != null;
| ....
| }
|
| ...
| }.run();
| }
|
The above assertion is failing - it shouldn't because in the user class, I
have defined:
| @Name("user")
| @Scope(ScopeType.SESSION)
| public class User extends BaseEntity implements Serializable {
|
| ....
| }
|
Now it looks like Seam itself is not getting initialized/loaded but the
microcontainer....
Any suggestions for this?
Thanks
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954039#3954039
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954039
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user