The short answer is that this is not supported JBehave 2 and 3. In JBehave 1 there was an attempt to do a Java-text-Java round trip, but we found it was not useful to satisfy the real usecase of the BDD, which is the communication with the stakeholders.
If you are finding you are repeating code, it means that you should be refactoring it. Moreover, what do you mean by Java classes? The configuration or the steps? If you give us an example of your setup, we can help you minimise the code repeatitions. Cheers On 16/07/2010 10:02, Pranav Singh wrote: > Hi, > > I'm using JBehave for straight-forward tests. Which leads me to write > redundant classes. After a while, this becomes tedious. > > Those anybody knows a way to automatically generate Java classes based > on the scenarios? > > I have checked JIRA and found issues jbehave-95 and jbehave-94 to be > closed and jbehave-148 to still be open. I haven't found any examples > of the website either. I'm not sure if it's something that has been > done, or if I need to create my own generator. > > Cheers, > Pran.
