package sg.ncl.service.realization;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;
import org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseBuilder;
import org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseType;
import org.springframework.test.context.ContextConfiguration;
import sg.ncl.adapter.deterlab.AdapterDeterlab;
import sg.ncl.service.realization.logic.RealizationService;

import javax.sql.DataSource;

import static org.mockito.Mockito.mock;

/**
 * @author Christopher Zhong
 */
@Configuration
public class TestConfig {

}

@@ -670,10 +670,232 @@
 nfig %7B%0A%0A
+    @Bean%0A    @Profile(%22mock-realization-service%22)%0A    public RealizationService realizationService() %7B%0A//        logger.info(%22Mocking: %7B%7D%22, RealizationService.class);%0A        return mock(RealizationService.class);%0A    %7D%0A%0A
 %7D%0A

Refactor codes