Examples of assertDoesNotExist()


Examples of org.gradle.test.fixtures.file.TestFile.assertDoesNotExist()

    }

    @Test
    public void initialisesCacheWhenCacheDirDoesNotExist() {
        TestFile emptyDir = tmpDir.getTestDirectory().file("dir");
        emptyDir.assertDoesNotExist();

        context.checking(new Expectations() {{
            one(action).execute(with(notNullValue(PersistentCache.class)));
        }});
View Full Code Here

Examples of org.gradle.util.TestFile.assertDoesNotExist()

    private final Map<String, String> properties = GUtil.map("prop", "value", "prop2", "other-value");

    @Test
    public void cacheIsInvalidWhenCacheDirDoesNotExist() {
        TestFile emptyDir = tmpDir.getDir().file("dir");
        emptyDir.assertDoesNotExist();

        DefaultPersistentDirectoryCache cache = new DefaultPersistentDirectoryCache(emptyDir, CacheUsage.ON, properties);
        assertFalse(cache.isValid());

        emptyDir.assertIsDir();
View Full Code Here

Examples of org.gradle.util.TestFile.assertDoesNotExist()

    @Test
    public void testNeedsCopy() throws IOException {
        TestFile source = tmpDir.createFile("src");
        TestFile dest = tmpDir.getDir().file("dest");
        dest.assertDoesNotExist();

        TestFileTreeElement element = new TestFileTreeElement(source);

        assertTrue(element.needsCopy(dest));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.