Change Name of Tests

13 views
Skip to first unread message

richar...@taskize.co.uk

unread,
Oct 28, 2015, 1:29:14 PM10/28/15
to Sculptor Generator
Hi -

I would like to override the names for the tests.

Currently they all end in *Test.java.

As these are really Integration Tests I would like them to end in *IT.java.

I have tried searching GIT to find out what class to Override but its not clear.

Can you point me in the right direction.

Additionally - as I asked already I want the test classes to override a different base class.

This class is now called AbstractIntegrationTests.

I have added the following to the sculptor.generator.properties but to no avail. 

framework.test.AbstractIntegrationTests=com.taskize.AbstractIntegrationTests


The generated classes are still not extending the class I want them to. 

richar...@taskize.co.uk

unread,
Oct 29, 2015, 5:59:50 AM10/29/15
to Sculptor Generator
I have figured this out. So all good. 

richar...@taskize.co.uk

unread,
Oct 29, 2015, 6:02:13 AM10/29/15
to Sculptor Generator
Sorry. I mean I have figured out the first part, I have renamed my Test classes.

I still have the issue regarding overriding the Abstract class they extend.

This class is now called AbstractIntegrationTests.

I have added the following to the sculptor.generator.properties but to no avail. 

framework.test.AbstractIntegrationTests=com.taskize.AbstractIntegrationTests

But still does not work. 


On Wednesday, 28 October 2015 17:29:14 UTC, richar...@taskize.co.uk wrote:

Torsten Juergeleit

unread,
Oct 29, 2015, 8:04:01 AM10/29/15
to Sculptor Generator
From where did you get the property name "framework.test.AbstractIntegrationTests"?

In Properties.databaseJpaTestCaseClass() (which is referenced in ServiceTestTmpl) the property "test.AbstractDbUnitJpaTests" is used.

/Torsten

richar...@taskize.co.uk

unread,
Oct 29, 2015, 10:53:49 AM10/29/15
to Sculptor Generator
Actually, not sure if that was the issue. But its all working now.

Still have the Evaluator issue which is a complete pain and happens on this line. 

org.sculptor.maven.plugin.GeneratorMojo.execute(GeneratorMojo.java:224)

Reply all
Reply to author
Forward
0 new messages