void () { PathMappingSettings settings = new PathMappingSettings(); PyRemotePathMapper emptyMapper = PyRemotePathMapper.fromSettings(settings, PyPathMappingType.USER_DEFINED); assertTrue(emptyMapper.isEmpty()); settings.add(new PathMappingSettings.PathMapping("C:\\local\\folder", "/remote/folder")); settings.add(new PathMappingSettings.PathMapping("C:\\local\\folder\\child", "/remote/child-from-local")); settings.add(new PathMappingSettings.PathMapping("C:\\local\\child-from-remote", "/remote/folder/child")); PyRemotePathMapper mapper = PyRemotePathMapper.fromSettings(settings, PyPathMappingType.HELPERS); assertFalse(mapper.isEmpty()); assertConvertsOneToAnother(mapper, "C:\\local\\folder\\src\\main.py", "/remote/folder/src/main.py"); assertConvertsOneToAnother(mapper, "C:\\local\\folder\\child\\test\\all.py", "/remote/child-from-local/test/all.py"); assertConvertsOneToAnother(mapper, "C:/local/child-from-remote/README", "/remote/folder/child/README"); assertEquals("/unmapped/list.txt", mapper.convertToLocal("/unmapped/list.txt")); assertEquals("C:\\unmapped\\list.txt", mapper.convertToRemote("C:\\unmapped\\list.txt")); }