@Test public void testHasInstanceId3() { PortletInstance portletInstance = PortletInstance.fromPortletInstanceKey(getPortletInstanceKey(PortletKeys.TEST, 1234)); Assert.assertFalse(portletInstance.hasInstanceId()); }
@Test public void testHasInstanceId5() { PortletInstance portletInstance = PortletInstance.fromPortletInstanceKey(getPortletInstanceKey()); Assert.assertFalse(portletInstance.hasInstanceId()); }
@Test public void testHasInstanceId2() { PortletInstance portletInstance = PortletInstance.fromPortletInstanceKey(getPortletInstanceKey(PortletKeys.TEST, "1234")); Assert.assertTrue(portletInstance.hasInstanceId()); }
@Test public void testHasInstanceId8() { PortletInstance portletInstance = PortletInstance.fromPortletInstanceKey( getPortletInstanceKey(getPortletInstanceKey(), 1234, "5678")); Assert.assertTrue(portletInstance.hasInstanceId()); }