Skip to content

Commit 34a110b

Browse files
MarinhoFeliphebrianchandotcom
authored andcommitted
LPD-67814 test: enable CMS FF and perform the correct JSON assertion
1 parent 759cd8e commit 34a110b

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

modules/apps/object/object-rest-test/src/testIntegration/java/com/liferay/object/rest/internal/resource/v1_0/test/ObjectEntryRelatedObjectsResourceTest.java

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
import com.liferay.portal.kernel.workflow.WorkflowConstants;
5656
import com.liferay.portal.test.log.LogCapture;
5757
import com.liferay.portal.test.log.LoggerTestUtil;
58+
import com.liferay.portal.test.rule.FeatureFlag;
5859
import com.liferay.portal.test.rule.Inject;
5960
import com.liferay.portal.test.rule.LiferayIntegrationTestRule;
6061
import com.liferay.portal.test.rule.PermissionCheckerMethodTestRule;
@@ -77,6 +78,7 @@
7778
/**
7879
* @author Carlos Correa
7980
*/
81+
@FeatureFlag("LPD-34594")
8082
@RunWith(Arquillian.class)
8183
public class ObjectEntryRelatedObjectsResourceTest {
8284

@@ -688,34 +690,34 @@ public void testGetByExternalReferenceCodeCurrentExternalReferenceCodeObjectRela
688690

689691
String href = "http://localhost:8080/o" + endpoint;
690692

691-
Assert.assertEquals(
692-
actionsJSONObject.toString(),
693+
JSONAssert.assertEquals(
693694
JSONFactoryUtil.createJSONObject(
694695
).put(
695-
"get",
696+
"delete",
696697
JSONFactoryUtil.createJSONObject(
697698
).put(
698-
"method", "GET"
699+
"method", "DELETE"
699700
).put(
700701
"href", href
701702
)
702703
).put(
703-
"update",
704+
"get",
704705
JSONFactoryUtil.createJSONObject(
705706
).put(
706-
"method", "PATCH"
707+
"method", "GET"
707708
).put(
708709
"href", href
709710
)
710711
).put(
711-
"delete",
712+
"update",
712713
JSONFactoryUtil.createJSONObject(
713714
).put(
714-
"method", "DELETE"
715+
"method", "PATCH"
715716
).put(
716717
"href", href
717718
)
718-
).toString());
719+
).toString(),
720+
actionsJSONObject.toString(), JSONCompareMode.NON_EXTENSIBLE);
719721
}
720722

721723
@Test

0 commit comments

Comments
 (0)