mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
fixed testcase.
This commit is contained in:
@@ -1,22 +0,0 @@
|
||||
package com.alibaba.druid.bvt.utils;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
|
||||
import org.junit.Assert;
|
||||
|
||||
import com.alibaba.druid.util.PGUtils;
|
||||
|
||||
public class PGUtilsTest extends TestCase {
|
||||
|
||||
public void test_error() throws Exception {
|
||||
new PGUtils();
|
||||
|
||||
Exception error = null;
|
||||
try {
|
||||
PGUtils.createXAConnection(null);
|
||||
} catch (Exception e) {
|
||||
error = e;
|
||||
}
|
||||
Assert.assertNotNull(error);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user