@Override public boolean apply(Event e) { IgfsEvent e0 = (IgfsEvent)e; return e0.type() == EVT_IGFS_FILE_PURGED && e0.path().equals(file1); } },
@Override public boolean apply(Event e) { IgfsEvent e0 = (IgfsEvent)e; return e0.type() == EVT_IGFS_FILE_CLOSED_WRITE && e0.path().equals(file1); } }
@Override public boolean apply(Event e) { IgfsEvent e0 = (IgfsEvent)e; return e0.type() == EVT_IGFS_FILE_OPENED_WRITE && e0.path().equals(file1); } },
/** {@inheritDoc} */ @Override public boolean apply(Event e) { IgfsEvent e0 = (IgfsEvent)e; return e0.type() == evt && e0.path().equals(path); } }
assertEquals(new IgfsPath("/file1"), evt.path()); assertEquals(new IgfsPath("/file1"), evt.path()); assertEquals(new IgfsPath("/file1"), evt.path()); assertEquals((long)dataSize, evt.dataSize()); assertEquals(new IgfsPath("/file1"), evt.path()); assertEquals(new IgfsPath("/file1"), evt.path()); assertEquals((long) dataSize, evt.dataSize());
assertEquals(new IgfsPath("/dir1"), evt.path()); assertTrue(evt.isDirectory()); assertEquals(new IgfsPath("/dir1/file1"), evt.path()); assertFalse(evt.isDirectory()); assertEquals(new IgfsPath("/dir1/file1"), evt.path()); assertEquals(new IgfsPath("/dir1/file1"), evt.path()); assertEquals(new IgfsPath("/dir1/file2"), evt.path()); assertFalse(evt.isDirectory()); assertEquals(new IgfsPath("/dir1/file2"), evt.path()); assertEquals(new IgfsPath("/dir1/file2"), evt.path()); assertEquals(new IgfsPath("/dir1"), evt.path());
assertEquals(new IgfsPath("/dir1"), evt.path()); assertEquals(new IgfsPath("/dir1/dir2"), evt.path()); assertEquals(new IgfsPath("/dir1/dir2/file1"), evt.path()); assertEquals(new IgfsPath("/dir1/dir2/file1"), evt.path()); assertEquals(new IgfsPath("/dir1/dir2/file1"), evt.path()); assertEquals(0, evt.dataSize()); assertEquals(new IgfsPath("/dir1/dir2/file1"), evt4.path()); assertEquals(new IgfsPath("/dir1/file1"), evt4.newPath());
assertEquals(new IgfsPath("/dir1"), evt.path()); assertTrue(evt.isDirectory()); assertEquals(new IgfsPath("/dir1/dir2"), evt.path()); assertEquals(new IgfsPath("/dir1/dir2/dir3"), evt.path()); assertEquals(new IgfsPath("/dir1/dir2/dir3/file1"), evt.path()); assertFalse(evt.isDirectory()); assertEquals(new IgfsPath("/dir1/dir2/dir3/file1"), evt.path()); assertEquals(new IgfsPath("/dir1/dir2/dir3/file1"), evt.path()); assertEquals(0, evt.dataSize()); assertEquals(new IgfsPath("/dir1/dir2/dir3/file1"), evt.path()); assertEquals(new IgfsPath("/dir1/dir2/dir3/mvFile1"), evt.newPath()); assertEquals(new IgfsPath("/dir1/dir2"), evt.path());
assertEquals(new IgfsPath("/dir1"), evt.path()); assertTrue(evt.isDirectory()); assertEquals(new IgfsPath("/dir1/file1"), evt.path()); assertEquals(new IgfsPath("/dir1/file1"), evt.path()); assertEquals(new IgfsPath("/dir1/file1"), evt.path()); assertEquals(0, evt.dataSize()); assertEquals(new IgfsPath("/dir1/file2"), evt.path()); assertEquals(new IgfsPath("/dir1/file2"), evt.path()); assertEquals(new IgfsPath("/dir1/file2"), evt.path()); assertEquals(0, evt.dataSize());