JBoss Community

Re: Embedded AS

created by Kabir Khan in JBoss AS7 Development - View the full discussion

I've played with a simple runner so I think we can do away with the common/ stuff

 

This would leave us with assembly/ which can maybe be moved into impl/.

 

We'd then end up with test/ which would just contain the skeleton test classes:

 

@RunWith(ModularJunitTestRunner.class)

@TestModules({...})

@TestSetup(implClass="__ThrowawayTestImpl", ...)

public class __ThrowawayTestCase {

   //No @Test methods, they are loaded from the Impl class

}

 

and the real test in impl

 

public class __ThrowawayTestImpl{

    @Test

    public void test1() {

 

    }

 

    @Test

    public void test2() {

 

    }

}

This is better, but can it be made simpler somehow?

Reply to this message by going to Community

Start a new discussion in JBoss AS7 Development at Community