fix UT
This commit is contained in:
parent
992a19f2dd
commit
d9df1b63d9
@ -119,10 +119,8 @@ public class DatabaseServiceTest extends DBExtensionTests{
|
||||
public void testBuildLimitQuery() {
|
||||
DatabaseService dbService = DatabaseService.get(testDbConfig.getDatabaseType());
|
||||
String limitQuery = dbService.buildLimitQuery(100, 0, "SELECT * FROM " + testTable);
|
||||
|
||||
Assert.assertNotNull(limitQuery);
|
||||
|
||||
Assert.assertEquals(limitQuery, "SELECT * FROM " + testTable + " LIMIT " + 100 + " OFFSET " + 0 + ";");
|
||||
Assert.assertEquals(limitQuery, "SELECT * FROM (SELECT * FROM " + testTable + ") data LIMIT " + 100 + " OFFSET " + 0 + ";");
|
||||
}
|
||||
|
||||
@Test(groups = {"requiresMySQL"})
|
||||
|
Loading…
Reference in New Issue
Block a user