Skip to content

Commit

Permalink
add test for LockAspect bean exists. (#357)
Browse files Browse the repository at this point in the history
  • Loading branch information
zdenek-jonas authored Jan 2, 2025
1 parent 1f55888 commit 8b6cd18
Showing 1 changed file with 26 additions and 0 deletions.
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);
}
}

0 comments on commit 8b6cd18

Please sign in to comment.