@Test public void testToString() { DeviceInfo deviceInfo = new DeviceInfo( STANDARD_VERSION, VENDOR_EXTENSION_ID, VENDOR_EXTENSION_VERSION, VENDOR_EXTENSION_DESC, FUNCTIONAL_MODE, OPERATIONS_SUPPORTED, EVENTS_SUPPORTED, DEVICE_PROPERTIES_SUPPORTED, CAPTURE_FORMATS, IMAGE_FORMATS, MANUFACTURER, MODEL, DEVICE_VERSION, SERIAL_NUMBER); String actual = deviceInfo.toString(); assertTrue(actual.contains(DeviceInfo.class.getSimpleName())); assertTrue(actual.contains("standardVersion")); assertTrue(actual.contains("vendorExtensionID")); assertTrue(actual.contains("vendorExtensionVersion")); assertTrue(actual.contains("vendorExtensionDesc")); assertTrue(actual.contains("functionalMode")); assertTrue(actual.contains("operationsSupported")); assertTrue(actual.contains("eventsSupported")); assertTrue(actual.contains("devicePropertiesSupported")); assertTrue(actual.contains("captureFormats")); assertTrue(actual.contains("imageFormats")); assertTrue(actual.contains("manufacturer")); assertTrue(actual.contains("model")); assertTrue(actual.contains("deviceVersion")); assertTrue(actual.contains("serialNumber")); }
@Override public String toString() { return ToStringBuilder.reflectionToString(this); }
DeviceInfo { @Override public String toString() { return ToStringBuilder.reflectionToString(this); } }
DeviceInfo { @Override public String toString() { return ToStringBuilder.reflectionToString(this); } DeviceInfo(
            UINT16 standardVersion,
            UINT32 vendorExtensionID, UINT16 vendorExtensionVersion, String vendorExtensionDesc,
            UINT16 functionalMode,
            List<UINT16> operationsSupported, List<UINT16> eventsSupported, List<UINT16> devicePropertiesSupported,
            List<UINT16> captureFormats, List<UINT16> imageFormats,
            String manufacturer, String model, String deviceVersion, String serialNumber); }
DeviceInfo { @Override public String toString() { return ToStringBuilder.reflectionToString(this); } DeviceInfo(
            UINT16 standardVersion,
            UINT32 vendorExtensionID, UINT16 vendorExtensionVersion, String vendorExtensionDesc,
            UINT16 functionalMode,
            List<UINT16> operationsSupported, List<UINT16> eventsSupported, List<UINT16> devicePropertiesSupported,
            List<UINT16> captureFormats, List<UINT16> imageFormats,
            String manufacturer, String model, String deviceVersion, String serialNumber); static DeviceInfo read(InputStream is); static DeviceInfo read(PtpInputStream pis); UINT16 getStandardVersion(); UINT32 getVendorExtensionID(); UINT16 getVendorExtensionVersion(); String getVendorExtensionDesc(); UINT16 getFunctionalMode(); List<UINT16> getOperationsSupported(); List<UINT16> getEventsSupported(); List<UINT16> getDevicePropertiesSupported(); List<UINT16> getCaptureFormats(); List<UINT16> getImageFormats(); String getManufacturer(); String getModel(); String getDeviceVersion(); String getSerialNumber(); @Override int hashCode(); @Override boolean equals(Object o); @Override String toString(); }
DeviceInfo { @Override public String toString() { return ToStringBuilder.reflectionToString(this); } DeviceInfo(
            UINT16 standardVersion,
            UINT32 vendorExtensionID, UINT16 vendorExtensionVersion, String vendorExtensionDesc,
            UINT16 functionalMode,
            List<UINT16> operationsSupported, List<UINT16> eventsSupported, List<UINT16> devicePropertiesSupported,
            List<UINT16> captureFormats, List<UINT16> imageFormats,
            String manufacturer, String model, String deviceVersion, String serialNumber); static DeviceInfo read(InputStream is); static DeviceInfo read(PtpInputStream pis); UINT16 getStandardVersion(); UINT32 getVendorExtensionID(); UINT16 getVendorExtensionVersion(); String getVendorExtensionDesc(); UINT16 getFunctionalMode(); List<UINT16> getOperationsSupported(); List<UINT16> getEventsSupported(); List<UINT16> getDevicePropertiesSupported(); List<UINT16> getCaptureFormats(); List<UINT16> getImageFormats(); String getManufacturer(); String getModel(); String getDeviceVersion(); String getSerialNumber(); @Override int hashCode(); @Override boolean equals(Object o); @Override String toString();  }