Skip to content

Commit

Permalink
progress on payara-build-managed
Browse files Browse the repository at this point in the history
  • Loading branch information
tandraschko committed Feb 27, 2024
1 parent b55ada3 commit 1ae58f8
Showing 1 changed file with 9 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,8 @@
*/
package org.apache.deltaspike.data.impl.criteria;

import static org.apache.deltaspike.data.test.util.TestDeployments.initDeployment;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;

import java.util.Calendar;
import java.util.Date;
import java.util.List;

import jakarta.inject.Inject;
import jakarta.persistence.NonUniqueResultException;

import org.apache.deltaspike.data.test.TransactionalTestCase;
import org.apache.deltaspike.data.test.domain.OneToMany;
import org.apache.deltaspike.data.test.domain.OneToOne;
Expand All @@ -45,6 +34,13 @@
import org.junit.Test;
import org.junit.experimental.categories.Category;

import java.util.Calendar;
import java.util.Date;
import java.util.List;

import static org.apache.deltaspike.data.test.util.TestDeployments.initDeployment;
import static org.junit.Assert.*;

@Category(WebProfileCategory.class)
public class CriteriaTest extends TransactionalTestCase
{
Expand Down Expand Up @@ -280,8 +276,8 @@ public void should_create_select_criteria_without_result_type()
assertEquals(Integer.valueOf(10), result[0]);
assertEquals(Integer.valueOf(99), result[1]);
assertTrue(result[2] instanceof java.sql.Date);
assertTrue(result[3] instanceof java.sql.Time);
assertTrue(result[4] instanceof java.sql.Timestamp);
assertTrue(result[3] instanceof java.sql.Time || result[3] instanceof java.time.OffsetTime);
assertTrue(result[4] instanceof java.sql.Timestamp || result[4] instanceof java.time.OffsetDateTime);
}

@Test
Expand Down

0 comments on commit 1ae58f8

Please sign in to comment.