test_class.file: api/src/test/java/org/apache/sling/cms/publication/PublicationEventTest.java
test_class.identifier: PublicationEventTest
test_case.body: @Test
      public void testUnpublish() {
  
          PublishableResource resource = Mockito.mock(PublishableResource.class);
          Mockito.when(resource.getPath()).thenReturn("/content2");
          PublicationEvent evt = PublicationEvent.unpublish(resource, true);
  
          assertEquals(PublicationEvent.EVENT_UNPUBLISH, evt.getTopic());
          assertEquals("/content2", evt.getProperty(SlingConstants.PROPERTY_PATH));
          assertEquals(true, evt.getProperty(PublicationEvent.PN_DEEP));
          assertEquals(PublicationType.DELETE.toString(), evt.getProperty(PublicationEvent.PN_PUBLICATION_TYPE));
      }
test_case.class_method_signature: PublicationEventTest.testUnpublish()
test_case.full_signature: @Test public void testUnpublish()
test_case.identifier: testUnpublish
test_case.invocations: mock thenReturn when getPath unpublish assertEquals getTopic assertEquals getProperty assertEquals getProperty assertEquals toString getProperty
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testUnpublish()
focal_class.declarator: EVENT_PUBLISH = "org/apache/sling/cms/publication/PUBLISH"
focal_class.modifier: public static final
focal_class.original_string: public static final String EVENT_PUBLISH = "org/apache/sling/cms/publication/PUBLISH";
focal_class.type: String
focal_class.var_name: EVENT_PUBLISH
focal_class.declarator: EVENT_UNPUBLISH = "org/apache/sling/cms/publication/UNPUBLISH"
focal_class.modifier: public static final
focal_class.original_string: public static final String EVENT_UNPUBLISH = "org/apache/sling/cms/publication/UNPUBLISH";
focal_class.type: String
focal_class.var_name: EVENT_UNPUBLISH
focal_class.declarator: PN_PUBLICATION_TYPE = "publicationType"
focal_class.modifier: public static final
focal_class.original_string: public static final String PN_PUBLICATION_TYPE = "publicationType";
focal_class.type: String
focal_class.var_name: PN_PUBLICATION_TYPE
focal_class.declarator: PN_DEEP = "isDeep"
focal_class.modifier: public static final
focal_class.original_string: public static final String PN_DEEP = "isDeep";
focal_class.type: String
focal_class.var_name: PN_DEEP
focal_class.file: api/src/main/java/org/apache/sling/cms/publication/PublicationEvent.java
focal_class.identifier: PublicationEvent
focal_class.class_method_signature: PublicationEvent.PublicationEvent(String topic, Map<String, ?> properties)
focal_class.full_signature: private  PublicationEvent(String topic, Map<String, ?> properties)
focal_class.identifier: PublicationEvent
focal_class.modifiers: private
focal_class.parameters: (String topic, Map<String, ?> properties)
focal_class.signature:  PublicationEvent(String topic, Map<String, ?> properties)
focal_class.class_method_signature: PublicationEvent.publish(PublishableResource resource, boolean deep)
focal_class.full_signature: public static PublicationEvent publish(PublishableResource resource, boolean deep)
focal_class.identifier: publish
focal_class.modifiers: public static
focal_class.parameters: (PublishableResource resource, boolean deep)
focal_class.return: PublicationEvent
focal_class.signature: PublicationEvent publish(PublishableResource resource, boolean deep)
focal_class.class_method_signature: PublicationEvent.unpublish(PublishableResource resource, boolean deep)
focal_class.full_signature: public static PublicationEvent unpublish(PublishableResource resource, boolean deep)
focal_class.identifier: unpublish
focal_class.modifiers: public static
focal_class.parameters: (PublishableResource resource, boolean deep)
focal_class.return: PublicationEvent
focal_class.signature: PublicationEvent unpublish(PublishableResource resource, boolean deep)
focal_class.superclass: extends Event
focal_method.body: public static PublicationEvent unpublish(PublishableResource resource, boolean deep) {
          Map<String, Object> properties = new HashMap<>();
          properties.put(SlingConstants.PROPERTY_PATH, resource.getPath());
          properties.put(PN_PUBLICATION_TYPE, PublicationType.DELETE.toString());
          properties.put(PN_DEEP, deep);
          return new PublicationEvent(EVENT_UNPUBLISH, properties);
      }
focal_method.class_method_signature: PublicationEvent.unpublish(PublishableResource resource, boolean deep)
focal_method.full_signature: public static PublicationEvent unpublish(PublishableResource resource, boolean deep)
focal_method.identifier: unpublish
focal_method.invocations: put getPath put toString put
focal_method.modifiers: public static
focal_method.parameters: (PublishableResource resource, boolean deep)
focal_method.return: PublicationEvent
focal_method.signature: PublicationEvent unpublish(PublishableResource resource, boolean deep)