Last change
on this file since 193 was
193,
checked in by Maciej Komosinski, 10 years ago
|
Set svn:eol-style native for all textual files
|
-
Property svn:eol-style set to
native
|
File size:
676 bytes
|
Rev | Line | |
---|
[88] | 1 | package com.framsticks.core; |
---|
| 2 | |
---|
| 3 | import java.io.InputStream; |
---|
| 4 | |
---|
| 5 | import org.testng.annotations.Test; |
---|
| 6 | |
---|
| 7 | import com.framsticks.gui.Browser; |
---|
| 8 | import com.framsticks.test.TestConfiguration; |
---|
| 9 | |
---|
| 10 | import static org.fest.assertions.Assertions.*; |
---|
| 11 | |
---|
| 12 | @Test |
---|
| 13 | public class FramsticksTest extends TestConfiguration { |
---|
| 14 | |
---|
| 15 | @Test |
---|
| 16 | public void testConfiguration() { |
---|
| 17 | InputStream stream = FramsticksTest.class.getResourceAsStream("/configs/test.xml"); |
---|
| 18 | assertThat(stream).isNotNull(); |
---|
| 19 | |
---|
| 20 | Framsticks framsticks = Framsticks.loadConfiguration(stream); |
---|
| 21 | assertThat(framsticks).isNotNull(); |
---|
[96] | 22 | assertThat(framsticks.size()).isEqualTo(1); |
---|
| 23 | assertThat(framsticks.get("browser")).isInstanceOf(Browser.class); |
---|
[88] | 24 | } |
---|
| 25 | |
---|
| 26 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.