Refactored parseAttrs: moved from GlusterFileChannel to GlusterFileAttributes. Made it a static method to enable its use in GFChannel. Modified the unit tests for GFAttributes and GFChannel to reflect this refactoring.
Edited comment
Renamed "perms" map to "modeToPerms" to reflect its purpose. Created an inverse map called "permsToMode." One is utilized by permissions, the other is utilized by parseAttrs.
Changed a double call to contains followed by get on the permsToMode map with a single call to get and a check for null (in GlusterFileAttributes). Moved static methods to group them together. Removed unnecessary comments. Used PowerMockito to stub the calls made to the static parseAttrs in both GLFAttributesTest (testParseAttrs) and GLFChannelTest (initTestHelper).
Modified testParseAttributes to no longer stub the method under test.
Removed unnecessary use of @RunWith and @PrepareForTest annotations.
Merge pull request #4 from FIU-SCIS-Senior-Project-2014-Fall/parseattrs

Merged!