/*
* 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 {
public RuntimeEnvironmentTest() {
}
// preserve the original
}
// restore the configuration
}
// Create a default 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
assertTrue(f.delete());
}
@Test
p.setPath("/bar");
}
@Test
public void run() {
Configuration c = new Configuration();
}
});
t.start();
t.join();
}
@Test
public void testUrlPrefix() {
}
@Test
public void testCtags() {
}
@Test
public void testHistoryReaderTimeLimit() {
}
@Test
public void testUseHistoryCache() {
instance.setUseHistoryCache(false);
}
@Test
public void testStoreHistoryCacheInDB() {
env.setStoreHistoryCacheInDB(true);
}
@Test
public void testGenerateHtml() {
instance.setGenerateHtml(false);
}
@Test
public void testCompressXref() {
instance.setCompressXref(false);
}
@Test
public void testQuickContextScan() {
instance.setQuickContextScan(false);
}
@Test
public void testRepositories() {
}
@Test
public void testIndexWordLimit() {
}
@Test
public void testVerbose() {
instance.setVerbose(true);
}
@Test
public void testAllowLeadingWildcard() {
instance.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() {
instance.setRemoteScmSupported(true);
}
@Test
public void testOptimizeDatabase() {
instance.setOptimizeDatabase(false);
}
@Test
public void testUsingLuceneLocking() {
instance.setUsingLuceneLocking(true);
}
@Test
public void testIndexVersionedFilesOnly() {
}
@Test
try {
} catch (InterruptedException exp) {
// do nothing
}
}
@Test
Configuration c = new Configuration();
String m = c.getXMLRepresentationAsString();
assertNotNull(o);
try {
fail("makeXmlStringsAsConfiguration should throw exception");
} catch (Throwable t) {
}
}
@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.
assertObfuscated(false, env);
env.setObfuscatingEMailAddresses(true);
assertObfuscated(true, env);
env.setObfuscatingEMailAddresses(false);
assertObfuscated(false, env);
}
throws IOException {
"<a class=\"l\" name=\"1\" href=\"#1\">1</a>"
}
@Test
public void isChattyStatusPage() {
// By default, status page should not be chatty.
env.setChattyStatusPage(true);
env.setChattyStatusPage(false);
}
}