Monday, February 7, 2011

JUnit 4 TestSuite Declaration

package com.ragsetty.practice;

import org.junit.runner.RunWith;
import org.junit.runners.Suite;

@RunWith(Suite.class)
@Suite.SuiteClasses({
MyFirstTest.class,
MySecondTest.class
})
public class SomeClassName {
// This is just to compile and run. Nothing is required in this class.
}

No comments:

Post a Comment