Skip to content

Commit

Permalink
change filename and order
Browse files Browse the repository at this point in the history
Signed-off-by: tobiasKaminsky <[email protected]>
  • Loading branch information
tobiasKaminsky committed Nov 21, 2023
1 parent 84517be commit a86b6b5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/src/androidTest/java/com/owncloud/android/UploadIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ public void testMetadata() throws IOException, AccountUtils.AccountNotFoundExcep
testOnlyOnServer(NextcloudVersion.nextcloud_27);

File file = getFile("gps.jpg");
String remotePath = "/gps.jpg";
String remotePath = "/metadata.jpg";
OCUpload ocUpload = new OCUpload(file.getAbsolutePath(), remotePath, account.name);

assertTrue(
Expand Down Expand Up @@ -497,16 +497,16 @@ public void testMetadata() throws IOException, AccountUtils.AccountNotFoundExcep

OCFile ocFile = null;
for (OCFile f : files) {
if (f.getFileName().equals("gps.jpg")) {
if (f.getFileName().equals("metadata.jpg")) {
ocFile = f;
break;
}
}

assertNotNull(ocFile);
assertEquals(remotePath, ocFile.getRemotePath());
assertEquals(new ImageDimension(300f, 200f), ocFile.getImageDimension());
assertEquals(new GeoLocation(64, -46), ocFile.getGeoLocation());
assertEquals(new ImageDimension(300f, 200f), ocFile.getImageDimension());
}

private void verifyStoragePath(OCFile file) {
Expand Down

0 comments on commit a86b6b5

Please sign in to comment.