summaryrefslogtreecommitdiff
path: root/songsterr-reader/src/test/java/de/uvok/tuxguitar/ApplicationTest.java
blob: e7041abf4f215b5de8f8d5c4e0a258ff289568bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package de.uvok.tuxguitar;

import org.junit.jupiter.api.Test;

import static org.junit.jupiter.api.Assertions.assertTrue;

import java.io.BufferedReader;
import java.io.InputStream;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

import org.herac.tuxguitar.io.base.TGSongReaderHandle;
import org.herac.tuxguitar.util.TGContext;

class ApplicationTest {

    @Test
    void shouldAnswerWithTrue() throws IOException {
        TGSongReaderHandle srh = new TGSongReaderHandle();
        try (InputStream buf = new FileInputStream("/home/andreas/development/TgSongsterrImport/ftb.json")) {
            srh.setInputStream(buf);
            SongsterrInputStream s = new SongsterrInputStream();
            s.read(srh);
        }
        assertTrue(true);
    }
}