dbalek commented on a change in pull request #3022:
URL: https://github.com/apache/netbeans/pull/3022#discussion_r661369033



##########
File path: 
ide/gsf.testrunner.ui/src/org/netbeans/modules/gsf/testrunner/ui/spi/ComputeTestMethods.java
##########
@@ -0,0 +1,66 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.netbeans.modules.gsf.testrunner.ui.spi;
+
+import java.util.List;
+import org.netbeans.api.editor.mimelookup.MimeLookup;
+import 
org.netbeans.modules.gsf.testrunner.ui.api.TestMethodController.TestMethod;
+import org.netbeans.modules.parsing.spi.Parser;
+
+/**
+ * SPI to provide a list of {@link TestMethod}s found in a parsed {@link 
Source}s.
+ *
+ * @author Dusan Balek
+ * @since 1.25
+ */
+public interface ComputeTestMethods {
+
+    /**
+     * Provides a list of {@link TestMethod}s found in a parsed {@link Source}.
+     *
+     * @param result result of parsing given {@link Source}
+     * @return list of test methods found
+     * @since 1.25
+     */
+    public List<TestMethod> computeTestMethods(Parser.Result result);
+
+    /**
+     * After this method is called the test methods computation if running 
should exit immediately.
+     *
+     * @since 1.25
+     */
+    public void cancel();
+
+    /**
+     * Factory for creating {@link ComputeTestMethods} instances.
+     * It should be registered in the {@link MimeLookup}.
+     *
+     * @since 1.25
+     */
+    public interface Factory {

Review comment:
       `Factory` interface removed.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to