Package org.apache.ivy.core.event.publish

Examples of org.apache.ivy.core.event.publish.EndArtifactPublishEvent


                resolver.publish(artifact, src, overwrite);
                successful = true;
            }
        } finally {
            // notify triggers that the publish is finished, successfully or not.
            eventManager.fireIvyEvent(new EndArtifactPublishEvent(resolver, artifact, src,
                    overwrite, successful));
        }
    }
View Full Code Here


                test.currentTestCase.expectedSuccess, test.currentTestCase.published);
            assertFalse("post-publish event has not yet been fired for this artifact",
                test.currentTestCase.postTriggerFired);

            // test the "status" attribute of the post- event.
            EndArtifactPublishEvent endEvent = (EndArtifactPublishEvent) event;
            assertEquals("status bit is set correctly", test.currentTestCase.expectedSuccess,
                endEvent.isSuccessful());

            String expectedStatus = test.currentTestCase.expectedSuccess ? "successful" : "failed";
            assertEquals("status attribute is set to correct value", expectedStatus, endEvent
                    .getAttributes().get("status"));

            // increment the call counter in the wrapper test
            test.currentTestCase.postTriggerFired = true;
            ++test.postTriggers;
View Full Code Here

            }
            return successful;
        } finally {
            //notify triggers that the publish is finished, successfully or not.
            eventManager.fireIvyEvent(
                new EndArtifactPublishEvent(resolver, artifact, src, overwrite, successful));
        }
    }
View Full Code Here

                         test.currentTestCase.expectedSuccess, test.currentTestCase.published);
            assertFalse("post-publish event has not yet been fired for this artifact",
                        test.currentTestCase.postTriggerFired);
                       
            //test the "status" attribute of the post- event.
            EndArtifactPublishEvent endEvent = (EndArtifactPublishEvent)event;
            assertEquals("status bit is set correctly",
                         test.currentTestCase.expectedSuccess, endEvent.isSuccessful());
           
            String expectedStatus = test.currentTestCase.expectedSuccess ? "successful" : "failed";
            assertEquals("status attribute is set to correct value",
                         expectedStatus, endEvent.getAttributes().get("status"));
           
            //increment the call counter in the wrapper test
            test.currentTestCase.postTriggerFired = true;
            ++test.postTriggers;
        }
View Full Code Here

                successful = true;
            }
        } finally {
            //notify triggers that the publish is finished, successfully or not.
            eventManager.fireIvyEvent(
                new EndArtifactPublishEvent(resolver, artifact, src, overwrite, successful));
        }
    }
View Full Code Here

                successful = true;
            }
        } finally {
            //notify triggers that the publish is finished, successfully or not.
            eventManager.fireIvyEvent(
                new EndArtifactPublishEvent(resolver, artifact, src, overwrite, successful));
        }
    }
View Full Code Here

                successful = true;
            }
        } finally {
            //notify triggers that the publish is finished, successfully or not.
            eventManager.fireIvyEvent(
                new EndArtifactPublishEvent(resolver, artifact, src, overwrite, successful));
        }
    }
View Full Code Here

                         test.currentTestCase.expectedSuccess, test.currentTestCase.published);
            assertFalse("post-publish event has not yet been fired for this artifact",
                        test.currentTestCase.postTriggerFired);
                       
            //test the "status" attribute of the post- event.
            EndArtifactPublishEvent endEvent = (EndArtifactPublishEvent)event;
            assertEquals("status bit is set correctly",
                         test.currentTestCase.expectedSuccess, endEvent.isSuccessful());
           
            String expectedStatus = test.currentTestCase.expectedSuccess ? "successful" : "failed";
            assertEquals("status attribute is set to correct value",
                         expectedStatus, endEvent.getAttributes().get("status"));
           
            //increment the call counter in the wrapper test
            test.currentTestCase.postTriggerFired = true;
            ++test.postTriggers;
        }
View Full Code Here

            }
            return successful;
        } finally {
            //notify triggers that the publish is finished, successfully or not.
            eventManager.fireIvyEvent(
                new EndArtifactPublishEvent(resolver, artifact, src, overwrite, successful));
        }
    }
View Full Code Here

                         test.currentTestCase.expectedSuccess, test.currentTestCase.published);
            assertFalse("post-publish event has not yet been fired for this artifact",
                        test.currentTestCase.postTriggerFired);
                       
            //test the "status" attribute of the post- event.
            EndArtifactPublishEvent endEvent = (EndArtifactPublishEvent)event;
            assertEquals("status bit is set correctly",
                         test.currentTestCase.expectedSuccess, endEvent.isSuccessful());
           
            String expectedStatus = test.currentTestCase.expectedSuccess ? "successful" : "failed";
            assertEquals("status attribute is set to correct value",
                         expectedStatus, endEvent.getAttributes().get("status"));
           
            //increment the call counter in the wrapper test
            test.currentTestCase.postTriggerFired = true;
            ++test.postTriggers;
        }
View Full Code Here

TOP

Related Classes of org.apache.ivy.core.event.publish.EndArtifactPublishEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.