Examples of BeforeTrigger


Examples of ru.aristar.jnuget.sources.push.BeforeTrigger

        List<Properties> triggerOtions = new ArrayList<>();
        if (packageSource != null && packageSource.getPushStrategy() != null) {
            ModifyStrategy pushStrategy = packageSource.getPushStrategy();
            final List<BeforeTrigger> beforeTriggers = pushStrategy.getBeforePushTriggers();
            for (int i = 0; i < beforeTriggers.size(); i++) {
                BeforeTrigger beforeTrigger = beforeTriggers.get(i);
                Properties properties = new Properties(format("Триггер {0}", i + 1));
                triggerOtions.add(properties);
                Property classProperty = new Property("triggerClass", "Имя класса триггера", beforeTrigger.getClass().getName());
                properties.getProperties().add(classProperty);
                properties.getProperties().addAll(getObjectProperties(beforeTrigger));
            }
        }
        return triggerOtions;
View Full Code Here

Examples of ru.aristar.jnuget.sources.push.BeforeTrigger

        expectations.atLeast(0).of(nupkg).getFileName();
        expectations.will(returnValue("NUnit.2.5.9.10348.nupkg"));
        expectations.atLeast(0).of(nupkg).getStream();
        expectations.will(returnValue(this.getClass().getResourceAsStream("/NUnit.2.5.9.10348.nupkg")));
        //Триггер
        final BeforeTrigger trigger = context.mock(BeforeTrigger.class);
        expectations.oneOf(trigger).doAction(nupkg, classicPackageSource);
        expectations.will(new CallBackAction(pushedPackages));

        context.checking(expectations);
        simplePushStrategy.getBeforePushTriggers().add(trigger);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.