This is an automated email from the ASF dual-hosted git repository.

solomax pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openmeetings.git


The following commit(s) were added to refs/heads/master by this push:
     new 153278e  [OPENMEETINGS-2703] test is fixed
153278e is described below

commit 153278efb4a5cd8a5718890cf97a1ae32831d57f
Author: Maxim Solodovnik <[email protected]>
AuthorDate: Wed Nov 17 13:34:01 2021 +0700

    [OPENMEETINGS-2703] test is fixed
---
 .../org/apache/openmeetings/webservice/TestInfoService.java    | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git 
a/openmeetings-web/src/test/java/org/apache/openmeetings/webservice/TestInfoService.java
 
b/openmeetings-web/src/test/java/org/apache/openmeetings/webservice/TestInfoService.java
index 021e52f..d471cb9 100644
--- 
a/openmeetings-web/src/test/java/org/apache/openmeetings/webservice/TestInfoService.java
+++ 
b/openmeetings-web/src/test/java/org/apache/openmeetings/webservice/TestInfoService.java
@@ -18,9 +18,11 @@
  */
 package org.apache.openmeetings.webservice;
 
+import static org.junit.jupiter.api.Assertions.assertFalse;
 import static org.junit.jupiter.api.Assertions.assertNotNull;
 import static org.junit.jupiter.api.Assertions.assertTrue;
 
+import org.apache.cxf.jaxrs.client.WebClient;
 import org.apache.openmeetings.db.dto.basic.Health;
 import org.apache.openmeetings.db.dto.basic.Info;
 import org.junit.jupiter.api.Test;
@@ -52,12 +54,14 @@ class TestInfoService extends AbstractWebServiceTest {
 
        @Test
        void manifestTest() {
-               String manifest = getClient(getInfoUrl())
-                               .path("/manifest.webmanifest")
+               WebClient c = getClient(getInfoUrl());
+               c.removeAllHeaders();
+               String manifest = c.path("/manifest.webmanifest")
+                               .type("application/manifest+json")
                                .get(String.class);
                assertNotNull(manifest, "Valid manifestshould be returned");
                JSONObject json = new JSONObject(manifest);
-               assertTrue(json.getBoolean("prefer_related_applications"), "the 
value should be of type Boolean");
+               assertFalse(json.getBoolean("prefer_related_applications"), 
"the value should be of type Boolean");
        }
 
        protected static String getInfoUrl() {

Reply via email to