Advertisement
elvyssoares

Resource Lock - Refactored

Dec 9th, 2021
1,310
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.28 KB | None | 0 0
  1. @Test
  2. @ResourceLock(value=SYSTEM_PROPERTIES, mode=READ_WRITE)
  3. void testEmptyList() {
  4.   System.setProperty("test.path.property", "");
  5.   List<Path> result = env.getPaths("test.path.property").collect(Collectors.toList());
  6.   MatcherAssert.assertThat(result, Matchers.hasSize(0));
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement