com.github.database.rider.junit5.api.DBRider Maven / Gradle / Ivy
package com.github.database.rider.junit5.api;
import com.github.database.rider.junit5.DBUnitExtension;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import java.lang.annotation.*;
/**
* Created by rafael-pestano on 26/10/2016.
*
* Shortcut to enable database rider in junit5 tests. Replaces @ExtendWith(DBUnitExtension.class) and can also be used at method level.
*/
@Target({ ElementType.METHOD, ElementType.TYPE })
@Retention(RetentionPolicy.RUNTIME)
@ExtendWith(DBUnitExtension.class)
@Test
public @interface DBRider {
/**
* @return name of the DataSource bean in Spring Context.
* If empty then default dataSource will be used.
*/
String dataSourceBeanName() default "";
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy