-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add test for LockAspect bean exists. (#357)
- Loading branch information
1 parent
1f55888
commit 8b6cd18
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
...pring-boot3/src/test/java/test/eclipse/store/integrations/spring/boot/LockAspectTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package test.eclipse.store.integrations.spring.boot; | ||
|
||
import org.eclipse.store.integrations.spring.boot.types.concurrent.LockAspect; | ||
import org.junit.jupiter.api.Test; | ||
import org.springframework.beans.factory.annotation.Autowired; | ||
import org.springframework.boot.test.context.SpringBootTest; | ||
import org.springframework.context.ApplicationContext; | ||
import org.springframework.test.context.TestPropertySource; | ||
|
||
import static org.junit.jupiter.api.Assertions.assertNotNull; | ||
|
||
@SpringBootTest | ||
@TestPropertySource("classpath:application-test.properties") | ||
class LockAspectTest | ||
{ | ||
|
||
@Autowired | ||
ApplicationContext context; | ||
|
||
@Test | ||
void isLockAspectBeanExists() | ||
{ | ||
LockAspect bean = context.getBean(LockAspect.class); | ||
assertNotNull(bean); | ||
} | ||
} |