blob: f6a6ead86413946ee9468d165e484b48de41dcb5 (
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
|
package com.jantuomi.interpreter.test.core;
import com.jantuomi.interpreter.main.core.CommandLineArgumentContainer;
import com.jantuomi.interpreter.main.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/com/jantuomi/interpreter/test/resources/test.file"));
String contents = c.getSourceFileContents();
System.out.println(contents);
assertTrue(contents.contains("###"));
}
}
|