Skip to content

Commit

Permalink
fixed testˆ
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderkoller committed Dec 7, 2019
1 parent 33753ff commit 183d3e2
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/test/java/de/saar/coli/arranger/ConfigTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,16 @@
import org.junit.Test;
import static org.junit.Assert.*;

import java.io.FileNotFoundException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;

public class ConfigTest {
@Test
public void testConfigReader() {
InputStream is = getClass().getResourceAsStream("/config.yaml");
assertNotNull(is);

Reader r = new InputStreamReader(is);
Config config = Config.read(r);

assertEquals("Automatically arranged by Alexander's Arranger", config.getArranger());
public void testConfigReader() throws FileNotFoundException {
Config config = Arrange.loadConfig(null);
assertEquals("Automatically arranged by AABA", config.getArranger());
assertEquals(-20, config.getScores().getHarmonyLeaps());
}
}

0 comments on commit 183d3e2

Please sign in to comment.