You can create instances of your components/pages with tapestrys Creator utiltiy class. That would allow you to set your hibernate session on the page (assuming that you have it injected via hivemind at runtime).
We use a system variable given at runtime to tell hibernate where our main config dir is...When running junit (now testng) the jvm sets the system variable to point to a test-data directory where local hibernate conf files are used...Of course our configuration system is a little more complicated in that we have hibernate.local.properties style files that allow you to only override what needs to change from the base properties, but the basic usage might work for you.. jesse On 10/25/05, radone <[EMAIL PROTECTED]> wrote: > > Once more question - is it less effective to configure Hibernate not to > use <Resource > then JDBC connection? > It would solve my problem. > > RB > > radone wrote: > > > Hi, > > could anyone help me how to integrate Tapestry+Hivemind with JUnit ? > > > > The problem is in my web-app exist <Resource ...> of databse > > connection which is not accessible from JUnit. > > > > My questions: > > 1] Exist some simple way how to create db resource when running JUnit > > test ? > > if not > > 2] Is it possible to force using another "hibernate.properties" than > > in where should I redefine <Resource ..> to simple JDBC connection? > > 3] Exists any other way ? > > > > What i need is get the service from Hivemind wired (if possible) > > exactly like in webapp to test its functionality. > > > > Any help would be very appreciated. > > Thanks in advance > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
