aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/com/jantuomi/tunkki/core/CommandLineArgumentContainerTest.java
blob: 437c6023814f1aafd8a92fbd30f0ed3f53621c33 (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
package com.jantuomi.tunkki.core;

import com.jantuomi.tunkki.utils.Utilities;
import org.junit.Test;

import java.io.File;

import static org.junit.Assert.assertTrue;

/**
 * Created by jan on 10.6.2016.
 */
public class CommandLineArgumentContainerTest {
    @Test
    public void getSourceFileContents() throws Exception {
        CommandLineArgumentContainer c = CommandLineArgumentContainer.getInstance();
        File basePath = new File(Utilities.getBasePath());
        c.setFile(new File(basePath, "src/test/com/jantuomi/tunkki/resources/test.file"));
        String contents = c.getSourceFileContents();
        System.out.println(contents);
        assertTrue(contents.contains("###"));
    }

}