Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test code generation? #10

Closed
olale opened this issue Feb 10, 2015 · 4 comments
Closed

Test code generation? #10

olale opened this issue Feb 10, 2015 · 4 comments

Comments

@olale
Copy link

olale commented Feb 10, 2015

Hi!

In the previous version of GraphWalker, there were command line options for generating stubs for the tests. Where are those options now?

@KristianKarl-zz
Copy link
Contributor

The all-purpose stub generator is still left to do.

For java though, it has been replaced by the Interface generator. The generator requires that the models are put into the folder:

src/main/resources

To generate the interfaces:

mvn graphwalker:generate-sources

It is also run (automatically) when running

mvn graphwalker:test

or

mvn graphwalker:watch

The last command is a convenience command, that if left running, it will update the interface whenever the models are changed.

@KristianKarl-zz
Copy link
Contributor

@olale
Copy link
Author

olale commented Feb 11, 2015

Thanks! I assume that the models are added after the interfaces that they must implement have been generated?

@KristianKarl-zz
Copy link
Contributor

With models, we mean the .graphml files. An interface is a representation of the model - a Java Interface.
I believe that what you refer to, is the implementation of an interface. And yes, they are added afterwards by you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants