This commit is contained in:
Looly
2024-09-19 17:04:31 +08:00
parent bc3f6cf1ee
commit 59c168a99c
29 changed files with 415 additions and 234 deletions

View File

@@ -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);
}
}