mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
refactor
This commit is contained in:
+1
-3
@@ -82,7 +82,5 @@ public class SQLServerWallPermitFunctionTest extends TestCase {
|
||||
Assert.assertFalse(WallUtils.isValidateSqlServer("SELECT is_srvrolemember(‘sysadmin’, ‘sa’); "));
|
||||
}
|
||||
|
||||
public void test_system_user() throws Exception {
|
||||
Assert.assertFalse(WallUtils.isValidateSqlServer("SELECT system_user;"));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -36,7 +36,11 @@ public class SQLServerWallPermitObjectTest extends TestCase {
|
||||
super.tearDown();
|
||||
}
|
||||
|
||||
public void test01() throws Exception {
|
||||
public void test_user() throws Exception {
|
||||
Assert.assertFalse(WallUtils.isValidateSqlServer("SELECT user;"));
|
||||
}
|
||||
|
||||
public void test_system_user() throws Exception {
|
||||
Assert.assertFalse(WallUtils.isValidateSqlServer("SELECT system_user;"));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user