[Esapi-user] [Esapi-dev] ESAPI Question

Chris Schmidt chris.schmidt at owasp.org
Tue Jul 12 20:52:06 EDT 2011


It sounds more like you are trying to unit test your own code that is using esapi, is that correct? If so - you will need to mock up requests and call setCurrent on httpitiliyies with your mock requests prior to each test running (setup) and clearcurrent after each (teardown)

Sent from my iPwn

On Jul 12, 2011, at 5:23 PM, Jim Manico <jim.manico at owasp.org> wrote:

> Can you send us your log file entries illustrating this problem in detail?
> 
> - Jim
> 
> 
>> 
>> We encountered “org.owasp.esapi.errors.ConfigurationException” during
>> unit testing. The JUnit test isn't running in-container as ESAPI is. We
>> could implement a mock object, but the tests can't verify that ESAPI is
>> returning the correct value since it has to run in container. Does
>> anyone have good suggestions for the problem?
>> 
>> Thanks.
>> 
>> YanYan
>> 
>> 
>> 
>> 
>> 
>> 
>> _______________________________________________
>> Esapi-dev mailing list
>> Esapi-dev at lists.owasp.org
>> https://lists.owasp.org/mailman/listinfo/esapi-dev
> 
> _______________________________________________
> Esapi-user mailing list
> Esapi-user at lists.owasp.org
> https://lists.owasp.org/mailman/listinfo/esapi-user


More information about the Esapi-user mailing list