ReadAttribute { public static void main(String[] args) { File file = new File(args[0]); try (HdfFile hdfFile = new HdfFile(file)) { Node node = hdfFile.getByPath(args[1]); Attribute attribute = node.getAttribute(args[2]); Object attributeData = attribute.getData(); System.out.println(ArrayUtils.toString(attributeData)); } }  static void main(String[] args);  }
@Test void testReadingAttributeEarliest() { assertDoesNotThrow(() -> ReadAttribute.main(new String[]{"src/test/resources/hdf5/test_attribute_earliest.hdf5", "/test_group/data", "2d_string"})); }
@Test void testReadingAttributeLatest() { assertDoesNotThrow(() -> ReadAttribute.main(new String[]{"src/test/resources/hdf5/test_attribute_latest.hdf5", "/test_group/data", "2d_string"})); }