95
Приложение 7
package com.porollo.platform;
import static org.assertj.core.api.Assertions.*;
import com.platform.PlatformApplication;
import com.platform.controllers.IndexController;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
@RunWith(SpringRunner.class)
@SpringBootTest(classes = PlatformApplication.class)
public class IndexControllerTest {
@Autowired
private IndexController indexController;
@Test
public void indexNotNull() throws Exception {
assertThat(indexController).isNotNull();
}
}