added tests

This commit is contained in:
Timo Westkämper 2010-05-15 17:27:47 +00:00
parent 2419d6002d
commit 47d73c021a
2 changed files with 40 additions and 0 deletions

View File

@ -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();
}
}

View File

@ -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());
}
}