package com.aemreunal.config.controller;

/*
 ***************************
 * Copyright (c) 2014      *
 *                         *
 * This code belongs to:   *
 *                         *
 * @author Ahmet Emre Ünal *
 * S001974                 *
 *                         *
 * aemreunal@gmail.com     *
 * emre.unal@ozu.edu.tr    *
 *                         *
 * aemreunal.com           *
 ***************************
 */


import java.nio.charset.Charset;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.MediaType;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import com.aemreunal.controller.BeaconController;

@Configuration
@EnableWebMvc
@ComponentScan(basePackages = { "com.aemreunal" })
//@ContextConfiguration(classes = { CoreTestConfig.class })
public class BeaconControllerTestConfig {
    public static final MediaType APPLICATION_JSON_UTF8 = new MediaType(MediaType.APPLICATION_JSON.getType(),
                                                                        MediaType.APPLICATION_JSON.getSubtype(),
                                                                        Charset.forName("utf8"));

    @Bean
    public BeaconController projectController() {
        return new BeaconController();
    }
}

@@ -791,16 +791,60 @@
 troller;
+%0Aimport com.aemreunal.service.BeaconService;
 %0A%0A@Confi
@@ -1383,15 +1383,14 @@
 ler 
-project
+beacon
 Cont
@@ -1444,11 +1444,107 @@
 );%0A    %7D
+%0A%0A    @Bean%0A    public BeaconService beaconService() %7B%0A        return new BeaconService();%0A    %7D
 %0A%7D%0A

Fix typo, add beacon service bean