TS 61 SpringSupport
Spring Support Test Specification for NetBeans 6.0
Author: Andrei Badea, Jan Horvath
Version: 1.0
Last update: 18.2.2008
Introduction: This document contains procedures for testing Spring Support
Comments:
Contents |
Test suite: Project support (Java SE, EJB, Maven, web project)
- Create new project.
- Create new project.
- Add Spring Framework library.
- Create new Spring file:
- invoke File - New File - Spring Framework - Spring XML Configuration file
- select the source root as the target
- select some namespaces
- EXPECTED RESULT:
Check that the file was generated correctly (it is a well-formed, namespace declarations are present).
- Create another Spring file.
- Create a new Spring config file group:
- open project customize, select the Spring Framework category
- create a new group
- add the two Spring config files above
- press OK in the customizer
- Create a new Spring config file group:
- {{testcase|Edit the config file group:
- open project customize, select the Spring Framework category
- make sure the group is present and it contains the two config files
- remove one on the files
- press OK
- EXPECTED RESULT:
Open the customizer again and make sure the config file group now only contains the second file.
Test suite: Spring Web MVC support in web project
- Create new web project with the Spring Web MVC framework
- invoke New Web Application wizard
- on the frameworks panel select the Spring Web MVC 2.5 framework
- insert a different dispatcher name, e.g., "spring", and another dispatcher mapping, e.g., "/app/*"
- finish the wizard
- EXPECTED RESULT:
Check the files were generated correctly:
- web/WEB-INF/applicationContext.xml - web/WEB-INF/spring-servlet.xml - web/WEB-INF/index.jsp containing a redirect to /app/index
- web/WEB-INF/jsp/index.jsp- Check there is a config file group named "Default" which contains the two files above.
- Run the project, check that it displays the contents of web/WEB-INF/jsp/index.jsp.
- Invoke the Spring Web MVC controller wizards (Spring Framework - Abstract Controller and Simple Form Controller).
Test suite: Code completion
- Create a new org.example.FooService Java class.
- Check the code completion for Java classes:
- in applicationContext.xml insert
- Check the code completion for Java classes:
<bean id="fooService" class="
- invoke the code completion, select "org", then "example", then "FooService".
- alternately, type "FooS", invoke the code completion and select "FooService (org.example)". The whole class name should be completed.
- finish the bean definition to
-
<bean id="fooService" class="org.example.FooService"/>
- Check the code completion for bean names:
- in applicationContext.xml insert
-
<bean id="foo" parent="
- invoke the code completion, select "fooService". The "fooService" bean name should be completed.
- finish the bean definition to
-
<bean id="foo" parent="fooService"/>
Test suite: Hyperlinking
- Check that hyperlinking works for
-
<bean id="fooService" class="org.example.FooService"/>
-
- {{testcase|Check that hyperlinking works for
-
<bean id="foo" parent="fooService"/>
-

