Skip to content

Commit

Permalink
Merge pull request #30594 from anija-anil/eclJakrtaDataIssues
Browse files Browse the repository at this point in the history
Test to recreate openLiberty issue : 30351
  • Loading branch information
anija-anil authored Jan 21, 2025
2 parents aa2801a + 06bf51f commit a482d24
Showing 1 changed file with 34 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1998,6 +1998,40 @@ public void testOLGH30534() throws Exception {
assertEquals("CountyA", results.get(0).getName());
}

@Test
@Ignore("Reference issue: https://github.com/OpenLiberty/open-liberty/issues/30351")
public void testOLGH30351() throws Exception {

Business business1 = Business.of(43.1566f, -77.6109f, "Rochester", "NY", 14623, 123, "Main St", "N", "Acme Corp");
Business business2 = Business.of(43.1578f, -77.6110f, "Rochester", "NY", 14623, 456, "Broadway", "S", "Beta LLC");
Business business3 = Business.of(42.8864f, -78.8784f, "Buffalo", "NY", 14202, 789, "Elm St", "E", "Gamma Inc");

tx.begin();
em.persist(business1);
em.persist(business2);
em.persist(business3);
tx.commit();

List<Business> results;
tx.begin();
try {

results = em.createQuery("FROM Business WHERE location.address.city=?1 ORDER BY name", Business.class)
.setParameter(1, "Rochester")
.getResultList();

tx.commit();
} catch (Exception e) {
tx.rollback();
throw e;
}

assertNotNull(results);
assertEquals(2, results.size());
assertEquals("Acme Corp", results.get(0).name);
assertEquals("Beta LLC", results.get(1).name);
}

@Test
@SkipIfSysProp(DB_Postgres) //Reference issue: https://github.com/OpenLiberty/open-liberty/issues/30400
public void testOLGH30400() throws Exception {
Expand Down

0 comments on commit a482d24

Please sign in to comment.