You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Alec Swan <al...@gmail.com> on 2011/03/12 01:29:09 UTC

Large session store in target/work directory when running tests

Hello,

I have a problem with my tests writing too much stuff in the session
store located in target/work directory. This problem was discussed in
this thread http://markmail.org/thread/aaa2ub2ltcuhpqub#query:wicketmockservlet%20file%20store+page:1+mid:p3gf5wq75qi64lsp+state:results
.

I followed the recommendation by overriding newSessionStore() as shown
below, but still see a bunch of files created in work/target
directory. What am I doing wrong?

@Override
 protected ISessionStore newSessionStore() {
      return new HttpSessionStore(this);
 }

Thanks

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


RE: Large session store in target/work directory when running tests

Posted by John Owen <jo...@globalscape.com>.
We had the same issue awhile back and this worked for us. We had to clean out the existing files in our build folder first to see the results.

-----Original Message-----
From: Alec Swan [mailto:alecswan@gmail.com] 
Sent: Friday, March 11, 2011 6:29 PM
To: users@wicket.apache.org
Subject: Large session store in target/work directory when running tests

Hello,

I have a problem with my tests writing too much stuff in the session
store located in target/work directory. This problem was discussed in
this thread http://markmail.org/thread/aaa2ub2ltcuhpqub#query:wicketmockservlet%20file%20store+page:1+mid:p3gf5wq75qi64lsp+state:results
.

I followed the recommendation by overriding newSessionStore() as shown
below, but still see a bunch of files created in work/target
directory. What am I doing wrong?

@Override
 protected ISessionStore newSessionStore() {
      return new HttpSessionStore(this);
 }

Thanks

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Large session store in target/work directory when running tests

Posted by Alec Swan <al...@gmail.com>.
Martin,

Here is an example:
target\work\WicketMockServlet-filestore\4996\3143\f107dd96_6e29_4676_a998_767fcb204a0c\pm-null

Thanks

On Sun, Mar 13, 2011 at 3:00 PM, Martin Grigorov <mg...@apache.org> wrote:
> On Sat, Mar 12, 2011 at 2:29 AM, Alec Swan <al...@gmail.com> wrote:
>
>> Hello,
>>
>> I have a problem with my tests writing too much stuff in the session
>> store located in target/work directory. This problem was discussed in
>> this thread
>> http://markmail.org/thread/aaa2ub2ltcuhpqub#query:wicketmockservlet%20file%20store+page:1+mid:p3gf5wq75qi64lsp+state:results
>> .
>>
>> I followed the recommendation by overriding newSessionStore() as shown
>> below, but still see a bunch of files created in work/target
>> directory. What am I doing wrong?
>>
>
> What kind of files ?
>
>>
>> @Override
>>  protected ISessionStore newSessionStore() {
>>      return new HttpSessionStore(this);
>>  }
>>
>> Thanks
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
>
> --
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com <http://jweekend.com/>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Large session store in target/work directory when running tests

Posted by Martin Grigorov <mg...@apache.org>.
On Sat, Mar 12, 2011 at 2:29 AM, Alec Swan <al...@gmail.com> wrote:

> Hello,
>
> I have a problem with my tests writing too much stuff in the session
> store located in target/work directory. This problem was discussed in
> this thread
> http://markmail.org/thread/aaa2ub2ltcuhpqub#query:wicketmockservlet%20file%20store+page:1+mid:p3gf5wq75qi64lsp+state:results
> .
>
> I followed the recommendation by overriding newSessionStore() as shown
> below, but still see a bunch of files created in work/target
> directory. What am I doing wrong?
>

What kind of files ?

>
> @Override
>  protected ISessionStore newSessionStore() {
>      return new HttpSessionStore(this);
>  }
>
> Thanks
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>


-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com <http://jweekend.com/>