Skip to content

Commit

Permalink
#75 Create TestIronocConfiguration.java
Browse files Browse the repository at this point in the history
  • Loading branch information
conorheffron committed Oct 5, 2024
1 parent 1cc4164 commit 21e1ffc
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package com.ironoc.portfolio.config;

import org.springframework.beans.BeansException;
import org.springframework.boot.test.context.TestConfiguration;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@TestConfiguration
@ComponentScan(basePackages = { "com.ironoc.portfolio" })
public class TestIronocConfiguration implements WebMvcConfigurer, ApplicationContextAware {

private ApplicationContext applicationContext;

@Override
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
this.applicationContext = applicationContext;
}
}

0 comments on commit 21e1ffc

Please sign in to comment.