AbstractEasyMockLogPolicyBase visibility is default

3 views
Skip to first unread message

ron.difrango

unread,
Feb 8, 2012, 1:44:11 PM2/8/12
to PowerMock
On our project, we have our own wrappers around SLF4J logging,
therefore I wanted to implement a logging policy. I looked
Log4jMockPolicy and saw that it inherited from
AbstractEasyMockLogPolicyBase. And in looking at
AbstractEasyMockLogPolicyBase it had everything I wanted, so I was
going to extend from it. The problem is that
AbstractEasyMockLogPolicyBase has default visibility and therefore
can't be used and/or extended.

Any chance of getting this fixed? In the mean time, I'm going to roll
my own.

ron.difrango

unread,
Feb 8, 2012, 4:07:58 PM2/8/12
to PowerMock
Well, it turns out, I needed to do this following the Wiki page on the
topic any ways. Nice work on the documentation!

Johan Haleby

unread,
Feb 9, 2012, 2:17:59 AM2/9/12
to powe...@googlegroups.com
Hi,

Would it be possible to extend from the Slf4jMockPolicy instead? I can make the AbstractEasyMockLogPolicyBase public if you still think you need it. 

/Johan

--
You received this message because you are subscribed to the Google Groups "PowerMock" group.
To post to this group, send email to powe...@googlegroups.com.
To unsubscribe from this group, send email to powermock+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/powermock?hl=en.


ron.difrango

unread,
Feb 21, 2012, 12:50:28 PM2/21/12
to PowerMock
Johan,

After thinking about it some more, I think my best course of action is
to just start from scratch and implement the PowerMockPolicy
directly. Thanks for the offer though.

Ron

On Feb 9, 2:17 am, Johan Haleby <johan.hal...@gmail.com> wrote:
> Hi,
>
> Would it be possible to extend from the Slf4jMockPolicy instead? I can make
> the AbstractEasyMockLogPolicyBase public if you still think you need it.
>
> /Johan
>
Reply all
Reply to author
Forward
0 new messages