added test

This commit is contained in:
Timo Westkämper 2011-03-23 12:22:07 +00:00
parent c11480204c
commit bad695c282

View File

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