assertThat(image.fileUrl).matches(urlPattern); assertThat(image.previewUrl).matches(urlPattern); assertThat(image.sampleUrl).matches(urlPattern); assertThat(image.webUrl).matches(urlPattern); assertThat(image.id).isNotEmpty().matches(integerPattern); if (image.parentId != null && !image.parentId.isEmpty()) assertThat(image.parentId).matches(integerPattern); else Log.w(TAG, String.format(Locale.US, "No parent ID for image: %s", image.webUrl)); if (image.pixivId != null) assertThat(image.pixivId).isNotEmpty().matches(integerPattern); else Log.w(TAG, String.format(Locale.US, "No Pixiv ID for image: %s", image.webUrl));