Skip to content

Commit

Permalink
fixed 'tests'
Browse files Browse the repository at this point in the history
  • Loading branch information
armzilla committed Sep 16, 2016
1 parent 8030817 commit 2717fb7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/armzilla/ha/SpringbootEntry.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ public class SpringbootEntry {
public static void main(String[] args) {
SpringApplication.run(SpringbootEntry.class, args);
}

}
2 changes: 2 additions & 0 deletions src/test/java/demo/DemoApplicationTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@
import com.armzilla.ha.SpringbootEntry;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.TestPropertySource;
import org.springframework.test.context.web.WebAppConfiguration;
import org.springframework.boot.test.SpringApplicationConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

@RunWith(SpringJUnit4ClassRunner.class)
@SpringApplicationConfiguration(classes = SpringbootEntry.class)
@TestPropertySource(locations="classpath:test.properties")
@WebAppConfiguration
public class DemoApplicationTests {

Expand Down
5 changes: 5 additions & 0 deletions src/test/resources/test.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
upnp.response.port=50000
upnp.config.address=192.168.1.1
emulator.portbase=8080
emulator.portcount=3
upnp.disable=false

0 comments on commit 2717fb7

Please sign in to comment.