• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Log4J logging during WOUnit tests
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Log4J logging during WOUnit tests


  • Subject: Re: Log4J logging during WOUnit tests
  • From: Henrique Prange <email@hidden>
  • Date: Tue, 10 Apr 2012 14:16:29 -0300

Hi Paul,

Properties files are not loaded when tests are executed by JUnit. There is an issue [1] for that problem. The current workaround is to load the Properties files manually or set the required properties in a static method annotated with @BeforeClass.

I'll try to spend some time with WOUnit since there are too many open bugs in the tracker.

[1]https://github.com/hprange/wounit/issues/24

Cheers,

Henrique

On 10/04/2012, at 02:32, Paul Hoadley wrote:

> Hi Henrique,
>
> Should Log4J logging in EOs under test just work during WOUnit testing?  The EOs and WOUnit tests are in a single framework.  I have Properties.paulh in that framework where I'm setting log levels and properties for a console appender.  I can see the properties get picked up at launch.  Is there something else I need to do to kick start Log4J logging here?  I'm getting no output to the console when I'm expecting it.
>
>
> --
> Paul.
>
> http://logicsquad.net/
>
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Log4J logging during WOUnit tests
      • From: Paul Hoadley <email@hidden>
References: 
 >Log4J logging during WOUnit tests (From: Paul Hoadley <email@hidden>)

  • Prev by Date: Re: [ANN] WOInject 1.0
  • Next by Date: Re: 401 Authorization explained
  • Previous by thread: Log4J logging during WOUnit tests
  • Next by thread: Re: Log4J logging during WOUnit tests
  • Index(es):
    • Date
    • Thread