Skip to content

Commit

Permalink
test: do not check specific file sizes as this is OS dependent
Browse files Browse the repository at this point in the history
  • Loading branch information
kschrab committed Aug 8, 2024
1 parent ff153b8 commit 798555c
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
package org.eclipse.mosaic.fed.sumo.util;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import static org.mockito.ArgumentMatchers.eq;
import static org.mockito.ArgumentMatchers.isA;
import static org.mockito.Mockito.verify;
Expand Down Expand Up @@ -155,13 +156,13 @@ public void addAndGenerateLaneAssignment() throws InternalFederateException, IOE
);

long fileSize0 = Files.size(temporaryFolder.getRoot().toPath().resolve(base.resolve("AV-lane0.png")));
assertEquals(15d, fileSize0 / 1000d, 7d);
assertTrue(fileSize0 > 0);

long fileSize1 = Files.size(temporaryFolder.getRoot().toPath().resolve(base.resolve("ALL-lane1.png")));
assertEquals(15d, fileSize1 / 1000d, 7d);
assertTrue(fileSize1 > 0);

long fileSize2 = Files.size(temporaryFolder.getRoot().toPath().resolve(base.resolve("EMPTY-lane2.png")));
assertEquals(70d, fileSize2 / 1000d, 20d);
assertTrue(fileSize2 > 0);
}

}

0 comments on commit 798555c

Please sign in to comment.