mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix code
This commit is contained in:
@@ -101,4 +101,11 @@ public class BeanCopierTest {
|
||||
Assertions.assertEquals("abc", b.getValue());
|
||||
}
|
||||
|
||||
@Test
|
||||
void stringToBeanTest() {
|
||||
final String str = "null";
|
||||
final BeanCopier<A> copier = BeanCopier.of(str, new A(), CopyOptions.of());
|
||||
final A copy = copier.copy();
|
||||
Assertions.assertNull(copy.value);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user