support monitor

This commit is contained in:
wenshao
2013-08-14 17:24:40 +08:00
parent 5aa3d51128
commit a72da37909
41 changed files with 701 additions and 284 deletions
@@ -26,7 +26,7 @@ import java.io.Writer;
import junit.framework.TestCase;
import com.alibaba.druid.util.IOUtils;
import com.alibaba.druid.util.Utils;
public class TestReplaceLicense extends TestCase {
@@ -36,7 +36,7 @@ public class TestReplaceLicense extends TestCase {
protected void setUp() throws Exception {
InputStream is = Thread.currentThread().getContextClassLoader().getResourceAsStream("License.txt");
Reader reader = new InputStreamReader(is);
license = IOUtils.read(reader);
license = Utils.read(reader);
reader.close();
System.out.println(license);
@@ -65,7 +65,7 @@ public class TestReplaceLicense extends TestCase {
public void listJavaFile(File file) throws Exception {
FileInputStream in = new FileInputStream(file);
InputStreamReader reader = new InputStreamReader(in, "utf-8");
String content = IOUtils.read(reader);
String content = Utils.read(reader);
reader.close();
if (!content.startsWith(license)) {