File tree Expand file tree Collapse file tree 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 Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change 5555import com .liferay .portal .kernel .workflow .WorkflowConstants ;
5656import com .liferay .portal .test .log .LogCapture ;
5757import com .liferay .portal .test .log .LoggerTestUtil ;
58+ import com .liferay .portal .test .rule .FeatureFlag ;
5859import com .liferay .portal .test .rule .Inject ;
5960import com .liferay .portal .test .rule .LiferayIntegrationTestRule ;
6061import com .liferay .portal .test .rule .PermissionCheckerMethodTestRule ;
7778/**
7879 * @author Carlos Correa
7980 */
81+ @ FeatureFlag ("LPD-34594" )
8082@ RunWith (Arquillian .class )
8183public 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
You can’t perform that action at this time.
0 commit comments