Package net.sourceforge.clownfish.core.conf

Examples of net.sourceforge.clownfish.core.conf.Command


    @Test
    public void testExecuteSuccess() throws MojoExecutionException {
       
        StartMojo startMojo = new StartMojo();
   
        Command command = new Command();
        command.setVerbose(true);

        EasyMock.expect(log.isInfoEnabled()).andReturn(false).times(2);

        EasyMock.expect(clownfishFactory.createClownfish(
                command, clownfishHelper,
View Full Code Here


    @Test(expected = MojoExecutionException.class)
    public void testExecuteFail() throws MojoExecutionException {

        StartMojo startMojo = new StartMojo();

        Command command = new Command();
        command.setVerbose(true);
       
        Exception exception = new RuntimeException("test mock exception");

        EasyMock.expect(log.isInfoEnabled()).andReturn(false).once();
View Full Code Here

    public void execute() throws MojoExecutionException {
       
        try {
            super.execute();
           
            Command command = getCommand();
            postExecute();
           
            if (command.isVerbose() && getLog().isInfoEnabled()) {
                logMessage(START_MSG, command.getTargetList());
            }
           
            Clownfish clownfish = getClownfish();

            if (!clownfish.start()) {
View Full Code Here

    @Test
    public void testExecuteSuccess() throws MojoExecutionException {
           
        UndeployMojo undeployMojo = new UndeployMojo();
   
        Command command = new Command();
        command.setVerbose(true);

        EasyMock.expect(log.isInfoEnabled()).andReturn(false).times(2);

        EasyMock.expect(clownfishFactory.createClownfish(
                command, clownfishHelper, progressListenerFactory,
View Full Code Here

    @Test(expected = MojoExecutionException.class)
    public void testExecuteFail() throws MojoExecutionException {

        UndeployMojo undeployMojo = new UndeployMojo();

        Command command = new Command();
        command.setVerbose(true);
       
        Exception exception = new RuntimeException("test mock exception");

        EasyMock.expect(log.isInfoEnabled()).andReturn(false).once();
View Full Code Here

    public void execute() throws MojoExecutionException {
       
        try {
            super.execute();
           
            Command command = getCommand();
            initLocalProperties();
            postExecute();
           
           
            if (command.isVerbose() && getLog().isInfoEnabled()) {
                logMessage(DEPLOYING_ARTIFACT_MSG, command.getTargetList());
            }
           
            Clownfish clownfish = getClownfish();
           
            if (!clownfish.deploy()) {
View Full Code Here

       
        super.overrideCommandWithConfigurationFile();
       
        if (!hasValidConfigurationFile()) return;
       
        Command command = getCommand();
        Properties props = command.getProperties();
       
        // props should never be null
        assert props != null;
       
        if (props.containsKey(AUTOSTART_PROP_KEY)) {
            boolean autostartValue = Boolean.parseBoolean(
                    props.getProperty(AUTOSTART_PROP_KEY));
            command.setAutostart(autostartValue);
        }
       
    }
View Full Code Here

     */
    @Test(expected = IllegalArgumentException.class)
    public void testLoadAndRegisterDeploymentFactoryWithNullDFM() {
       
            clownfishHelper.loadAndRegisterDeploymentFactory(
                    null, new Command());
    }
View Full Code Here

    public void execute() throws MojoExecutionException {
       
        try {
            super.execute();
           
            Command command = getCommand();
            postExecute();

            if (command.isVerbose() && getLog().isInfoEnabled()) {
                logMessage(STOP_MSG, command.getTargetList());
            }
           
            Clownfish clownfish = getClownfish();

            if (!clownfish.stop()) {
View Full Code Here

     * Test load deployment manager with null deployment factory manager.
     */
    @Test(expected = IllegalArgumentException.class)
    public void testLoadDeploymentManagerNullDFM() {

        clownfishHelper.loadDeploymentManager(null, new Command());
    }
View Full Code Here

TOP

Related Classes of net.sourceforge.clownfish.core.conf.Command

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.