testVirtualFileAdaptor(file, "beans");
}
protected void testVirtualFileAdaptor(VirtualFile file, String pathName) throws Exception
{
VirtualFileAdaptor adaptor = new VirtualFileAdaptor(file);
adaptor = serializeDeserialize(adaptor, VirtualFileAdaptor.class);
VirtualFileAdaptor vfaChild = adaptor.findChild(pathName);
assertNotNull(vfaChild);
List<VirtualFile> children = file.getChildren();
if (children != null)
{
for (VirtualFile child : children)
{
adaptor = new VirtualFileAdaptor(child);
adaptor = serializeDeserialize(adaptor, VirtualFileAdaptor.class);
assertNotNull(adaptor.findChild("..")); // should find parent
}
}
}