/**
 * 
 */
package com.chengmaoning.jroad;

import static org.junit.Assert.*;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.junit.Test;

public class HelloWorldTest {

	private static final Log logger = LogFactory.getLog(HelloWorldTest.class);

	@Test
	public void test() {
		System.out.println("inside a test.");
		assertTrue(true);
		
		String errMsg = "hello\nworld.";
		
		System.out.println( errMsg.indexOf("\n"));
		
		System.out.println(errMsg.substring(0, errMsg.indexOf("\n")));

		logger.debug("debug...");
		logger.info("info...");
		logger.warn("warn...");
		logger.error("error...");
		
		System.out.println(System.getProperty("java.class.path"));
		
		System.out.println(System.getProperty("java.ext.dirs"));

	}

}

@@ -73,16 +73,38 @@
 ert.*;%0A%0A
+import java.net.URL;%0A%0A
 import o
@@ -791,14 +791,444 @@
 rs%22));%0A%0A
+%09%09ClassLoader c = getClass().getClassLoader();%0A%09%09logger.info(c);%0A%09%09ClassLoader c1 = c.getParent();%0A%09%09logger.info(c1);%0A%09%09ClassLoader c2 = c1.getParent();%0A%09%09logger.info(c2);%0A%09%09%0A%09%09@SuppressWarnings(%22restriction%22)%0A%09%09URL%5B%5D urls = sun.misc.Launcher.getBootstrapClassPath().getURLs();%0A%09%09for (int i = 0; i %3C urls.length; i++) %7B%0A%09%09%09logger.info(urls%5Bi%5D.toExternalForm());%0A%09%09%7D%0A%09%09%0A%09%09logger.info(System.getProperty(%22sun.boot.class.path%22));%0A%09%09%0A
 %09%7D%0A%0A%7D%0A

fix conflict