Open a Class
 

 

Equivalence classes

classpath

 

cancel button (OK button implicit in classpath)

 

public methods

 

protected methods

 

private methods

 

package local methods

 

public fields

 

protected fields

 

private fields

 

package local fields

 

Detailed Test Cases

Case #
Description
Steps
Expected Outcome
Actual Outcome
1
classpath not present
  • Select File menu -> Open class
  • Press OK button
prompted to re-enter classpath  
2
classpath present and correct
  • Select File menu -> Open class
  • Enter 'java.lang.String' in textfield
  • Press OK button
java.lang.String loads  
3
classpath present and incorrect
  • Select File menu -> Open class
  • Enter 'java.lang.NotAClass' in textfield
  • Press OK button
error dialog  
4
cancel button works
  • Select File menu -> Open class
  • Press cancel button
dialog closes  
5
public methods shown
  • Select File menu -> Open class
  • Enter 'java.lang.String' in textfield
  • Press OK button
  • Select public methods tab
all public methods shown  
6
protected methods shown
  • Select File menu -> Open class
  • Enter 'java.lang.String' in textfield
  • Press OK button
  • Select protected methods tab
all protected methods shown  
7
private methods shown
  • Select File menu -> Open class
  • Enter 'java.lang.String' in textfield
  • Press OK button
  • Select private methods tab
all private methods shown  
8
package local methods shown
  • Select File menu -> Open class
  • Enter 'java.lang.String' in textfield
  • Press OK button
  • Select package local methods tab
all package local methods shown  
9 public fields shown
  • Select File menu -> Open class
  • Enter 'java.lang.String' in textfield
  • Press OK button
  • Select public fields tab
all public fields shown  
10 protected fields shown
  • Select File menu -> Open class
  • Enter 'java.lang.String' in textfield
  • Press OK button
  • Select protected fields tab
all protected fields shown  
11 private fields shown
  • Select File menu -> Open class
  • Enter 'java.lang.String' in textfield
  • Press OK button
  • Select private fields tab
all private fields shown  
12 package local fields shown
  • Select File menu -> Open class
  • Enter 'java.lang.String' in textfield
  • Press OK button
  • Select package local fields tab
all package local fields shown  

 

Author: Jonathon Lee
Date: 3/5/01