You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by nt...@apache.org on 2018/03/29 15:03:09 UTC
cayenne git commit: minor cleanup
Repository: cayenne
Updated Branches:
refs/heads/master c1b1b2904 -> 4aec5a878
minor cleanup
Project: http://git-wip-us.apache.org/repos/asf/cayenne/repo
Commit: http://git-wip-us.apache.org/repos/asf/cayenne/commit/4aec5a87
Tree: http://git-wip-us.apache.org/repos/asf/cayenne/tree/4aec5a87
Diff: http://git-wip-us.apache.org/repos/asf/cayenne/diff/4aec5a87
Branch: refs/heads/master
Commit: 4aec5a878e993e6cd531534d324dd2842a20a2c3
Parents: c1b1b29
Author: Nikita Timofeev <st...@gmail.com>
Authored: Thu Mar 29 18:03:04 2018 +0300
Committer: Nikita Timofeev <st...@gmail.com>
Committed: Thu Mar 29 18:03:04 2018 +0300
----------------------------------------------------------------------
.../cayenne/exp/ExpressionTraversalTest.java | 21 ++++++++++----------
1 file changed, 10 insertions(+), 11 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cayenne/blob/4aec5a87/cayenne-server/src/test/java/org/apache/cayenne/exp/ExpressionTraversalTest.java
----------------------------------------------------------------------
diff --git a/cayenne-server/src/test/java/org/apache/cayenne/exp/ExpressionTraversalTest.java b/cayenne-server/src/test/java/org/apache/cayenne/exp/ExpressionTraversalTest.java
index ececfa9..84b6663 100644
--- a/cayenne-server/src/test/java/org/apache/cayenne/exp/ExpressionTraversalTest.java
+++ b/cayenne-server/src/test/java/org/apache/cayenne/exp/ExpressionTraversalTest.java
@@ -51,45 +51,44 @@ public class ExpressionTraversalTest {
}
@Test
- public void testBinary_In1() throws Exception {
+ public void testBinary_In1() {
doExpressionTest("toGallery.galleryName in ('g1', 'g2', 'g3')", 3, 2);
}
@Test
- public void testBinary_In2() throws Exception {
- Expression exp = ExpressionFactory.inExp("toGallery.galleryName",
- Arrays.asList(new Object[] { "g1", "g2", "g3" }));
+ public void testBinary_In2() {
+ Expression exp = ExpressionFactory.inExp("toGallery.galleryName", Arrays.asList("g1", "g2", "g3"));
doExpressionTest(exp, 3, 2);
}
@Test
- public void testBinary_In3() throws Exception {
- Expression exp = ExpressionFactory.inExp("toGallery.galleryName", new Object[] { "g1", "g2", "g3" });
+ public void testBinary_In3() {
+ Expression exp = ExpressionFactory.inExp("toGallery.galleryName", "g1", "g2", "g3");
doExpressionTest(exp, 3, 2);
}
@Test
- public void testBinary_Like() throws Exception {
+ public void testBinary_Like() {
doExpressionTest("toGallery.galleryName like 'a%'", 2, 2);
}
@Test
- public void testBinary_LikeIgnoreCase() throws Exception {
+ public void testBinary_LikeIgnoreCase() {
doExpressionTest("toGallery.galleryName likeIgnoreCase 'a%'", 2, 2);
}
@Test
- public void testBinary_IsNull() throws Exception {
+ public void testBinary_IsNull() {
doExpressionTest("toGallery.galleryName = null", 2, 2);
}
@Test
- public void testBinary_IsNotNull() throws Exception {
+ public void testBinary_IsNotNull() {
doExpressionTest("toGallery.galleryName != null", 2, 2);
}
@Test
- public void testTernary_Between() throws Exception {
+ public void testTernary_Between() {
doExpressionTest("estimatedPrice between 3000 and 15000", 2, 3);
}