Lines Matching refs:assertTrue

67         assertTrue(dir.mkdir());
118 assertTrue(attrs.isSymbolicLink());
140 static void assertTrue(boolean v) {
145 assertTrue(!v);
160 assertTrue(file.isFile());
161 assertTrue(isSymLink(link2file));
162 assertTrue(isSymLink(link2link2file));
163 assertTrue(dir.isDirectory());
164 assertTrue(isSymLink(link2dir));
165 assertTrue(isSymLink(link2link2dir));
166 assertTrue(isSymLink(link2nobody));
167 assertTrue(isSymLink(link2link2nobody));
196 assertTrue(link.delete());
197 assertTrue(!isSymLink(link));
198 assertTrue(file.exists());
201 assertTrue(link.delete());
202 assertTrue(!isSymLink(link));
203 assertTrue(link2file.exists());
206 assertTrue(link.delete());
207 assertTrue(!isSymLink(link));
208 assertTrue(dir.exists());
211 assertTrue(link.delete());
212 assertTrue(!isSymLink(link));
213 assertTrue(link2dir.exists());
216 assertTrue(link.delete());
217 assertTrue(!isSymLink(link));
218 assertTrue(isSymLink(link2nobody));
227 assertTrue(link2file.renameTo(newlink));
229 assertTrue(file.exists());
230 assertTrue(isSymLink(newlink));
231 assertTrue(!isSymLink(link2file));
236 assertTrue(link2dir.renameTo(newlink));
238 assertTrue(dir.exists());
239 assertTrue(isSymLink(newlink));
240 assertTrue(!isSymLink(link2dir));
250 assertTrue(dir.list().length == 0); // directory should be empty
251 assertTrue(link2dir.list().length == 0);
252 assertTrue(link2link2dir.list().length == 0);
254 assertTrue(entry.createNewFile());
255 assertTrue(dir.list().length == 1);
256 assertTrue(dir.list()[0].equals(name));
259 assertTrue(link2dir.list().length == 1);
260 assertTrue(link2dir.list()[0].equals(name));
261 assertTrue(link2link2dir.list().length == 1);
262 assertTrue(link2link2dir.list()[0].equals(name));
265 assertTrue(link2file.list() == null);
266 assertTrue(link2nobody.list() == null);
274 assertTrue(file.isFile());
275 assertTrue(link2file.isFile());
276 assertTrue(link2link2file.isFile());
278 assertTrue(dir.isDirectory());
279 assertTrue(link2dir.isDirectory());
280 assertTrue(link2link2dir.isDirectory());
288 assertTrue(file.isHidden());
289 assertTrue(link2file.isHidden());
290 assertTrue(link2link2file.isHidden());
302 assertTrue(len > 0L);
304 assertTrue(link2file.length() == len);
305 assertTrue(link2link2file.length() == len);
306 assertTrue(link2nobody.length() == 0L);
312 assertTrue(origLastModified != 0L);
317 assertTrue(lastModified != origLastModified);
318 assertTrue(lastModifiedOfSymLink(link2file) != lastModified);
319 assertTrue(lastModifiedOfSymLink(link2link2file) != lastModified);
320 assertTrue(link2file.lastModified() == lastModified);
321 assertTrue(link2link2file.lastModified() == lastModified);
322 assertTrue(link2nobody.lastModified() == 0L);
325 assertTrue(origLastModified != 0L);
327 assertTrue(dir.lastModified() == 0L);
328 assertTrue(link2dir.lastModified() == 0L);
329 assertTrue(link2link2dir.lastModified() == 0L);
334 assertTrue(file.canRead());
335 assertTrue(file.canWrite());
336 assertTrue(link2file.canRead());
337 assertTrue(link2file.canWrite());
338 assertTrue(link2link2file.canRead());
339 assertTrue(link2link2file.canWrite());
346 assertTrue(file.setWritable(true)); // make writable
347 assertTrue(file.canWrite());
348 assertTrue(link2file.canWrite());
349 assertTrue(link2link2file.canWrite());
351 assertTrue(link2file.setReadOnly()); // make read only
356 assertTrue(link2link2file.setWritable(true)); // make writable
357 assertTrue(file.canWrite());
358 assertTrue(link2file.canWrite());
359 assertTrue(link2link2file.canWrite());