Code example for File

Methods: getName

0
        assertCleanServerBaseDir(cleanServerBaseDir, 1);
    } 
 
    @Test 
    public void testAlternativeServerBaseDir() throws Exception { 
        ManagedDomainDeployableContainer.setupCleanServerDirectories(".." + File.separatorChar + alternativeServer.getName(), jbossHome.getAbsolutePath(), null);
        assertCleanServerBaseDir(cleanServerBaseDir, 2);
    } 
 
    @Test 
    public void testUserCleanServerBaseDir() throws Exception { 
        ManagedDomainDeployableContainer.setupCleanServerDirectories(defaultServerBaseDir, jbossHome.getAbsolutePath(), userCleanServerBaseDir.getAbsolutePath());
        assertCleanServerBaseDir(userCleanServerBaseDir, 1);
    } 
 
    private void assertCleanServerBaseDir(File cleanServerBaseDir, int id) {
        Assert.assertTrue(new File(cleanServerBaseDir, ManagedDomainDeployableContainer.SERVERS_DIR).exists());
        Assert.assertTrue(new File(cleanServerBaseDir, ManagedDomainDeployableContainer.DATA_DIR).exists());
        Assert.assertTrue(new File(cleanServerBaseDir, ManagedDomainDeployableContainer.CONFIG_DIR).exists());
 
Experience pair programming with AI  Get Codota for Java