@@ -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