mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
refactor test
This commit is contained in:
+1
-1
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.alibaba.druid.benckmark;
|
||||
package com.alibaba.druid.benckmark.proxy;
|
||||
|
||||
public abstract class BenchmarkCase {
|
||||
|
||||
+1
-1
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.alibaba.druid.benckmark;
|
||||
package com.alibaba.druid.benckmark.proxy;
|
||||
|
||||
import java.lang.management.ManagementFactory;
|
||||
import java.text.NumberFormat;
|
||||
+1
-1
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.alibaba.druid.benckmark;
|
||||
package com.alibaba.druid.benckmark.proxy;
|
||||
|
||||
import java.sql.Connection;
|
||||
import java.sql.DriverManager;
|
||||
+2
-1
@@ -13,10 +13,11 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.alibaba.druid.benckmark;
|
||||
package com.alibaba.druid.benckmark.proxy;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
|
||||
import com.alibaba.druid.benckmark.proxy.sqlcase.SelectNow;
|
||||
import com.alibaba.druid.benckmark.sqlcase.*;
|
||||
import com.alibaba.druid.benckmark.sqlcase.dragoon.*;
|
||||
|
||||
+1
-1
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.alibaba.druid.benckmark;
|
||||
package com.alibaba.druid.benckmark.proxy;
|
||||
|
||||
import java.sql.Connection;
|
||||
import java.sql.SQLException;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.alibaba.druid.benckmark;
|
||||
package com.alibaba.druid.benckmark.proxy;
|
||||
|
||||
import java.util.concurrent.atomic.AtomicInteger;
|
||||
|
||||
+3
-3
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.alibaba.druid.benckmark.sqlcase;
|
||||
package com.alibaba.druid.benckmark.proxy.sqlcase;
|
||||
|
||||
import java.sql.Connection;
|
||||
import java.sql.ResultSet;
|
||||
@@ -21,8 +21,8 @@ import java.sql.Statement;
|
||||
|
||||
import junit.framework.Assert;
|
||||
|
||||
import com.alibaba.druid.benckmark.BenchmarkCase;
|
||||
import com.alibaba.druid.benckmark.SQLExecutor;
|
||||
import com.alibaba.druid.benckmark.proxy.BenchmarkCase;
|
||||
import com.alibaba.druid.benckmark.proxy.SQLExecutor;
|
||||
|
||||
public class Select1 extends BenchmarkCase {
|
||||
|
||||
+3
-3
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.alibaba.druid.benckmark.sqlcase;
|
||||
package com.alibaba.druid.benckmark.proxy.sqlcase;
|
||||
|
||||
import java.sql.Connection;
|
||||
import java.sql.ResultSet;
|
||||
@@ -21,8 +21,8 @@ import java.sql.Statement;
|
||||
|
||||
import junit.framework.Assert;
|
||||
|
||||
import com.alibaba.druid.benckmark.BenchmarkCase;
|
||||
import com.alibaba.druid.benckmark.SQLExecutor;
|
||||
import com.alibaba.druid.benckmark.proxy.BenchmarkCase;
|
||||
import com.alibaba.druid.benckmark.proxy.SQLExecutor;
|
||||
import com.alibaba.druid.util.JdbcUtils;
|
||||
|
||||
public class SelectEmptyTable extends BenchmarkCase {
|
||||
+3
-3
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.alibaba.druid.benckmark.sqlcase;
|
||||
package com.alibaba.druid.benckmark.proxy.sqlcase;
|
||||
|
||||
import java.sql.Connection;
|
||||
import java.sql.ResultSet;
|
||||
@@ -22,8 +22,8 @@ import java.util.Date;
|
||||
|
||||
import junit.framework.Assert;
|
||||
|
||||
import com.alibaba.druid.benckmark.BenchmarkCase;
|
||||
import com.alibaba.druid.benckmark.SQLExecutor;
|
||||
import com.alibaba.druid.benckmark.proxy.BenchmarkCase;
|
||||
import com.alibaba.druid.benckmark.proxy.SQLExecutor;
|
||||
|
||||
public class SelectNow extends BenchmarkCase {
|
||||
|
||||
+3
-3
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.alibaba.druid.benckmark.sqlcase.dragoon;
|
||||
package com.alibaba.druid.benckmark.proxy.sqlcase;
|
||||
|
||||
import java.sql.Connection;
|
||||
import java.sql.ResultSet;
|
||||
@@ -21,8 +21,8 @@ import java.sql.Statement;
|
||||
|
||||
import junit.framework.Assert;
|
||||
|
||||
import com.alibaba.druid.benckmark.BenchmarkCase;
|
||||
import com.alibaba.druid.benckmark.SQLExecutor;
|
||||
import com.alibaba.druid.benckmark.proxy.BenchmarkCase;
|
||||
import com.alibaba.druid.benckmark.proxy.SQLExecutor;
|
||||
|
||||
public class SelectSysUser extends BenchmarkCase {
|
||||
|
||||
Reference in New Issue
Block a user