small testign work
This commit is contained in:
parent
30dd0c85e6
commit
b2800b7e8e
@ -10,7 +10,7 @@ import org.junit.Test;
|
||||
import com.baeldung.interceptor.AuditedInterceptor;
|
||||
import com.baeldung.service.SuperService;
|
||||
|
||||
public class TestInterceptor {
|
||||
public class InterceptorIntegrationTest {
|
||||
Weld weld;
|
||||
WeldContainer container;
|
||||
|
@ -23,12 +23,16 @@ public class SpringInterceptorIntegrationTest {
|
||||
@Autowired
|
||||
private List<String> accumulator;
|
||||
|
||||
//
|
||||
|
||||
@Test
|
||||
public void givenService_whenServiceAndAspectExecuted_thenOk() {
|
||||
String code = "123456";
|
||||
String result = springSuperService.getInfoFromService(code);
|
||||
|
||||
Assert.assertThat(accumulator.size(), is(2));
|
||||
Assert.assertThat(accumulator.get(0), is("Call to getInfoFromService"));
|
||||
Assert.assertThat(accumulator.get(1), is("Method called successfully: getInfoFromService"));
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user