/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* See LICENSE.txt included in this distribution for the specific
* language governing permissions and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at LICENSE.txt.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
*/
/**
* Test the RuntimeEnvironment class
*
* @author Trond Norbye
*/
public class RuntimeEnvironmentTest {
@SuppressWarnings("javadoc")
// preserve the original
// Create a default configuration
}
@SuppressWarnings("javadoc")
// restore the configuration
}
@Test
assertTrue(f.delete());
assertFalse(f.exists());
// setDataRoot() used to create path if it didn't exist, but that
// logic has been moved. Verify that it is so.
assertFalse(f.exists());
assertTrue(f.mkdirs());
}
@Test
public void run() {
assertTrue(f.delete());
try {
} catch (IOException e) {
throw new RuntimeException(e);
}
}
};
}
@Test
// actually all tests should use this pattern to make sure to really
// have a virgin RE
public void run() {
p.setPath("/bar");
}
};
}
@Test
public void run() {
Configuration c = new Configuration();
}
});
t.start();
t.join(1000);
}
@Test
public void testUrlPrefix() {
}
@Test
public void testCtags() {
}
@Test
public void testHistoryReaderTimeLimit() {
}
@Test
public void testUseHistoryCache() {
cfg.setHistoryCache(false);
}
@Test
public void testStoreHistoryCacheInDB() {
cfg.setHistoryCacheInDB(true);
}
@Test
public void testGenerateHtml() {
cfg.setGenerateHtml(false);
}
@Test
public void testCompressXref() {
cfg.setCompressXref(false);
}
@Test
public void testQuickContextScan() {
cfg.setQuickContextScan(false);
}
@Test
public void testRepositories() {
}
@Test
public void testIndexWordLimit() {
//default is unlimited
}
@Test
public void testVerbose() {
cfg.setVerbose(true);
}
@Test
public void testAllowLeadingWildcard() {
cfg.setAllowLeadingWildcard(true);
}
@Test
public void testIgnoredNames() {
}
@Test
public void testUserPage() {
}
@Test
public void testBugPage() {
}
@Test
public void testBugPattern() {
}
@Test
public void testReviewPage() {
}
@Test
public void testReviewPattern() {
}
@Test
public void testWebappLAF() {
}
@Test
public void testRemoteScmSupported() {
cfg.setRemoteScmSupported(true);
}
@Test
public void testOptimizeDatabase() {
cfg.setOptimizeDatabase(false);
}
@Test
public void testUsingLuceneLocking() {
cfg.setUsingLuceneLocking(true);
}
@Test
public void testIndexVersionedFilesOnly() {
cfg.setIndexVersionedFilesOnly(true);
}
@Test
try {
} catch (InterruptedException exp) {
// do nothing
}
}
Configuration c = new Configuration();
String m = c.getXMLRepresentationAsString();
assertNotNull(o);
}
@Test
assertNotNull(f);
assertTrue(f.isAbsolute());
}
@Test
// The point of this test was to verify that setDataRoot() created
// the directory, but that logic has been moved as of bug 16986, so
// expect that the file does not exist.
}
@Test
// By default, don't obfuscate.
cfg.setObfuscatingEMailAddresses(true);
cfg.setObfuscatingEMailAddresses(false);
}
@SuppressWarnings("boxing")
throws IOException
{
w.close();
: address;
}
@Test
public void isChattyStatusPage() {
// By default, status page should not be chatty.
cfg.setChattyStatusPage(true);
cfg.setChattyStatusPage(false);
}
}