From 12eeefcdba1ee392f033f51e6b9826eaae3c4de6 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Mon, 13 Jun 2016 23:16:54 +0300 Subject: Add tokenizer, parser and support for certain operations --- test/core/CommandLineArgumentContainerTest.java | 26 +++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 test/core/CommandLineArgumentContainerTest.java (limited to 'test/core/CommandLineArgumentContainerTest.java') diff --git a/test/core/CommandLineArgumentContainerTest.java b/test/core/CommandLineArgumentContainerTest.java new file mode 100644 index 0000000..f6a6ead --- /dev/null +++ b/test/core/CommandLineArgumentContainerTest.java @@ -0,0 +1,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("###")); + } + +} \ No newline at end of file -- cgit v1.3