Skip to content

To create a new test, we shouldn't need to specify the project root in the path #36

Open
@agoncal

Description

I am scaffolding a JSF application with Forge. Then, I create a test but, without specifying the project root, it doesn't work. Here is how to reproduce it. In this example I create a project (arqproject), an entity, generate a backing bean, and then I want to create a test class. If I use code completion (pressing TAB) I end up with a path that doesn't contain arqproject and it doesn't work. I have to manually add it:

[temp]$ project-new --named arqproject
[arqproject]$ jpa-new-entity --named ArqEntity
[ArqEntity.java]$ jpa-new-field --named arqField
[ArqEntity.java]$ scaffold-generate --targets org.arqproject.model.ArqEntity
[ArqEntity.java]$ cd ~~
[arqproject]$ arquillian-setup --testFramework junit
[arqproject]$ arquillian-create-test --value src/main/java/org/arqproject/view/ArqEntityBean.java
***ERROR*** cannot obtain stream to file: file does not exist: /Users/antoniombp/Documents/Code/Devoxx/src/main/java/org/arqproject/view/ArqEntityBean.java
[arqproject]$ arquillian-create-test --value arqproject/src/main/java/org/arqproject/view/ArqEntityBean.java

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions