Follow up of [BAEL-2350], renamed module (#8167)
This commit is contained in:
committed by
maibin
parent
65d1231881
commit
cbbc407d34
@@ -0,0 +1,7 @@
|
||||
package com.baeldung.data.jpa;
|
||||
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
@SpringBootApplication
|
||||
public class ApplicationFound {
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package com.baeldung.data.jpa.application;
|
||||
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
@SpringBootApplication
|
||||
public class ApplicationNotFound {
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package com.baeldung.data.jpa;
|
||||
|
||||
import static org.junit.Assert.assertNotNull;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTest;
|
||||
import org.springframework.boot.test.autoconfigure.orm.jpa.TestEntityManager;
|
||||
import org.springframework.test.context.junit4.SpringRunner;
|
||||
|
||||
@RunWith(SpringRunner.class)
|
||||
@DataJpaTest
|
||||
public class DataJpaUnitTest {
|
||||
|
||||
@Autowired
|
||||
private TestEntityManager entityManager;
|
||||
|
||||
@Test
|
||||
public void givenACorrectSetup_thenAnEntityManagerWillBeAvailable() {
|
||||
assertNotNull(entityManager);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user