OPENJPA-1222:

remove @AllowFailure on tests that pass

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@802138 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Dick 2009-08-07 18:35:16 +00:00
parent d5fdddb9bf
commit 38cd47a76d
4 changed files with 11 additions and 9 deletions

View File

@ -805,7 +805,7 @@ public class TestEmbeddableCriteria extends EmbeddableDomainTestCase {
}
//comparison of embed is not support
@AllowFailure
public void btestEmbeddableQuery63() {
String jpql = "select a.embed from EntityA_Embed_Embed a WHERE a.embed.embed IS NOT NULL";
CriteriaQuery<Embed_Embed> q = cb.createQuery(Embed_Embed.class);

View File

@ -1471,7 +1471,7 @@ public class TestJPQLSubquery extends CriteriaTest {
assertEquivalence(q, jpql);
}
@AllowFailure(message="parameter setting problem")
public void testSubSelectMaxDateRange() {
String jpql = "SELECT e,d from Employee e, Dependent d "
+ "WHERE e.empId = :empid "

View File

@ -325,7 +325,7 @@ public class TestMetaModelTypesafeCriteria extends CriteriaTest {
assertEquivalence(q, jpql);
}
@AllowFailure
public void testParameters() {
String jpql = "SELECT c FROM Customer c Where c.status = :stat";
CriteriaQuery<?> q = cb.createQuery();

View File

@ -48,12 +48,14 @@ import org.apache.openjpa.persistence.test.AllowFailure;
*
*/
public class TestTypesafeCriteria extends CriteriaTest {
@AllowFailure
public void testTrue() {
CriteriaQuery<Person> q = cb.createQuery(Person.class);
q.from(Person.class);
assertEquivalence(q.where(cb.literal(Boolean.TRUE)), "SELECT p FROM Person p WHERE 1=1");
}
@AllowFailure
public void testFalse() {
CriteriaQuery<Person> q = cb.createQuery(Person.class);
@ -503,7 +505,7 @@ public class TestTypesafeCriteria extends CriteriaTest {
assertEquivalence(q, jpql);
}
@AllowFailure
public void testParameters1() {
String jpql = "SELECT c FROM Customer c Where c.status = :stat";
@ -514,7 +516,7 @@ public class TestTypesafeCriteria extends CriteriaTest {
assertEquivalence(q, jpql, new String[] { "stat" }, new Object[] { 1 });
}
@AllowFailure
public void testParameters2() {
String jpql = "SELECT c FROM Customer c Where c.status = :stat AND c.name = :name";
@ -528,7 +530,7 @@ public class TestTypesafeCriteria extends CriteriaTest {
assertEquivalence(q, jpql, new String[] { "stat", "name" },
new Object[] { 1, "test" });
}
@AllowFailure
public void testParameters3() {
String jpql = "SELECT c FROM Customer c Where c.status = :stat";
@ -539,7 +541,7 @@ public class TestTypesafeCriteria extends CriteriaTest {
assertEquivalence(q, jpql, new String[]{"stat"}, new Object[] { 1 });
}
@AllowFailure
public void testParameters4() {
String jpql = "SELECT c FROM Customer c Where c.status = :stat AND c.name = :name";
@ -552,7 +554,7 @@ public class TestTypesafeCriteria extends CriteriaTest {
assertEquivalence(q, jpql, new String[]{"stat", "name"},
new Object[] { 1, "test" });
}
@AllowFailure
public void testParameters5() {
String jpql = "SELECT c FROM Customer c Where c.status IN (:coll)";
@ -611,7 +613,7 @@ public class TestTypesafeCriteria extends CriteriaTest {
assertEquivalence(q, jpql);
}
@AllowFailure(message="Projections of multiple NEW does not work")
@AllowFailure
public void testMultipleConstructorInProjection() {
String jpql = "SELECT NEW CustomerDetails(c.id, c.status), "
+ "NEW CustomerFullName(c.firstName, c.lastName) "