All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.toast.tk.runtime.block.SwingPageBlockBuilder Maven / Gradle / Ivy

Go to download

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;

import com.google.inject.Inject;

import io.toast.tk.core.runtime.IFeedableSwingPage;
import io.toast.tk.dao.domain.impl.test.block.SwingPageBlock;
import io.toast.tk.runtime.IActionItemRepository;

public class SwingPageBlockBuilder implements IBlockRunner {

	@Inject
	private	IActionItemRepository objectRepository;

	@Override
	public void run(final SwingPageBlock block) {
		objectRepository.addSwingPage(block.getFixtureName());
		final IFeedableSwingPage swingPage = objectRepository.getSwingPage(block.getFixtureName());
		block.getBlockLines().forEach(line -> swingPage.addElement(line.getElementName(), line.getType(), line.getLocator()));
	}
	
	@Override
	public void setRepository(final IActionItemRepository objectRepository) {
		this.objectRepository = objectRepository;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy