Inny error, zmiana lokalizacji pliku
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
This commit is contained in:
parent
9ea2912e98
commit
f6d4674ec8
@ -1,31 +1,32 @@
|
||||
package com.plannaplan.configutils;
|
||||
package com.plannaplan;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
|
||||
import org.springframework.boot.test.web.client.TestRestTemplate;
|
||||
import org.springframework.boot.web.server.LocalServerPort;
|
||||
import org.springframework.test.context.junit4.SpringRunner;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
import java.io.InputStream;
|
||||
|
||||
import com.plannaplan.App;
|
||||
import com.plannaplan.Configurator;
|
||||
import com.plannaplan.models.ConfigData;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
@RunWith(SpringRunner.class)
|
||||
@SpringBootTest
|
||||
public class ConfiguratorTest {
|
||||
|
||||
|
||||
@Autowired
|
||||
private Configurator restTemplate;
|
||||
|
||||
@Test
|
||||
public void greetingShouldReturnDefaultMessage() throws Exception {
|
||||
InputStream inputStream = getClass().getClassLoader().getResourceAsStream("Zajecia.xlsx");
|
||||
ConfigData data = new ConfigData(null,null,inputStream);
|
||||
final InputStream inputStream = getClass().getClassLoader().getResourceAsStream("Zajecia.xlsx");
|
||||
final ConfigData data = new ConfigData(null, null, inputStream);
|
||||
this.restTemplate.config(data);
|
||||
assertTrue(true);
|
||||
|
Loading…
Reference in New Issue
Block a user