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