Skip to content

Commit

Permalink
Re-organised files. Enabled Gradle and Travis CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
dkcm committed Nov 25, 2016
1 parent eda260a commit 85b45c2
Show file tree
Hide file tree
Showing 18 changed files with 53 additions and 8 deletions.
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
language: java
jdk:
- oraclejdk8
- oraclejdk7
- openjdk7
40 changes: 40 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
/*
* This build file was auto generated by running the Gradle 'init' task
* by 'Daniel' at '18/3/16 10:06 PM' with Gradle 2.9
*
* This generated file contains a sample Java project to get you started.
* For more details take a look at the Java Quickstart chapter in the Gradle
* user guide available at https://docs.gradle.org/2.9/userguide/tutorial_java_projects.html
*/

// Apply the java plugin to add support for Java
apply plugin: 'java'
apply plugin: 'eclipse'

compileJava {
options.encoding = "Cp1252"
}

// In this section you declare where to find the dependencies of your project
repositories {
// Use 'jcenter' for resolving your dependencies.
// You can declare any Maven/Ivy/file repository here.
jcenter()
}

// In this section you declare the dependencies for your production and test code
dependencies {
// The production code uses the SLF4J logging API at compile time
compile 'org.slf4j:slf4j-api:1.7.21',
'org.slf4j:slf4j-simple:1.7.21',
'net.sf.jopt-simple:jopt-simple:5.0',
'com.squareup.okio:okio:1.6.0',
'com.squareup.okhttp3:okhttp:3.2.0'


// Declare the dependency for your favourite test framework you want to use in your tests.
// TestNG is also supported by the Gradle Test task. Just change the
// testCompile dependency to testCompile 'org.testng:testng:6.8.1' and add
// 'test.useTestNG()' to your build script.
testCompile 'junit:junit:4.12'
}
6 changes: 0 additions & 6 deletions src/test/java/org/ikankechil/io/A_20130107-20130111.csv

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public class CompletionServiceFileVisitorTest {
private static final ExecutorService EXECUTOR = Executors.newSingleThreadExecutor();

private static final String EMPTY = "";
private static final Path START_PATH = Paths.get(".//./tst/");
private static final Path START_PATH = Paths.get(".//./src/test/resources/");
private static final String ONLY_CSV = "glob:*.csv";
private static final String INVALID_PATTERN = "regex:{";
private static final PathMatcher MATCHER = FileSystems.getDefault().getPathMatcher(ONLY_CSV);
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/org/ikankechil/io/TextIOTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public abstract class TextIOTest {
@Rule
public final ExpectedException thrown = ExpectedException.none();

static final File SOURCE_FILE = new File(".//./tst/org/ikankechil/io", "A_20130107-20130111.csv");
static final File SOURCE_FILE = new File(".//./src/test/resources/" + TextIOTest.class.getSimpleName(), "A_20130107-20130111.csv");

static final List<String> EXPECTEDS = new ArrayList<>();
List<String> actuals;
Expand Down
6 changes: 6 additions & 0 deletions src/test/resources/TextIOTest/A_20130107-20130111.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Date,Open,High,Low,Close,Volume,Adj Close
2013-01-11,43.660001,43.990001,43.360001,43.430001,3244700,29.898045
2013-01-10,43.64,44.119999,43.330001,43.67,5520800,30.063264
2013-01-09,43.000001,43.45,42.689999,43.349999,5737900,29.84297
2013-01-08,42.469999,42.780001,42.099999,42.209999,3896900,29.058172
2013-01-07,42.60,42.799999,42.38,42.550001,3589500,29.292236

0 comments on commit 85b45c2

Please sign in to comment.