File tree Expand file tree Collapse file tree 8 files changed +16
-16
lines changed
src/test/java/org/apache/commons/beanutils Expand file tree Collapse file tree 8 files changed +16
-16
lines changed Original file line number Diff line number Diff line change 2727import java .util .List ;
2828
2929import org .apache .commons .beanutils .bugs .other .Jira492IndexedListsSupport ;
30- import org .junit .After ;
31- import org .junit .Before ;
32- import org .junit .Test ;
30+ import org .junit .jupiter . api . AfterEach ;
31+ import org .junit .jupiter . api . BeforeEach ;
32+ import org .junit .jupiter . api . Test ;
3333
3434/**
3535 * <p>Test Case for the Indexed Properties.</p>
@@ -53,7 +53,7 @@ public class IndexedPropertyTestCase {
5353 /**
5454 * Set up instance variables required by this test case.
5555 */
56- @ Before
56+ @ BeforeEach
5757 public void setUp () {
5858
5959 // BeanUtils
@@ -89,7 +89,7 @@ public void setUp() {
8989 /**
9090 * Tear down instance variables required by this test case.
9191 */
92- @ After
92+ @ AfterEach
9393 public void tearDown () {
9494 bean = null ;
9595 }
Original file line number Diff line number Diff line change 2828import org .apache .commons .beanutils .PropertyUtils ;
2929import org .junit .Assert ;
3030import org .junit .Assume ;
31- import org .junit .BeforeClass ;
32- import org .junit .Test ;
31+ import org .junit .jupiter . api . BeforeAll ;
32+ import org .junit .jupiter . api . Test ;
3333
3434class FirstChildBean extends RootBean {
3535}
@@ -50,7 +50,7 @@ public class Jira422TestCase {
5050 *
5151 * @see <a href="https://issues.apache.org/jira/browse/BEANUTILS-492">BEANUTILS-492</a>
5252 */
53- @ BeforeClass
53+ @ BeforeAll
5454 public static void assumeSupportsIndexedLists () throws IntrospectionException {
5555 final BeanInfo beanInfo = Introspector .getBeanInfo (RootBean .class );
5656 for (final PropertyDescriptor pd : beanInfo .getPropertyDescriptors ()) {
Original file line number Diff line number Diff line change 1919import static org .junit .Assert .assertEquals ;
2020
2121import org .apache .commons .beanutils .PropertyUtils ;
22- import org .junit .Test ;
22+ import org .junit .jupiter . api . Test ;
2323
2424class FirstChildBeanB extends RootBeanB {
2525}
Original file line number Diff line number Diff line change 2929import org .apache .commons .beanutils .BeanUtilsBean ;
3030import org .apache .commons .beanutils .PropertyUtilsBean ;
3131import org .apache .commons .beanutils .bugs .other .Jira492IndexedListsSupport .IndexedBean ;
32- import org .junit .Before ;
33- import org .junit .Test ;
32+ import org .junit .jupiter . api . BeforeEach ;
33+ import org .junit .jupiter . api . Test ;
3434
3535/**
3636 * This test verifies that although BEANUTILS-492
@@ -105,7 +105,7 @@ public void getPropertyUnconverted() throws Exception {
105105 assertTrue ("Did not retrieve list" , someList instanceof List );
106106 }
107107
108- @ Before
108+ @ BeforeEach
109109 public void makeBean () {
110110 bean = new IndexedBean ();
111111 bean .setSomeList (Arrays .asList ("item0" , "item1" ));
Original file line number Diff line number Diff line change 2020
2121import org .apache .commons .beanutils .BeanUtilsBean ;
2222import org .apache .commons .beanutils .LazyDynaBean ;
23- import org .junit .Test ;
23+ import org .junit .jupiter . api . Test ;
2424
2525/**
2626 * Test setting indexed properties on dynabeans
Original file line number Diff line number Diff line change 2626
2727import org .apache .commons .beanutils .FluentPropertyBeanIntrospector ;
2828import org .apache .commons .beanutils .PropertyUtilsBean ;
29- import org .junit .Test ;
29+ import org .junit .jupiter . api . Test ;
3030
3131/**
3232 * Fix BEANUTILS-541
Original file line number Diff line number Diff line change 2626
2727import org .apache .commons .beanutils .ConvertUtils ;
2828import org .apache .commons .beanutils .Converter ;
29- import org .junit .Test ;
29+ import org .junit .jupiter . api . Test ;
3030
3131/**
3232 * This class provides a number of unit tests related to classloaders and
Original file line number Diff line number Diff line change 4141import org .apache .commons .beanutils .locale .LocaleConvertUtils ;
4242import org .apache .commons .beanutils .locale .converters .IntegerLocaleConverter ;
4343import org .junit .Assume ;
44- import org .junit .Test ;
44+ import org .junit .jupiter . api . Test ;
4545
4646/**
4747 * Tests BeanUtils memory leaks.
You can’t perform that action at this time.
0 commit comments