@@ -0,0 +1,3018 @@
+/*%0A * Copyright (C) 2017 Reece H. Dunn%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A * http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage uk.co.reecedunn.intellij.plugin.marklogic.tests.runner;%0A%0Aimport com.intellij.coverage.CoverageExecutor;%0Aimport com.intellij.execution.ExecutionException;%0Aimport com.intellij.execution.Executor;%0Aimport com.intellij.execution.configurations.RunProfile;%0Aimport com.intellij.execution.configurations.RunProfileState;%0Aimport com.intellij.execution.executors.DefaultDebugExecutor;%0Aimport com.intellij.execution.executors.DefaultRunExecutor;%0Aimport com.intellij.execution.runners.ExecutionEnvironment;%0Aimport com.intellij.execution.runners.ProgramRunner;%0Aimport org.jetbrains.annotations.NotNull;%0Aimport org.jetbrains.annotations.Nullable;%0Aimport uk.co.reecedunn.intellij.plugin.marklogic.configuration.MarkLogicRunConfiguration;%0Aimport uk.co.reecedunn.intellij.plugin.marklogic.runner.MarkLogicProgramRunner;%0Aimport uk.co.reecedunn.intellij.plugin.marklogic.tests.configuration.ConfigurationTestCase;%0A%0Aimport javax.swing.*;%0A%0Aimport static org.hamcrest.CoreMatchers.*;%0Aimport static org.hamcrest.MatcherAssert.assertThat;%0A%0Apublic class MarkLogicProgramRunnerTest extends ConfigurationTestCase %7B%0A    public void testUnknownRunConfiguration() %7B%0A        ProgramRunner runner = new MarkLogicProgramRunner();%0A        RunProfile profile = new RunProfile() %7B%0A            @Nullable%0A            @Override%0A            public RunProfileState getState(@NotNull Executor executor, @NotNull ExecutionEnvironment environment) throws ExecutionException %7B%0A                return null;%0A            %7D%0A%0A            @Override%0A            public String getName() %7B%0A                return null;%0A            %7D%0A%0A            @Nullable%0A            @Override%0A            public Icon getIcon() %7B%0A                return null;%0A            %7D%0A        %7D;%0A%0A        assertThat(runner.canRun(DefaultRunExecutor.EXECUTOR_ID, profile), is(false));%0A        assertThat(runner.canRun(DefaultDebugExecutor.EXECUTOR_ID, profile), is(false));%0A        assertThat(runner.canRun(CoverageExecutor.EXECUTOR_ID, profile), is(false));%0A    %7D%0A%0A    public void testDefaultRunConfiguration() %7B%0A        RunProfile profile = createConfiguration();%0A%0A        ProgramRunner runner = new MarkLogicProgramRunner();%0A        assertThat(runner.canRun(DefaultRunExecutor.EXECUTOR_ID, profile), is(true));%0A        assertThat(runner.canRun(DefaultDebugExecutor.EXECUTOR_ID, profile), is(false));%0A        assertThat(runner.canRun(CoverageExecutor.EXECUTOR_ID, profile), is(false));%0A    %7D%0A%7D%0A

Add tests for MarkLogicProgramRunner.