This commit is contained in:
xiusiyan
2012-03-18 22:39:31 +08:00
parent 994278a555
commit 88f03e5340
3 changed files with 7 additions and 5 deletions
@@ -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;"));
}
}