accumulo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Medinets <>
Subject Re: Using powermock-api-mockito in tests?
Date Fri, 22 Mar 2013 01:58:18 GMT
Dave, you were very close. Here is the mocking code that I used.

      Map<String, String> mockSystemProperties = new HashMap<String, String>();
      mockSystemProperties.put("ACCUMULO_HOME", System.getenv("HOME"));

      PowerMock.mockStaticPartial(System.class, "getenv");

I'd like write a JIRA ticket and commit this code. I'll wait until
tomorrow for feedback though. No rush for this kind of change.

The message that started this investigation was:

Could not find file with URI "/lib/ext/[^.].*.jar" because it is a
relative path, and no base URI was provided.

It occured on line 135 of because
ACCUMULO_HOME was blank and therefore no base URI was provided.

View raw message