Skip to content

Commit

Permalink
+ Fix code smells
Browse files Browse the repository at this point in the history
  • Loading branch information
PeriDoX committed Jan 13, 2022
1 parent 52f0fb1 commit e4b4206
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,22 +38,22 @@ static void tearDown() {

@Test
void testReadAttribute() {

Node node = hdfFile.getByPath("GROUP");
Attribute attribute = node.getAttribute("VERSION");

Object data = attribute.getData();

Map<String,int[]> dataImpl = (Map<String,int[]>)data;

String key = "myMajor";
assertTrue(dataImpl.containsKey(key));
assertEquals(1,dataImpl.get(key)[0]);

key = "myMinor";
assertTrue(dataImpl.containsKey(key));
assertEquals(0,dataImpl.get(key)[0]);

key = "myPatch";
assertTrue(dataImpl.containsKey(key));
assertEquals(0,dataImpl.get(key)[0]);
Expand Down

0 comments on commit e4b4206

Please sign in to comment.