package sg.ncl.service.user;

import org.springframework.context.annotation.Bean;
import org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseBuilder;
import org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseType;
import org.springframework.test.context.ContextConfiguration;

import javax.sql.DataSource;

/**
 * @author Christopher Zhong
 */
@ContextConfiguration(classes = App.class)
public class TestConfig {

    @Bean
    DataSource dataSource() {
        return new EmbeddedDatabaseBuilder().setType(EmbeddedDatabaseType.H2).build();
    }

}

@@ -75,16 +75,77 @@
 n.Bean;%0A
+import org.springframework.context.annotation.Configuration;%0A
 import o
@@ -213,16 +213,16 @@
 uilder;%0A
-
 import o
@@ -290,70 +290,8 @@
 ype;
-%0Aimport org.springframework.test.context.ContextConfiguration;
 %0A%0Aim
@@ -360,15 +360,8 @@
 */%0A@
-Context
 Conf
@@ -373,29 +373,8 @@
 tion
-(classes = App.class)
 %0Apub

Resolve incorrect annotation use (DEV-100)