GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — QueryTest: complete date param test. · TinyAndNeo/objectbox-java@c7a5875

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • tests/objectbox-java-test/src/test/java/io/objectbox/query
    • QueryTest.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎tests/objectbox-java-test/src/test/java/io/objectbox/query/QueryTest.java‎

Copy file name to clipboardExpand all lines: tests/objectbox-java-test/src/test/java/io/objectbox/query/QueryTest.java
+8Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -863,6 +863,14 @@ public void testDateParam() {
863863
assertEquals(0, query.count());
864864

865865
query.setParameter(Order_.date, now);
866+
assertEquals(1, query.count());
867+
868+
// Again, but using alias
869+
Query<Order> aliasQuery = box.query().equal(Order_.date, 0).parameterAlias("date").build();
870+
assertEquals(0, aliasQuery.count());
871+
872+
aliasQuery.setParameter("date", now);
873+
assertEquals(1, aliasQuery.count());
866874
}
867875

868876
@Test

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.