accumulo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: Using powermock-api-mockito in tests?
Date Fri, 22 Mar 2013 01:44:33 GMT
I'm not seeing where. Do you have a stack trace? 

----- Original Message -----
From: "David Medinets" <> 
Sent: Thursday, March 21, 2013 9:26:25 PM 
Subject: Re: Using powermock-api-mockito in tests? 

The AccumuloVFSClassLoaderTest tests require ACCUMULO_HOME to be 
defined. It is not defined on my Windows computer. Therefore, the 
tests failed. I argue that a unit test should be independent of the 
underlying system otherwise it is some kind of integration or 
functional test. And in this case, mocking the System.getenv() call 
should be easy to do. 

On Thu, Mar 21, 2013 at 6:40 PM, Dave Marion <> wrote: 
> Out of curiosity, why do you say that " System.getenv() which breaks the tests in AccumuloVFSClassLoaderTest?"
It's worked fine for a while. What is different now? 

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message