| 1 |
|
|
| 2 |
|
|
| 3 |
|
|
| 4 |
|
|
| 5 |
|
|
| 6 |
|
|
| 7 |
|
|
| 8 |
|
|
| 9 |
|
|
| 10 |
|
|
| 11 |
|
|
| 12 |
|
|
| 13 |
|
|
| 14 |
|
|
| 15 |
|
|
| 16 |
|
package org.fest.swing.finder; |
| 17 |
|
|
| 18 |
|
import java.awt.*; |
| 19 |
|
import java.util.concurrent.TimeUnit; |
| 20 |
|
|
| 21 |
|
import org.fest.swing.core.GenericTypeMatcher; |
| 22 |
|
import org.fest.swing.core.Robot; |
| 23 |
|
import org.fest.swing.fixture.FrameFixture; |
| 24 |
|
|
| 25 |
|
|
| 26 |
|
@link |
| 27 |
|
@link |
| 28 |
|
|
| 29 |
|
@author |
| 30 |
|
@author |
| 31 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (16) |
Complexity: 7 |
Complexity Density: 0.78 |
|
| 32 |
|
public class FrameFinder extends WindowFinderTemplate<Frame> { |
| 33 |
|
|
| 34 |
|
|
| 35 |
|
@link |
| 36 |
|
@param |
| 37 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 38 |
8
|
protected FrameFinder(String frameName) {... |
| 39 |
8
|
super(frameName, Frame.class); |
| 40 |
|
} |
| 41 |
|
|
| 42 |
|
|
| 43 |
|
@link |
| 44 |
|
@param |
| 45 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 46 |
9
|
protected FrameFinder(GenericTypeMatcher<? extends Frame> matcher) {... |
| 47 |
9
|
super(matcher); |
| 48 |
|
} |
| 49 |
|
|
| 50 |
|
|
| 51 |
|
@link |
| 52 |
|
@param |
| 53 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 54 |
6
|
protected FrameFinder(Class<? extends Frame> frameType) {... |
| 55 |
6
|
super(frameType); |
| 56 |
|
} |
| 57 |
|
|
| 58 |
|
|
| 59 |
|
|
| 60 |
|
@param |
| 61 |
|
@return |
| 62 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
| 63 |
10
|
@Override public FrameFinder withTimeout(long timeout) {... |
| 64 |
10
|
super.withTimeout(timeout); |
| 65 |
7
|
return this; |
| 66 |
|
} |
| 67 |
|
|
| 68 |
|
|
| 69 |
|
|
| 70 |
|
@param |
| 71 |
|
@param |
| 72 |
|
@return |
| 73 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
| 74 |
6
|
@Override public FrameFinder withTimeout(long timeout, TimeUnit unit) {... |
| 75 |
6
|
super.withTimeout(timeout, unit); |
| 76 |
3
|
return this; |
| 77 |
|
} |
| 78 |
|
|
| 79 |
|
|
| 80 |
|
@link |
| 81 |
|
@param |
| 82 |
|
@return |
| 83 |
|
@throws |
| 84 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 85 |
17
|
public FrameFixture using(Robot robot) {... |
| 86 |
17
|
return new FrameFixture(robot, findComponentWith(robot)); |
| 87 |
|
} |
| 88 |
|
|
| 89 |
|
|
| 90 |
|
@link |
| 91 |
|
@return |
| 92 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 93 |
13
|
protected Frame cast(Component c) { return (Frame) c; }... |
| 94 |
|
} |