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

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


            // test the proper sequence of events by comparing the number of pre-events,
            // post-events, and actual publications.
            assertTrue("event is of correct base type", event instanceof PublishEvent);

            PublishEvent pubEvent = (PublishEvent) event;
            Artifact expectedArtifact = test.currentTestCase.expectedArtifact;
            File expectedData = test.currentTestCase.expectedData;

            assertSameArtifact("event records correct artifact", expectedArtifact,
                pubEvent.getArtifact());
            try {
                assertEquals("event records correct file", expectedData.getCanonicalPath(),
                    pubEvent.getData().getCanonicalPath());

                assertEquals("event records correct overwrite setting", test.expectedOverwrite,
                    pubEvent.isOverwrite());
                assertSame("event presents correct resolver", resolver, pubEvent.getResolver());

                String[] attributes = {"organisation", "module", "revision", "artifact", "type",
                        "ext", "resolver", "overwrite"};
                String[] values = {"apache", "PublishEventsTest", "1.0-dev",
                        expectedArtifact.getName(), expectedArtifact.getType(),
View Full Code Here


            //test the proper sequence of events by comparing the number of pre-events,
            //post-events, and actual publications.
            assertTrue("event is of correct base type",
                        event instanceof PublishEvent);
           
            PublishEvent pubEvent = (PublishEvent)event;
            Artifact expectedArtifact = test.currentTestCase.expectedArtifact;
            File expectedData = test.currentTestCase.expectedData;
           
            assertSameArtifact("event records correct artifact",
                               expectedArtifact, pubEvent.getArtifact());
            try {
                assertEquals("event records correct file",
                             expectedData.getCanonicalPath(), pubEvent.getData().getCanonicalPath());
           
                assertEquals("event records correct overwrite setting", test.expectedOverwrite, pubEvent.isOverwrite());
                assertSame("event presents correct resolver", resolver, pubEvent.getResolver());
   
                String[] attributes = {
                        "organisation", "module", "revision", "artifact", "type", "ext", "resolver", "overwrite"
                };
                String[] values = {
View Full Code Here

            //test the proper sequence of events by comparing the number of pre-events,
            //post-events, and actual publications.
            assertTrue("event is of correct base type",
                        event instanceof PublishEvent);
           
            PublishEvent pubEvent = (PublishEvent)event;
            Artifact expectedArtifact = test.currentTestCase.expectedArtifact;
            File expectedData = test.currentTestCase.expectedData;
           
            assertSameArtifact("event records correct artifact",
                               expectedArtifact, pubEvent.getArtifact());
            try {
                assertEquals("event records correct file",
                             expectedData.getCanonicalPath(), pubEvent.getData().getCanonicalPath());
           
                assertEquals("event records correct overwrite setting", test.expectedOverwrite, pubEvent.isOverwrite());
                assertSame("event presents correct resolver", resolver, pubEvent.getResolver());
   
                String[] attributes = {
                        "organisation", "module", "revision", "artifact", "type", "ext", "resolver", "overwrite"
                };
                String[] values = {
View Full Code Here

            //test the proper sequence of events by comparing the number of pre-events,
            //post-events, and actual publications.
            assertTrue("event is of correct base type",
                        event instanceof PublishEvent);
           
            PublishEvent pubEvent = (PublishEvent)event;
            Artifact expectedArtifact = test.currentTestCase.expectedArtifact;
            File expectedData = test.currentTestCase.expectedData;
           
            assertSameArtifact("event records correct artifact",
                               expectedArtifact, pubEvent.getArtifact());
            try {
                assertEquals("event records correct file",
                             expectedData.getCanonicalPath(), pubEvent.getData().getCanonicalPath());
           
                assertEquals("event records correct overwrite setting", test.expectedOverwrite, pubEvent.isOverwrite());
                assertSame("event presents correct resolver", resolver, pubEvent.getResolver());
   
                String[] attributes = {
                        "organisation", "module", "revision", "artifact", "type", "ext", "resolver", "overwrite"
                };
                String[] values = {
View Full Code Here

TOP

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

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.