openvidu-test-e2e: fix openviduJavaClientTest

pull/621/head
pabloFuente 2021-04-05 20:58:42 +02:00
parent 8cbaedb403
commit 8f9ad60d2b
1 changed files with 3 additions and 2 deletions

View File

@ -2386,8 +2386,9 @@ public class OpenViduTestAppE2eTest extends AbstractOpenViduTestAppE2eTest {
String widthAndHeight = user.getEventManager().getDimensionOfViewport(); String widthAndHeight = user.getEventManager().getDimensionOfViewport();
JsonObject obj = JsonParser.parseString(widthAndHeight).getAsJsonObject(); JsonObject obj = JsonParser.parseString(widthAndHeight).getAsJsonObject();
Assert.assertEquals("{\"width\":" + obj.get("width").getAsLong() + ",\"height\":" Assert.assertEquals(
+ (obj.get("height").getAsLong() - 1) + "}", pub.getVideoDimensions()); "{\"width\":" + obj.get("width").getAsLong() + ",\"height\":" + obj.get("height").getAsLong() + "}",
pub.getVideoDimensions());
Assert.assertEquals(Integer.valueOf(30), pub.getFrameRate()); Assert.assertEquals(Integer.valueOf(30), pub.getFrameRate());
Assert.assertEquals("SCREEN", pub.getTypeOfVideo()); Assert.assertEquals("SCREEN", pub.getTypeOfVideo());
Assert.assertTrue(pub.hasVideo()); Assert.assertTrue(pub.hasVideo());