com.anrisoftware.globalpom.utils.frametesting.FrameTestingFactory.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of globalpom-groovytestutils Show documentation
Show all versions of globalpom-groovytestutils Show documentation
Various utilities methods to help write more expressive unit tests in Groovy.
The newest version!
/*
* Copyright 2011-2025 Erwin Müller
*
* Licensed 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 com.anrisoftware.globalpom.utils.frametesting;
/**
* Factory to create frame testing.
*
* @author Erwin Mueller, [email protected]
* @since 1.21
*/
interface FrameTestingFactory {
/**
* Creates a new frame testing with the specified arguments.
*
* @param title
* the title of the frame;
*
* @param size
* the {@link Dimension} size of the frame;
*
* @param createFrame
* callback to create the {@link JFrame}. Have no arguments,
* must return a {@link JFrame} object.
*
* @param createComponent
* callback to create the {@link Component} for the frame;
* the {@link JFrame} is passed as the first argument, must
* return a {@link Component} object.
*
* @param setupFrame
* callback to setups the {@link JFrame};
* the {@link JFrame} is passed as the first argument,
* the {@link Component} is passed as the second argument,
* nothing is returned.
*
* @param createFixture
* callback to create the {@link FrameFixture};
* the {@link JFrame} is passed as the first argument, must
* return a {@link FrameFixture} object.
*
* @return the {@link FrameTesting}.
*/
FrameTesting create(Map args)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy