mirror of
https://github.com/querydsl/querydsl.git
synced 2026-06-24 21:07:26 +08:00
added test
This commit is contained in:
parent
c11480204c
commit
bad695c282
@ -0,0 +1,18 @@
|
||||
package com.mysema.query.types;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
public class PredicateOperationTest {
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@Test
|
||||
public void Not() {
|
||||
Path o1 = new PathImpl(Object.class, "o1");
|
||||
Path o2 = new PathImpl(Object.class, "o2");
|
||||
PredicateOperation template = new PredicateOperation(Ops.EQ_OBJECT, o1, o2);
|
||||
assertEquals("!o1 = o2", template.not().toString());
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user