Hi.
I tired to create a simple multi-module REST Application with service layer with Roo like this:
As you can see I tried to create integration tests with --testAutomatically. Unfortunately the generated tests are located in the domain module but use the service classes of the service module. This of course doesn't work because domain has no dependency to service (and shouldn't have one).Code:project --topLevelPackage ch.bfh.swos.bookapp --projectName ch.bfh.swos.bookapp module create --moduleName ch.bfh.swos.bookapp.domain --topLevelPackage ch.bfh.swos.bookapp.domain jpa setup --provider ECLIPSELINK --database HYPERSONIC_IN_MEMORY entity jpa --class ~.model.Book --activeRecord false --testAutomatically entity jpa --class ~.model.Author --activeRecord false --testAutomatically field string --fieldName title --notNull --class ~.model.Book field date --fieldName releaseDate --type java.util.Date field reference --fieldName author --type ~.model.Author --notNull field string --fieldName firstname --notNull --class ~.model.Author field string --fieldName lastname --notNull field set --fieldName books --type ~.model.Book --cardinality ONE_TO_MANY repository jpa --interface ~.repository.BookRepository --entity ~.model.Book repository jpa --interface ~.repository.AuthorRepository --entity ~.model.Author module focus --moduleName ~ module create --moduleName ch.bfh.swos.bookapp.service --topLevelPackage ch.bfh.swos.bookapp.service service --interface ~.BookService --entity ~.domain.model.Book --class ~.impl.BookServiceImpl service --interface ~.AuthorService --entity ~.domain.model.Author --class ~.impl.AuthorServiceImpl module focus --moduleName ~ module create --moduleName ch.bfh.swos.bookapp.rest --topLevelPackage ch.bfh.swos.bookapp.rest json all web mvc json setup web mvc json all --package ~.controller
Is there a way to create the tests in the service layer or is this a bug I should report?


Reply With Quote