Skip to content

Commit c52de5d

Browse files
Remove YES and NO from dialog test.
API does not specify these as supported options, and the implementation will no longer allow mixed with OK.
1 parent 8b6ff42 commit c52de5d

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

harness/jellytools.platform/test/qa-functional/src/org/netbeans/jellytools/NbDialogOperatorTest.java

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,11 @@ public class NbDialogOperatorTest extends JellyTestCase {
3838
"testBtCancel",
3939
"testBtClose",
4040
"testBtHelp",
41-
"testBtNo",
4241
"testBtOK",
43-
"testBtYes",
4442
"testCancel",
4543
"testClose",
4644
"testHelp",
47-
"testNo",
4845
"testOK",
49-
"testYes"
5046
};
5147

5248
/** constructor required by JUnit
@@ -123,29 +119,6 @@ public void testCancel() {
123119
assertTrue("Cancel not pushed.", getResult().equals(DialogDescriptor.CANCEL_OPTION));
124120
}
125121

126-
/** Test Yes button getter. */
127-
public void testBtYes() {
128-
new NbDialogOperator(TEST_DIALOG_TITLE).btYes().push();
129-
assertTrue("Yes not detected correctly.", getResult().equals(DialogDescriptor.YES_OPTION));
130-
}
131-
132-
/** Test Yes button pushing. */
133-
public void testYes() {
134-
new NbDialogOperator(TEST_DIALOG_TITLE).yes();
135-
assertTrue("Yes not pushed.", getResult().equals(DialogDescriptor.YES_OPTION));
136-
}
137-
138-
/** Test No button getter. */
139-
public void testBtNo() {
140-
new NbDialogOperator(TEST_DIALOG_TITLE).btNo().push();
141-
assertTrue("No not detected correctly.", getResult().equals(DialogDescriptor.NO_OPTION));
142-
}
143-
144-
/** Test No button pushing. */
145-
public void testNo() {
146-
new NbDialogOperator(TEST_DIALOG_TITLE).no();
147-
assertTrue("No not pushed.", getResult().equals(DialogDescriptor.NO_OPTION));
148-
}
149122
private TestLabel label;
150123

151124
/** Opens modal dialog with OK, Cancel, Yes, No, Close and Help buttons.
@@ -155,8 +128,6 @@ protected void showTestDialog(String testDialogTitle) {
155128
Object[] options = new Object[]{
156129
DialogDescriptor.OK_OPTION,
157130
DialogDescriptor.CANCEL_OPTION,
158-
DialogDescriptor.YES_OPTION,
159-
DialogDescriptor.NO_OPTION,
160131
DialogDescriptor.CLOSED_OPTION
161132
};
162133
label = new TestLabel(TEST_DIALOG_LABEL);

0 commit comments

Comments
 (0)