@Test public void testToString() { StorageInfo storageInfo = new StorageInfo(STORAGE_TYPE, FILE_SYSTEM_TYPE, ACCESS_CAPABILITY, MAX_CAPACITY, FREE_SPACE_IN_BYTES, FREE_SPACE_IN_IMAGES, STORAGE_DESCRIPTION, VOLUME_LABEL); String actual = storageInfo.toString(); assertTrue(actual.contains(StorageInfo.class.getSimpleName())); assertTrue(actual.contains("storageType")); assertTrue(actual.contains("fileSystemType")); assertTrue(actual.contains("accessCapability")); assertTrue(actual.contains("maxCapacity")); assertTrue(actual.contains("freeSpaceInBytes")); assertTrue(actual.contains("freeSpaceInImages")); assertTrue(actual.contains("storageDescription")); assertTrue(actual.contains("volumeLabel")); }
@Override public String toString() { return ToStringBuilder.reflectionToString(this); }
StorageInfo { @Override public String toString() { return ToStringBuilder.reflectionToString(this); } }
StorageInfo { @Override public String toString() { return ToStringBuilder.reflectionToString(this); } StorageInfo(UINT16 storageType, UINT16 fileSystemType,
                       UINT16 accessCapability, UINT64 maxCapacity, UINT64 freeSpaceInBytes, UINT32 freeSpaceInImages,
                       String storageDescription, String volumeLabel
    ); }
StorageInfo { @Override public String toString() { return ToStringBuilder.reflectionToString(this); } StorageInfo(UINT16 storageType, UINT16 fileSystemType,
                       UINT16 accessCapability, UINT64 maxCapacity, UINT64 freeSpaceInBytes, UINT32 freeSpaceInImages,
                       String storageDescription, String volumeLabel
    ); static StorageInfo read(InputStream is); static StorageInfo read(PtpInputStream pis); UINT16 getStorageType(); UINT16 getFileSystemType(); UINT16 getAccessCapability(); UINT64 getMaxCapacity(); UINT64 getFreeSpaceInBytes(); UINT32 getFreeSpaceInImages(); String getStorageDescription(); String getVolumeLabel(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
StorageInfo { @Override public String toString() { return ToStringBuilder.reflectionToString(this); } StorageInfo(UINT16 storageType, UINT16 fileSystemType,
                       UINT16 accessCapability, UINT64 maxCapacity, UINT64 freeSpaceInBytes, UINT32 freeSpaceInImages,
                       String storageDescription, String volumeLabel
    ); static StorageInfo read(InputStream is); static StorageInfo read(PtpInputStream pis); UINT16 getStorageType(); UINT16 getFileSystemType(); UINT16 getAccessCapability(); UINT64 getMaxCapacity(); UINT64 getFreeSpaceInBytes(); UINT32 getFreeSpaceInImages(); String getStorageDescription(); String getVolumeLabel(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }