package mypackage;

import org.musetest.core.*;
import org.musetest.core.context.*;
import org.musetest.core.events.*;
import org.musetest.core.resource.*;
import org.musetest.core.step.*;
import org.musetest.core.step.descriptor.*;
import org.musetest.core.values.*;

import java.util.*;

/**
 * @author Christopher L Merrill (see LICENSE.txt for license details)
 */
@MuseStepName("Log all")
@MuseStepIcon("glyph:FontAwesome:COMMENTING_ALT")
@MuseStepTypeGroup("custom")
@MuseStepShortDescription("Log all parameters to the test event log")
@MuseStepLongDescription("Each parameter will be resolved and the name and value will be formatted into a MessageEvent.")
@MuseTypeId("log-params")
@MuseInlineEditString("log all params")
@SuppressWarnings("unused")  // called reflectively by tests in the project
public class ExampleCustomStep extends BaseStep
    {
    public ExampleCustomStep(StepConfiguration config, MuseProject project)
        {
        super(config);
        _project = project;
        }
        
    @Override
    public StepExecutionResult executeImplementation(StepExecutionContext context) throws MuseInstantiationException, ValueSourceResolutionError
        {
        Map<String, ValueSourceConfiguration> sources = getConfiguration().getSources();
        for (String name : sources.keySet())
        	{
        	ValueSourceConfiguration config = sources.get(name);
        	MuseValueSource source = config.createSource(_project); 
        	Object value = getValue(source, context, true, Object.class);
        	context.raiseEvent(MessageEventType.create(name + "=" + value));
        	}
        return new BasicStepExecutionResult(StepExecutionStatus.COMPLETE);
        }

    private MuseProject _project;
    }
@@ -24,28 +24,34 @@
 ort org.muse
-test
+automation
 .core.*;%0Aimp
@@ -58,28 +58,34 @@
 ort org.muse
-test
+automation
 .core.contex
@@ -100,28 +100,34 @@
 ort org.muse
-test
+automation
 .core.events
@@ -141,28 +141,34 @@
 ort org.muse
-test
+automation
 .core.resour
@@ -180,36 +180,42 @@
 %0Aimport org.muse
-test
+automation
 .core.step.*;%0Aim
@@ -223,28 +223,34 @@
 ort org.muse
-test
+automation
 .core.step.d
@@ -277,20 +277,26 @@
 org.muse
-test
+automation
 .core.va

update for change to base muse package name