mirror of
https://github.com/querydsl/querydsl.git
synced 2026-06-19 21:00:53 +08:00
added tests
This commit is contained in:
parent
2419d6002d
commit
47d73c021a
@ -0,0 +1,18 @@
|
||||
package com.mysema.query.sql;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
public class TemplatesTest {
|
||||
|
||||
@Test
|
||||
public void test(){
|
||||
new DerbyTemplates();
|
||||
new H2Templates();
|
||||
new HSQLDBTemplates();
|
||||
new MySQLTemplates();
|
||||
new OracleTemplates();
|
||||
new PostgresTemplates();
|
||||
new SQLTemplates();
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,22 @@
|
||||
package com.mysema.query.sql.oracle;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import com.mysema.query.types.path.PNumber;
|
||||
|
||||
|
||||
public class SumOverTest {
|
||||
|
||||
@Test
|
||||
public void test(){
|
||||
PNumber<Integer> intPath = new PNumber<Integer>(Integer.class, "intPath");
|
||||
SumOver<Integer> sumOver = new SumOver<Integer>(intPath);
|
||||
sumOver.order(intPath);
|
||||
sumOver.partition(intPath);
|
||||
|
||||
assertEquals("sum(intPath) over (partition by intPath order by intPath)", sumOver.toString());
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user