Does /testCase.html work?
On Fri, Aug 8, 2008 at 10:36 AM, dwightd <[EMAIL PROTECTED]> wrote:
>
> I made up a "TestCase.java" class to demonstrate.
> "mvn" fails during the UI test phase; after all the "User" UI tests
> complete
> OK, and FlushCache and FileUpload, then I get this:
>
> SearchTestCases:
> [INFO] [talledLocalContainer] [LStst4] WARN [http-8081-13]
> PageNotFound.noHandlerFound(1068) | No mapping found for HTTP request with
> URI [/LStst4-1.0-SNAPSHOT/testCases.html] in DispatcherServlet with name
> 'dispatcher'
> ...
>
> The source for TestCase.java:
>
> package com.LStst.app.model;
> import javax.persistence.*;
> import static javax.persistence.GenerationType.IDENTITY;
>
> @Entity
> @Table(name = "test_case")
> public class TestCase implements java.io.Serializable {
> static final long serialVersionUID = 1L;
> private Integer id;
> private String name;
>
> public TestCase() {
> }
> public TestCase(String name) {
> this.name = name;
> }
>
> @Id
> @GeneratedValue(strategy = IDENTITY)
> @Column(name = "Id", unique = true, nullable = false)
> public Integer getId() {
> return this.id;
> }
> public void setId(Integer id) {
> this.id = id;
> }
>
> @Column(name = "Name", length = 50)
> public String getName() {
> return this.name;
> }
> public void setName(String name) {
> this.name = name;
> }
> }
>
> gen added this applicationContext.xml entry:
> <!--TestCaseManager-START-->
> <bean id="testCaseManager"
> class="org.appfuse.service.impl.GenericManagerImpl">
> <constructor-arg>
> <bean class="org.appfuse.dao.hibernate.GenericDaoHibernate">
> <constructor-arg value="com.LStst.app.model.TestCase"/>
> <property name="sessionFactory" ref="sessionFactory"/>
> </bean>
> </constructor-arg>
> </bean>
> <!--TestCaseManager-END-->
>
> gen added this to dispatcher-servlet.xml:
> <!--TestCase-START-->
> <bean id="testCaseController"
> class="com.LStst.app.webapp.controller.TestCaseController">
> <property name="testCaseManager" ref="testCaseManager"/>
> </bean>
>
> <bean id="testCaseFormController"
> class="com.LStst.app.webapp.controller.TestCaseFormController">
> <property name="validator" ref="beanValidator"/>
> <property name="successView" value="redirect:testCases.html"/>
> <property name="testCaseManager" ref="testCaseManager"/>
> </bean>
> <!--TestCase-END-->
>
> gen added this menu-config.xml entry:
> <Menu name="TestCaseMenu" title="testCaseList.title"
> page="/testCases.html"/>
>
> gen added this to validation.xml:
> <!--TestCase-START-->
> <form name="testCase">
> </form>
> <!--TestCase-END-->
>
> but that failed XML validation - "missing (field)+", so I added a field
> entry:
> <form name="testCase">
> <field property="name" depends="required">
> <arg0 key="testCase.name"/>
> </field>
> </form>
>
> gen also created
> LStst4\src\main\webapp\WEB-INF\pages\testCases.jsp
> LStst4\src\main\webapp\WEB-INF\pages\testCaseform.jsp
>
> TIA, Dwight
>
>
> mraible wrote:
> >
> > Please post the source of VehicleLog.
> > Thanks,
> > Matt
> >
> > On Aug 7, 2008, at 6:55 PM, dwightd <[EMAIL PROTECTED]> wrote:
> >>
> >> I'm a newbie to AppFuse and Spring, but there appears to be a problem
> >> when i do
> >> appfuse:gen -Dentity=VehicleLog
> >> for example. The uppercase character embedded in the class name causes
> >> problems.
> > <snip>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/problem-in-filenames-with-appfuse%3Agen-and-mixed-case-class-name-tp18883094s2369p18895164.html
> Sent from the AppFuse - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>