jst j2ee
test plan: Opening files in Editors
Intoduction
The test case explains opening of different resources in different editors.
Steps
Opening deployment descriptors
Create an EAR with all the modules
File-->New-->Project
Select Enterprise Application Project under J2EE-->Next
Enter the name as TestEAR-->Next
Click on New Module-->Finish
Finish
Expand the TestEAR-->Double Click on the TestEAR deployment Descriptor
Application.xml file should open up in the xml editor
Expand different modules and double click on the deployment Descriptor's of each module. Deployment descriptor should open in the xml editor.
Change the default editor to text editor by right clicking on the Deployment Descriptor-->Open With-->Text Editor.
File should open up in text editor instead of xml editor.
Close the file and double click on the Deployment Descriptor. Deployment Descriptor should open up in the text editor.
Opening text files
Enable the filter to display all files.(.* files should be unchecked)
Expand the TestEARClient
Double click on the .j2ee file.
File should open in the text editor.
Opening Java files
Expand the TestEARClient
Double click on the function main(String[])
The file should open up in Java Editor and the method main should be selected.
Close the Main.java file.
Change the default editor of the .java file by right click on Main.java-->Open With-->Text Editor
The file opens in the text editor. Close the file
Double click on the Main.java file. The file should open in the text editor instead of Java Editor.