mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-10-24 08:25:50 +00:00
No effective change - Rename test class
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
package com.avaje.tests.batchload;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
import javax.persistence.EntityNotFoundException;
|
||||
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
|
||||
import com.avaje.ebean.BaseTestCase;
|
||||
import com.avaje.ebean.Ebean;
|
||||
import com.avaje.tests.model.basic.UUOne;
|
||||
|
||||
public class TestLazyLoadNonExistentBean extends BaseTestCase {
|
||||
|
||||
@Test
|
||||
public void testSimple() {
|
||||
|
||||
UUID uuid = UUID.randomUUID();
|
||||
UUOne one = Ebean.getReference(UUOne.class, uuid);
|
||||
|
||||
try {
|
||||
// invoke lazy loading
|
||||
one.getName();
|
||||
Assert.assertTrue(false);
|
||||
} catch (EntityNotFoundException e) {
|
||||
// expecting this
|
||||
Assert.assertTrue(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user