![JAR search and dependency download from the Maven repository](/logo.png)
io.toast.tk.runtime.block.locator.ActionAdaptaterLocators Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of toast-tk-runtime Show documentation
Show all versions of toast-tk-runtime Show documentation
Toast Toolkit Runtime Module contains covers:
- Test Source Adapters
- Test Parsing
- Test Execution
- Test Report generation
The newest version!
package io.toast.tk.runtime.block.locator;
import com.google.inject.Inject;
import com.google.inject.Singleton;
import io.toast.tk.dao.domain.impl.test.block.TestBlock;
import io.toast.tk.dao.domain.impl.test.block.line.TestLine;
import io.toast.tk.runtime.bean.ActionCommandDescriptor;
import io.toast.tk.runtime.bean.TestLineDescriptor;
@Singleton
public class ActionAdaptaterLocators {
@Inject
private ActionAdaptaterLocator actionAdaptaterLocator;
public ActionAdaptaterLocator getActionCommandDescriptor(
final TestBlock block,
final TestLine line
) throws NoActionAdapterFound {
TestLineDescriptor testLineDescriptor = new TestLineDescriptor(block, line);
actionAdaptaterLocator.setTestLineDescriptor(testLineDescriptor);
ActionCommandDescriptor descriptor = actionAdaptaterLocator.findActionCommandDescriptor();
if(descriptor == null){
throw new NoActionAdapterFound(line.getTest());
}
return actionAdaptaterLocator;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy