001 /* 002 * Created on Dec 18, 2007 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except 005 * in compliance with the License. You may obtain a copy of the License at 006 * 007 * http://www.apache.org/licenses/LICENSE-2.0 008 * 009 * Unless required by applicable law or agreed to in writing, software distributed under the License 010 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express 011 * or implied. See the License for the specific language governing permissions and limitations under 012 * the License. 013 * 014 * Copyright @2007-2010 the original author or authors. 015 */ 016 package org.fest.swing.fixture; 017 018 019 /** 020 * Understands functional testing of frame-like components (not necessarily subclasses of 021 * <code>{@link java.awt.Frame}</code>): 022 * <ul> 023 * <li>user input simulation</li> 024 * <li>state verification</li> 025 * <li>property value query</li> 026 * </ul> 027 * 028 * @author Yvonne Wang 029 * @author Alex Ruiz 030 */ 031 public interface FrameLikeFixture extends WindowLikeContainerFixture { 032 033 /** 034 * Simulates a user iconifying this fixture's frame-like component. 035 * @return this fixture. 036 */ 037 FrameLikeFixture iconify(); 038 039 /** 040 * Simulates a user deiconifying this fixture's frame-like component. 041 * @return this fixture. 042 */ 043 FrameLikeFixture deiconify(); 044 045 /** 046 * Simulates a user maximizing this fixture's frame-like component. 047 * @return this fixture. 048 */ 049 FrameLikeFixture maximize(); 050 051 /** 052 * Simulates a user normalizing this fixture's frame-like component. 053 * @return this fixture. 054 */ 055 FrameLikeFixture normalize(); 056 }