1   package com.atlassian.maven.plugins.amps;
2   
3   import org.apache.maven.plugin.MojoExecutionException;
4   import org.apache.maven.plugin.MojoFailureException;
5   import org.jfrog.maven.annomojo.annotations.MojoGoal;
6   import org.jfrog.maven.annomojo.annotations.MojoParameter;
7   
8   import java.util.HashMap;
9   import java.util.Map;
10  
11  /**
12   *
13   */
14  @MojoGoal("unit-test")
15  public class UnitTestMojo extends AbstractAmpsMojo
16  {
17      /**
18       * System Properties to pass to surefire using a more familiar syntax.
19       *
20       * @since 3.3
21       */
22      @MojoParameter
23      protected Map<String, Object> systemPropertyVariables = new HashMap<String, Object>();
24  
25      public void execute() throws MojoExecutionException, MojoFailureException
26      {
27          getMavenGoals().runUnitTests(systemPropertyVariables);
28      }
29  }