refactor test

This commit is contained in:
温少
2012-03-19 21:15:29 +08:00
parent 28e1cd5ce5
commit 29ce11616c
10 changed files with 19 additions and 18 deletions
@@ -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 {
@@ -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;
@@ -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;
@@ -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.*;
@@ -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,4 +1,4 @@
package com.alibaba.druid.benckmark;
package com.alibaba.druid.benckmark.proxy;
import java.util.concurrent.atomic.AtomicInteger;
@@ -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 {
@@ -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 {
@@ -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 {
@@ -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 {